Adding no SMBv1 error handler for ms17-010 exploit

bug/bundler_fix
multiplex3r 2017-07-27 16:21:09 +10:00
parent c9853a6bfe
commit f2091928ec
1 changed files with 4 additions and 0 deletions

View File

@ -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)