Disclaimer: This material is provided solely for educational purposes.
You are fully responsible for how
you use the information.
We
do not encourage any kind of illegal or harmful activity.
System Enumeration
- display the hostname of the system:
hostname
- display detailed kernel information:
uname -a
- display the distribution information:
cat /etc/issue
- list all running processes:
ps aux
- show disk usage in human-readable format:
df -h
- display memory usage:
free -m
User Enumeration
- display the current user:
whoami
- display user identity:
id
- view commands that can be run as sudo:
sudo -l
- list all users:
cat /etc/passwd
- extract usernames:
cat /etc/passwd | cut -d : -f 1
- list user password hashes (requires root):
cat /etc/shadow
- list all groups:
cat /etc/group
- view command history:
history
- check for nfs shares:
cat /etc/exports
- list users in the sudo group:
grep '^sudo:.*$' /etc/group
- display the version of sudo:
sudo -V
Network Enumeration
- display all ip addresses:
ip a s
- display routing table:
ip route
- display arp table:
ip neigh
- check open ports and associated services:
netstat -ano
- display all network interfaces:
ifconfig -a
- list all listening ports:
ss -tuln
- display summary of active connections:
ss -s
- display dns configuration:
cat /etc/resolv.conf
- list all firewall rules:
iptables -L
- display wireless network interfaces:
iwconfig
Enumeration Techniques
- find files with the suid bit set:
find / -perm -4000 2>/dev/null
- find files with the sgid bit set:
find / -perm -2000 2>/dev/null
- find writable directories:
find / -writable 2>/dev/null
- find world writable files:
find / -perm -o+w -type f 2>/dev/null
- list open files and associated network connections:
lsof -i
- identify potential kernel exploits:
uname -r; searchsploit $(uname -r)
- display the status of all services:
service --status-all
- list scheduled cron jobs:
crontab -l; ls -la /etc/cron*
- list installed packages:
dpkg -l | grep -i "package_name"
- extract and display firefox browser history:
cat ~/.mozilla/firefox/*.default-release/places.sqlite
- LINPEAS
- LINENUM
- LINUX EXPLOIT SUGGESTER
- LINUX SMART ENUMERATION
- LINUX PRIV CHECKER
- PSPY