Merge branch 'glassfish-uri' of https://github.com/bonsaiviking/metasploit-framework into bonsaiviking-glassfish-uri
commit
e5666d70e2
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue