Merge branch 'glassfish-uri' of https://github.com/bonsaiviking/metasploit-framework into bonsaiviking-glassfish-uri

unstable
sinn3r 2012-08-13 11:53:03 -05:00
commit e5666d70e2
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class Metasploit3 < Msf::Auxiliary
register_options(
[
Opt::RPORT(4848),
OptString.new('URI', [true, 'The URI path of the GlassFish Server', '/']),
OptString.new('TARGETURI', [true, 'The URI path of the GlassFish Server', '/']),
OptString.new('USERNAME',[true, 'A specific username to authenticate as','admin']),
], self.class)
end
@ -104,7 +104,7 @@ class Metasploit3 < Msf::Auxiliary
headers['Content-Length'] = data.length if data != nil
res = send_request_raw({
'uri' => path,
'uri' => "#{target_uri.path}#{path}".gsub(/\/\//, '/'),
'method' => method,
'data' => data,
'headers' => headers,