Skip to content

Commit d6a830e

Browse files
committed
Rescue the correct exception: Rex::HostUnreachable
1 parent cd16ee8 commit d6a830e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/gather/xerox_pwd_extract.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def remove
150150
begin
151151
connect(true, 'RPORT' => jport)
152152
sock.put(remove_print_job)
153-
rescue ::Timeout::Error, Rex::ConnectionError, Rex::ConnectionRefused, HostUnreachable, Rex::ConnectionTimeout, Rex::AddressInUse
153+
rescue ::Timeout::Error, Rex::ConnectionError, Rex::ConnectionRefused, Rex::HostUnreachable, Rex::ConnectionTimeout, Rex::AddressInUse
154154
print_error("#{rhost}:#{jport} - Error removing print job from #{rhost}")
155155
ensure
156156
disconnect

0 commit comments

Comments
 (0)