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.

chevron-rightUser Infohashtag
id #current user info
cat /etc/passwd #list of users and their groups
chevron-rightOS Version and Architecturehashtag
cat /etc/issue
cat /etc/*-release
uname -a
chevron-rightRunning Processes & Serviceshashtag
ps axu
chevron-rightFirewall Statuses & Ruleshashtag
cat /etc/iptables #Mostly requires root permissions, but sometimes these files are left with weak permissions
chevron-rightScheduled Taskshashtag
cat /etc/crontab
chevron-rightInstalled Applications & Patch Levelshashtag
chevron-rightReadable/Writable Fileshashtag
chevron-rightUnmounted Diskshashtag
chevron-rightDevice Drivers & Kernel Moduleshashtag
chevron-rightBinaries that Autoelevatehashtag

Last updated