Skip to content

Commit

Permalink
store module loot
Browse files Browse the repository at this point in the history
  • Loading branch information
h00die committed Dec 13, 2023
1 parent 8eefea7 commit 1749fa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/post/linux/gather/puppet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def puppet_modules
columns = ['Module', 'Version']
table = Rex::Text::Table.new('Header' => 'Puppet Modules', 'Indent' => 1, 'Columns' => columns)
mods = cmd_exec("#{puppet_exe} module list")
# XXX store this
l = store_loot('puppet.modules', 'text/plain', session, mods, 'Puppet modules list')
print_good("Stored facter to: #{l}")
mods.lines.each do |line|
next if line.start_with? '/' # showing paths of where things are installed to like '/etc/puppetlabs/code/modules (no modules installed)'

Expand Down

0 comments on commit 1749fa1

Please sign in to comment.