716 B
716 B
Linux enumeration
-
cat /etc/*-release*cat /proc/version -
hostname -
uname -a -
cat /etc/issue -
ps wuaxorps ajxforps -A -
printenvorenv -
sudo -l -
id -
whoami -
groupsandgetent group -
cat /etc/passwd -
history -
iporifconfig -
ip route -
netstat -natuporss natup -
netstat -sandnetstat -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/nullorfind / -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