some bugs for sinn3r

bug/bundler_fix
Brandon Perry 2014-03-24 18:17:50 -05:00
parent d6f397ab6d
commit ec35f4b13f
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,8 @@ class Metasploit3 < Msf::Exploit::Remote
register_options(
[
Opt::RPORT(443),
OptBool.new('SSL', [true, 'Use SSL', true]),
OptString.new('TARGETURI', [true, 'The URI of the vulnerable instance', '/']),
OptString.new('USERNAME', [true, 'The username to authenticate with', 'administrator']),
OptString.new('PASSWORD', [true, 'The password to authenticate with', 'admin123'])
@ -63,6 +65,10 @@ class Metasploit3 < Msf::Exploit::Remote
fail_with("Server did not respond in an expected way")
end
if res.code != 200
fail_with("Did not get a 200 response, perhaps the server isn't on an SSL port")
end
token = /name='csrfmiddlewaretoken' value='(.*)'/.match(res.body)
token = token[1]