Enumeration

id
hostname
env
cat .bashrc
cat /etc/passwd
cat /etc/issue
cat /etc/os-release
uname -a
ps aux # list all processes with our without a tty and in a user readable format.
ip a
routel / route # Get a list of the network routing tables.
netstat -punta / ss --ntpu # List of open ports
cat /etc/iptables/rules.v4
ls -lah /etc/cron*
crontab -l
sudo crontab -l
dpkg -l # List applications installed by dpkg
find / -writable -type d 2>/dev/null
cat /etc/fstab # List all drives that will be mounted at boot time.
mount # List all mounted file systems.
lsblk # List all available Disks
find / -perm -u=s -type f 2>/dev/null # Find all SUID-marked binaries / might take a minute.

Automated Enumeration Checks

Kali Linux has a built in script called unix-privesc-check.

My favorite Linux check script is LinPEASarrow-up-right. Depending on the circumstances you might want to pick between the bash script or the binary.

They even offer some tips on performing rudimentry AV bypass. Always remember to tweak the password to end up with a different encrypted binary.

Last updated