From 1749fa1e50f7fcccc84e7e4846fc1105b473f43b Mon Sep 17 00:00:00 2001 From: h00die Date: Wed, 13 Dec 2023 07:37:24 -0500 Subject: [PATCH] store module loot --- modules/post/linux/gather/puppet.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/post/linux/gather/puppet.rb b/modules/post/linux/gather/puppet.rb index 59a8eaa6e38d..4d07bb80aad6 100644 --- a/modules/post/linux/gather/puppet.rb +++ b/modules/post/linux/gather/puppet.rb @@ -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)'