Missed these

bug/bundler_fix
sinn3r 2014-10-31 18:48:48 -05:00
parent d6a830eb6e
commit 6f013cdcaf
1 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ class Metasploit3 < Msf::Auxiliary
begin begin
connect(true, 'RPORT' => jport) connect(true, 'RPORT' => jport)
sock.put(create_print_job) 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}") print_error("#{rhost}:#{jport} - Error connecting to #{rhost}")
ensure ensure
disconnect disconnect
@ -113,7 +113,7 @@ class Metasploit3 < Msf::Auxiliary
res = sock.get_once || '' res = sock.get_once || ''
passwd = res.match(/\r\n\s(.+?)\n/) passwd = res.match(/\r\n\s(.+?)\n/)
return passwd ? passwd[1] : '' 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}") print_error("#{rhost}:#{jport} - Error getting password from #{rhost}")
return return
ensure ensure