716 B
716 B
Linux enumeration
-
cat /etc/*-release
*cat /proc/version
-
hostname
-
uname -a
-
cat /etc/issue
-
ps wuax
orps ajxf
orps -A
-
printenv
orenv
-
sudo -l
-
id
-
whoami
-
groups
andgetent group
-
cat /etc/passwd
-
history
-
ip
orifconfig
-
ip route
-
netstat -natup
orss natup
-
netstat -s
andnetstat -i
-
lsof -i
-
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