Tags:enumerationlinux
Index: - index location


Summary

Enumeration tools, commands, and techniques to extract data and prepare for Privilege Escalation


System Enumeration

CommandPurpose/Function
hostnameDisplays hostname
uname -aGets OS, kernel version
cat /proc/versionGet OS version
cat /etc/issueGet OS Details

User enumeration

CommandPurpose/Function
whoamiGet username
idGives group info(admin privs)
sudo -lTells us what we can run as root
cat /etc/passwdDisplays all users (passwd file)
cat /etc/shadowGet password hashes (shadow file)
cat /etc/groupGet group info
historyShows previous commands entered in terminal by user
sudo su To Switch users

Network enumeration

CommandPurpose/Function
ifconfig or ip aIP address and interface info
ip routeIdentify routes
arp -a or ip neighWhich systems does system interact with
netstat -anoOpen ports and established connections

Password hunting

CommandPurpose/Function
grep --color=auto -rmw '/' "PASSWORD=" --color=always 2> /dev/nullHunt for hardcoded passwords and colour code it
locate passwordFind files with name password
find / -name authorized_keys 2> /dev/nullHunt for authorized_keys
find / -name id_rsa 2> /dev/nullHunt for id_rsa rsa private keys

Automated Tools


Search for backup folders

locate backup - Finds files and folders named backup