rapid7/metasploit-framework — pull request #237 by ohdae (2012-03-14 21:35:01+00:00)
Title: Find installed 3rd party AV, Firewalls, etc

Uses a Ruby equivalent of the Linux 'which' command to find installed applications
Focuses on Firewalls, AV, IDS and misc security admin tools
Looks in PATH for: TrueCrypt, Bulldog, UFW, IPTables, LogRotate, LogWatch,
Chkrootkit, ClamAV, Snort, Tiger, Firestarter, Avast AV, Lynis,
RKHunter, TCPDump, Webmin, JailKit, pwgen, Proxychains, Bastille,
psad, Wireshark, Nagios, AppArmor

Can add any other applications to the list that would be installed in the system path. Meant to find applications that weren't installed via package manager, whether they were downloaded, installed via CD/DVD, etc.

*Known Issue* When saving the data, all of the found file locations are added to an array that is saved as the loot file. The problem is, they are all added as one big string. There should be a newline after each array item that's saved to the final output array. Any thoughts?
I tried a few different ways to do this but kept coming up with the error "Cannot add nil to an array". Which makes sense, but I just don't know how to solve this. Any help would be appreciated.