1.3 KiB
1.3 KiB
Linux enumeration
cat /etc/*-release
*cat /proc/version
hostname
orcat /etc/hostname
cat /etc/hosts
cat /etc/resolve.conf
uname -a
cat /etc/issue
ps wuax
orps ajxf
orps -A
printenv
orenv
cat /etc/timezone
ortimedatectl
sudo -l
id
whoami
groups
andgetent group
orcat /etc/group
cat /etc/passwd | column -t -s :
cat /etc/sudoers
history
ip
orifconfig
ip route
cat /etc/network/interfaces
netstat -natup
orss -natup
netstat -s
andnetstat -i
lsof -i
Login Info
last -f /var/log/wtmp
last -f /var/log/btmp
last
w
who
Syslog
journalctl -xe
less /var/log/syslog
Auth Logs
cat /var/log/auth.log | less
cat /var/log/access.log | less
Find Files
-
Find SUID permissions on files and dirs
-
find / -perm /6000 -ls 2>/dev/null
-
Find writeables dirs
-
find / -writable -type d 2>/dev/null
orfind / -perm -o w -type d 2>/dev/null
-
find / -perm -o x -type d 2>/dev/null
-
Find writeable subdirs
find / -writable 2>/dev/null | cut -d "/" -f 2,3 | grep -v proc | sort -u
-
cat ~/.viminfo
Services
ls -al /etc/systemd/system && ls -la /var/lib/systemd/system || ls -la /etc/init.d
cat /etc/crontab
crontab -l
cat /etc/bash.bashrc ; cat /etc/profile