Checklist
This is a checklist of steps on what you should be looking at once you are inside a machine. This is not a definitive list, but it should give you a good idea of what to look for.
- Check for sudo privileges
shell sudo -l
- Check for environment variables
shell env
- Check for files with
setuid
bit setshell find / -perm -4000 -type f 2>/dev/null
- Check for logs
shell cat /var/log/auth.log
- Check for cron jobs
shell cat /etc/crontab
- List running processes
shell ps aux
- Info about me
shell id || (whoami && groups) 2>/dev/null
-
Check for writable files
shell find / -writable -type f 2>/dev/null
-
Check for emails
shell cat /var/mail/$USER
-
Check for network connections
shell netstat -tulnp
-
Scan with
linpeas
shell ./linpeas.sh