Enumeration Commands

The following commands can be used for enumerating various information about the Operating System that can in turn be used for further exploiting or elevating privileges.

User Info
id #current user info
cat /etc/passwd #list of users and their groups
OS Version and Architecture
cat /etc/issue
cat /etc/*-release
uname -a
Running Processes & Services
ps axu
Firewall Statuses & Rules
cat /etc/iptables #Mostly requires root permissions, but sometimes these files are left with weak permissions
Scheduled Tasks
cat /etc/crontab
Installed Applications & Patch Levels
dpkg -l
Readable/Writable Files
find / -writable -type d 2>/dev/null
Unmounted Disks
cat /etc/fstab
/bin/lsblk
Device Drivers & Kernel Modules
lsmod
/sbin/modinfo <module name>
Binaries that Autoelevate
find / -perm -u=s -type f 2>/dev/null

Last updated