Foothold
Commands that I run once I get a foothold as a user. If I later get a shell as another user, I’ll repeat these commands again. Run the easy, low hanging fruit commands so that we don’t forget.- List the current user’s home directory for any hidden files.
- Run
sudo -lto see if the user can run as sudoers. - If readable, read the current user’s
.bash_history(uncommon). - Identify the current user and groups they may be apart of using
id.
System Info
uname -acat /etc/issuecat /etc/os-release
Network
Identify ports that were not available before getting a shell.- Use
netstat -tulnporss -anoto identify any internal ports. - Do research on any unknown ports.
- Use
chiselor SSH portforward to access any internal ports.
Binaries and Executables
- Check for any binaries with capabilities set.