Local Enumeration
Quick commands for getting the lay of the land on a Linux host.
System
lshw # hardware info
lspci # PCI hardware
lsusb # USB hardware
lscpu # CPU info
cat /etc/issue # OS info
cat /etc/*release* # OS version info
cat /proc/version # kernel info
sudo fdisk -l # attached disks
ls /var/spool/cron # cron filesUsers and activity
id # current user and groups
w # who is logged on, and what they're doing
who -a # detailed logged-on user info
last -a # last users logged on
cat /etc/passwd | cut -d ':' -f 1 # all users on the system
cat /etc/passwd # full user list
cat /etc/shadow | grep USER # a user's password hash (needs root)Host
cat /etc/hostname # current hostname
cat /etc/hosts # static host entries