Manual Enumeration
System, user, network, and password
System Enumeration
Enumerate kernel version:
uname -aEnumerate distribution:
cat /proc/versionEnumerate CPU:
lscpuEnumerate running services:
ps auxEnumerate running services owned by root:
ps aux | grep rootUser Enumeration
Enumerate current username:
whoamiEnumerate current user ID:
idEnumerate active sessions:
wEnumerate sudo:
sudo -lEnumerate all users on the system:
cat /etc/passwdShow only usernames from /etc/passwd:
cat /etc/passwd | cut -d : -f 1Enumerate user groups:
cat /etc/groupEnumerate command history:
historyNetwork Enumeration
Enumearte network settings (older machines):
ifconfigEnumearte network settings (newer machines):
ip aEnumerate routing table (older machines):
routeEnumerate routing table (newer machines):
ip routeEnumerate ARP table (older machines):
arp -eEnumerate ARP table (newer machines):
ip neighEnumerating active network connections:
netstat -antupPassword Hunting
Search for the keyword "password=" in all files:
grep --color=auto -rnw '/' -ie "PASSWORD=" --color=always 2>/dev/nullSearch for the keyword "password" in filenames:
locate password | moreSearch for SSH keys:
find / -name id_rsa 2>/dev/nullApplications and Services
Enumerate running services owned by root:
ps aux | grep rootEnumerate installed applications on Debian and derivatives:
dpkg -lEnumerate installed applications on Fedora-based distros, use:
rpm -qaEnumerate configuration files in the /etc directory:
ls -la /etc/ | grep .confSearch for web application configuration files:
ls -la /var/www/html/File and Directory Enumeration
World-writable directories:
find / \( -wholename '/home/homedir*' -prune \) -o \( -type d -perm -0002 \) -exec ls -ld '{}' ';' 2>/dev/null | grep -v rootWorld-writable directories for root:
find / \( -wholename '/home/homedir*' -prune \) -o \( -type d -perm -0002 \) -exec ls -ld '{}' ';' 2>/dev/null | grep rootWorld-writable files:
find / \( -wholename '/home/homedir/*' -prune -o -wholename '/proc/*' -prune \) -o \( -type f -perm -0002 \) -exec ls -l '{}' ';' 2>/dev/nullLast updated
Was this helpful?