Make msftidy happy
parent
99ec988485
commit
75d40d4d82
|
@ -1,7 +1,3 @@
|
||||||
##
|
|
||||||
# $Id$
|
|
||||||
##
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# This file is part of the Metasploit Framework and may be subject to
|
# This file is part of the Metasploit Framework and may be subject to
|
||||||
# redistribution and commercial restrictions. Please see the Metasploit
|
# redistribution and commercial restrictions. Please see the Metasploit
|
||||||
|
@ -22,9 +18,11 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
super(
|
super(
|
||||||
'Name' => 'Dell iDRAC default Login',
|
'Name' => 'Dell iDRAC default Login',
|
||||||
'Version' => '$Revision$',
|
'Version' => '$Revision$',
|
||||||
'Description' => %q{This module attempts to login to a iDRAC webserver
|
'Description' => %q{
|
||||||
instance using default username and password. Tested against
|
This module attempts to login to a iDRAC webserver instance using
|
||||||
Dell Remote Access Controller 6 - Express version 1.50 and 1.85},
|
default username and password. Tested against Dell Remote Access
|
||||||
|
Controller 6 - Express version 1.50 and 1.85
|
||||||
|
},
|
||||||
'Author' =>
|
'Author' =>
|
||||||
[
|
[
|
||||||
'Cristiano Maruti <cmaruti[at]gmail.com>'
|
'Cristiano Maruti <cmaruti[at]gmail.com>'
|
||||||
|
@ -68,7 +66,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
'user' => user,
|
'user' => user,
|
||||||
'password' => pass
|
'password' => pass
|
||||||
}
|
}
|
||||||
}, 20)
|
})
|
||||||
|
|
||||||
if(auth and auth.body.to_s.match(/<authResult>[0|5]<\/authResult>/) != nil )
|
if(auth and auth.body.to_s.match(/<authResult>[0|5]<\/authResult>/) != nil )
|
||||||
print_good("#{target_url} - SUCCESSFUL login for user '#{user}' with password '#{pass}'")
|
print_good("#{target_url} - SUCCESSFUL login for user '#{user}' with password '#{pass}'")
|
||||||
|
@ -89,13 +87,12 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
end
|
end
|
||||||
|
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
|
|
||||||
print_status("Verifying that login page exists at #{ip}")
|
print_status("Verifying that login page exists at #{ip}")
|
||||||
begin
|
begin
|
||||||
res = send_request_raw({
|
res = send_request_raw({
|
||||||
'method' => 'GET',
|
'method' => 'GET',
|
||||||
'uri' => target_uri.path
|
'uri' => target_uri.path
|
||||||
}, 20)
|
})
|
||||||
|
|
||||||
if (res and res.code == 200 and res.body.to_s.match(/<authResult>1/) != nil)
|
if (res and res.code == 200 and res.body.to_s.match(/<authResult>1/) != nil)
|
||||||
print_status("Attempting authentication")
|
print_status("Attempting authentication")
|
||||||
|
|
Loading…
Reference in New Issue