Post-exploitation and privesc
Scripts (linpeas, winpeas) help, but go over the basics by hand: that is what saves you when the script highlights nothing in red.
Settle the shell 0/3
-
script /dev/null -c bash -
id; hostname; ip a -
python3 -m http.server 443
Linux privesc 0/7
If you are on Windows, skip to the next phase.
-
sudo -l -
find / -perm -4000 -type f 2>/dev/null; getcap -r / 2>/dev/null -
cat /etc/crontab; ls -la /etc/cron.* -
find / -writable -type f -not -path '/proc/*' 2>/dev/null -
ss -tlnp -
uname -a; cat /etc/os-release
Windows privesc 0/5
-
whoami /all -
type $env:APPDATA\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt
Credentials 0/4
-
grep -rniE 'pass(word)?\s*[=:]' /var/www /opt /home 2>/dev/null
Pivoting 0/3
-
chisel server -p 8000 --reverse