Rescue the correct exception: Rex::HostUnreachable

bug/bundler_fix
sinn3r 2014-10-31 16:43:33 -05:00
parent cd16ee8791
commit d6a830eb6e
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ class Metasploit3 < Msf::Auxiliary
begin begin
connect(true, 'RPORT' => jport) connect(true, 'RPORT' => jport)
sock.put(remove_print_job) sock.put(remove_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 removing print job from #{rhost}") print_error("#{rhost}:#{jport} - Error removing print job from #{rhost}")
ensure ensure
disconnect disconnect