Treat no-reply and general errors as indication to try the next port

git-svn-id: file:///home/svn/framework3/trunk@9827 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-07-14 17:08:08 +00:00
parent 6b25b1024e
commit b44ba8e8bf
1 changed files with 5 additions and 0 deletions

View File

@ -119,7 +119,11 @@ class Metasploit3 < Msf::Auxiliary
disconnect
break
rescue ::Rex::Proto::SMB::Exceptions::NoReply => e
next
rescue ::Rex::Proto::SMB::Exceptions::ErrorCode => e
next
rescue ::Rex::Proto::SMB::Exceptions::LoginError => e
# Vista has 139 open but doesnt like *SMBSERVER
if(e.to_s =~ /server refused our NetBIOS/)
@ -130,6 +134,7 @@ class Metasploit3 < Msf::Auxiliary
rescue ::Timeout::Error
rescue ::Rex::ConnectionError
next
rescue ::Exception => e
print_error("#{rhost}: #{e.class} #{e}")
ensure