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