Catch and deal with Rex::Proto::SMB::Exceptions::NoReply error from ensure simple.connect
This commit is contained in:
@@ -138,7 +138,11 @@ class Metasploit3 < Msf::Auxiliary
|
||||
rescue
|
||||
status_code = :not_admin
|
||||
ensure
|
||||
simple.connect("\\\\#{datastore['RHOST']}\\IPC$")
|
||||
begin
|
||||
simple.connect("\\\\#{datastore['RHOST']}\\IPC$")
|
||||
rescue ::Rex::Proto::SMB::Exceptions::NoReply
|
||||
nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user