Path Abuse
# Host enumeration with Linpeas
$ ./linpeas.sh
ββββββββββββ£ PATH
β https://book.hacktricks.wiki/en/linux-hardening/privilege-escalation/index.html#writable-path-abuses
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
ββββββββββββ£ Systemd PATH
β https://book.hacktricks.wiki/en/linux-hardening/privilege-escalation/index.html#systemd-path---relative-paths
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ββββββββββββ£ Interesting writable files owned by me or writable by everyone (not in Home) (max 200)
β https://book.hacktricks.wiki/en/linux-hardening/privilege-escalation/index.html#writable-files
/usr/local/bin$ cat /etc/crontab
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
β
# m h dom mon dow user command
*/5 * * * * root cd / && run-parts --report /etc/cron.hourly # Every 5 minsLast updated