From 6f013cdcaf5ecec8a964c6697b65efcc53b2edd7 Mon Sep 17 00:00:00 2001 From: sinn3r Date: Fri, 31 Oct 2014 18:48:48 -0500 Subject: [PATCH] Missed these --- modules/auxiliary/gather/xerox_pwd_extract.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/gather/xerox_pwd_extract.rb b/modules/auxiliary/gather/xerox_pwd_extract.rb index 6630701913..a40485c219 100644 --- a/modules/auxiliary/gather/xerox_pwd_extract.rb +++ b/modules/auxiliary/gather/xerox_pwd_extract.rb @@ -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