Rescue only RubySMB::Error::CommunicationError
parent
f2091928ec
commit
b2ecaa489d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue