Missed these
parent
d6a830eb6e
commit
6f013cdcaf
|
@ -96,7 +96,7 @@ class Metasploit3 < Msf::Auxiliary
|
|||
begin
|
||||
connect(true, 'RPORT' => jport)
|
||||
sock.put(create_print_job)
|
||||
rescue ::Timeout::Error, Rex::ConnectionError, Rex::ConnectionRefused, HostUnreachable, Rex::ConnectionTimeout, Rex::AddressInUse
|
||||
rescue ::Timeout::Error, Rex::ConnectionError, Rex::ConnectionRefused, Rex::HostUnreachable, Rex::ConnectionTimeout, Rex::AddressInUse
|
||||
print_error("#{rhost}:#{jport} - Error connecting to #{rhost}")
|
||||
ensure
|
||||
disconnect
|
||||
|
@ -113,7 +113,7 @@ class Metasploit3 < Msf::Auxiliary
|
|||
res = sock.get_once || ''
|
||||
passwd = res.match(/\r\n\s(.+?)\n/)
|
||||
return passwd ? passwd[1] : ''
|
||||
rescue ::EOFError, ::Timeout::Error, Rex::ConnectionError, Rex::ConnectionRefused, HostUnreachable, Rex::ConnectionTimeout, Rex::AddressInUse, EOFError
|
||||
rescue ::EOFError, ::Timeout::Error, Rex::ConnectionError, Rex::ConnectionRefused, Rex::HostUnreachable, Rex::ConnectionTimeout, Rex::AddressInUse, EOFError
|
||||
print_error("#{rhost}:#{jport} - Error getting password from #{rhost}")
|
||||
return
|
||||
ensure
|
||||
|
|
Loading…
Reference in New Issue