Command Group | Task | Linux Command | Meterpreter Command | Comments |
---|---|---|---|---|
Information Gathering | Show Operating System Information | cat /etc/issue && cat /etc/*-release | ||
Information Gathering | Show Kernel Information | uname -a | ||
Network Mapping | Show Network Configuration | ip addr | ||
Network Mapping | Show Routes | route -n | ||
Information Gathering | Get Users | cat /etc/passwd | ||
Information Gathering | Show Current Directory | pwd | ||
Information Gathering | List Current Directory Contents | ls -la | ||
Information Gathering | List Last Logged On User | lastlog | ||
Information Gathering | Show All Users Including UID and GID Information | for user in $(cat /etc/passwd | cut -f1 -d":"); do id $user; done | ||
Information Gathering | List all UID 0 Root Users | cat /etc/passwd | cut -f 1,3,4 -d ":" | grep “0:0” | cut -f 1 -d ":" | awk ' { print $1 } ' | ||
Information Gathering | Read Sudoers File | cat /etc/sudoers | ||
Information Gathering | List Cron Jobs | cat /etc/crontab && ls -als /etc/cron* | ||
Information Gathering | List World-Writeable Cron Jobs | find /etc/cron* -type f -perm -o+w -exec ls -l {} \; | ||
Information Gathering | List Running Processes | ps auxwww | ||
Information Gathering | Find SUID Files Owned By Root | find / -uid 0 -perm -4000 -type f 2>/dev/null | ||
Information Gathering | Find World-Writeable Files | find -perm -2 -type f 2>/dev/null | ||
Information Gathering | Find GUID Files | find / -perm -2000 -type f 2>/dev/null | ||
Information Gathering | Enumerate Shares | smbclient -L \\\\ipaddr\\ | ||
Information Gathering | Show Available Mounts | showmount -e ipaddress | ||
Information Gathering | Enumerate SMTP | telnet ipaddr 25 | ||
Regex | Modify content list | |||