msftidy
parent
8f77ba1147
commit
de45263fd9
|
@ -5,7 +5,6 @@
|
||||||
# http://metasploit.com/
|
# http://metasploit.com/
|
||||||
##
|
##
|
||||||
|
|
||||||
|
|
||||||
require 'msf/core'
|
require 'msf/core'
|
||||||
|
|
||||||
class Metasploit3 < Msf::Auxiliary
|
class Metasploit3 < Msf::Auxiliary
|
||||||
|
@ -39,6 +38,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
'References' =>
|
'References' =>
|
||||||
[
|
[
|
||||||
[ 'CVE', '1999-0506'], # Weak password
|
[ 'CVE', '1999-0506'], # Weak password
|
||||||
|
|
||||||
],
|
],
|
||||||
'License' => MSF_LICENSE
|
'License' => MSF_LICENSE
|
||||||
)
|
)
|
||||||
|
@ -130,6 +130,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
check_login_status(datastore['SMBDomain'], user, pass)
|
check_login_status(datastore['SMBDomain'], user, pass)
|
||||||
|
|
||||||
unless(simple.client.auth_user)
|
unless(simple.client.auth_user)
|
||||||
|
|
||||||
guest = true
|
guest = true
|
||||||
@accepts_guest_logins['rhost'] ||=[] unless @accepts_guest_logins.include?(rhost) #'rhost' should be rhost?
|
@accepts_guest_logins['rhost'] ||=[] unless @accepts_guest_logins.include?(rhost) #'rhost' should be rhost?
|
||||||
report_note(
|
report_note(
|
||||||
|
@ -189,6 +190,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
|
|
||||||
case status
|
case status
|
||||||
when 'STATUS_SUCCESS'
|
when 'STATUS_SUCCESS'
|
||||||
|
|
||||||
if(simple.client.auth_user)
|
if(simple.client.auth_user)
|
||||||
print_good(output_message % "SUCCESSFUL LOGIN")
|
print_good(output_message % "SUCCESSFUL LOGIN")
|
||||||
vprint_status("Auth-User: #{simple.client.auth_user}")
|
vprint_status("Auth-User: #{simple.client.auth_user}")
|
||||||
|
@ -210,7 +212,6 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def validuser_case_sensitive?(domain, user, pass)
|
def validuser_case_sensitive?(domain, user, pass)
|
||||||
if user == user.downcase
|
if user == user.downcase
|
||||||
user = user.upcase
|
user = user.upcase
|
||||||
|
|
Loading…
Reference in New Issue