Adding no SMBv1 error handler for ms17-010 exploit
parent
c9853a6bfe
commit
f2091928ec
|
@ -164,6 +164,10 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
# Step 1: Connect to IPC$ share
|
||||
print_status("Connecting to target for exploitation.")
|
||||
client, tree, sock, os = smb1_anonymous_connect_ipc()
|
||||
rescue
|
||||
# Error handler in case SMBv1 disabled on target
|
||||
raise EternalBlueError, 'Could not make SMBv1 connection'
|
||||
else
|
||||
print_good("Connection established for exploitation.")
|
||||
|
||||
if verify_target(os)
|
||||
|
|
Loading…
Reference in New Issue