Skip to content

Commit f7c8bd2

Browse files
author
zerosum0x0
authored
add rescue for ::Rex::Proto::SMB::Exceptions::LoginError
1 parent ff27eda commit f7c8bd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/auxiliary/scanner/smb/smb_ms17_010.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def run_host(ip)
6464
rescue ::Interrupt
6565
print_status("Exiting on interrupt.")
6666
raise $!
67+
rescue ::Rex::Proto::SMB::Exceptions::LoginError
68+
print_error("An SMB Login Error occurred while connecting to the IPC$ tree.")
6769
rescue ::Exception => e
6870
print_error("#{e.class}: #{e.message}")
6971
ensure

0 commit comments

Comments
 (0)