Rescue only RubySMB::Error::CommunicationError

bug/bundler_fix
multiplex3r 2017-07-27 19:19:45 +10:00
parent f2091928ec
commit b2ecaa489d
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class MetasploitModule < Msf::Exploit::Remote
# Step 1: Connect to IPC$ share # Step 1: Connect to IPC$ share
print_status("Connecting to target for exploitation.") print_status("Connecting to target for exploitation.")
client, tree, sock, os = smb1_anonymous_connect_ipc() client, tree, sock, os = smb1_anonymous_connect_ipc()
rescue rescue RubySMB::Error::CommunicationError
# Error handler in case SMBv1 disabled on target # Error handler in case SMBv1 disabled on target
raise EternalBlueError, 'Could not make SMBv1 connection' raise EternalBlueError, 'Could not make SMBv1 connection'
else else