From 58b2d570c942cbef62c16f2aabf3de053a55af6d Mon Sep 17 00:00:00 2001 From: ohdae Date: Thu, 15 Mar 2012 01:00:55 -0300 Subject: [PATCH] fixed output issue --- modules/post/linux/gather/find_apps.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/post/linux/gather/find_apps.rb b/modules/post/linux/gather/find_apps.rb index 632c33e798..aa5f177203 100644 --- a/modules/post/linux/gather/find_apps.rb +++ b/modules/post/linux/gather/find_apps.rb @@ -90,10 +90,12 @@ class Metasploit3 < Msf::Post "rkhunter", "tcpdump", "webmin", "jailkit", "pwgen", "proxychains", "bastille", "psad", "wireshark", "nagios", "nagios", "apparmor"] - for items in apps - output = which(items) - installed += [output] unless [output] == nil - + apps.each do |a| + output = which("#{a}") + if output + found = (output + "\n") + installed << found + end end save("Installed applications:", installed) unless installed == nil end