rapid7/metasploit-framework — pull request #232 by ohdae (2012-03-13 21:40:29+00:00)
Title: Linux SSH enum, Linux network info post-mods

modules/post/linux/gather/ssh_enum:
-pulls public/private keys from users .ssh directory
-searches users bash history for references to ssh
-pulls authorized_keys file from users .ssh directory

modules/post/linux/gather/network_info:
-lists listening ports
-lists active network connections
-lists ifconfig/iwconfig
-route information
-lists network if-state entries (via /etc/network)

execute and cat_file functions taken from modules/post/linux/gather/enum_linux