Basics - EoP Checklist
Checklist
List Current Processes
Home Directory Contents
Check to see if files such as the .bash_history file are readable and contain any interesting commands, look for configuration files, and check to see if we can obtain copies of a user's SSH keys
User's Home Directory Contents
SSH Directory Contents
Bash History
Sudo
Sudo Rights AbusePasswd
Cron Jobs
File Systems & Additional Drives
Find Writable Directories
Cron Job AbuseIf we find ourselves with write access to a users/.ssh/ directory, we can place our public key in the user's ssh directory at /home/user/.ssh/authorized_keys.
Let us copy key.pub, then on the remote machine, we will add it into /root/.ssh/authorized_keys:
Now, the remote server should allow us to log in as that user by using our private key:
Find Writable Files
Cron Job AbuseInteresting Files
Unshadow
HashesResources
Last updated