killchain-compendium/Enumeration/Linux Enum.md

514 B

Linux Basic Enumeration

less ~/.bash_history
cat /etc/*-release
cat /proc/version
uname -a
sudo -V
sudo -L
  • Check if is writeable
vim /etc/passwd
vim /etc/hosts
crontab -l
  • Find interesting files
find / -perm /6000 2>/dev/null
find / -perm -u=s -type f 2>/dev/null
find / -type f -name "*.log" 2>/dev/null
find / -type f -name "*.bak" 2>/dev/null
find / -type f -name "*.conf" 2>/dev/null
  • Open Sockets
lsof -i
netstat -natup
ss -natup