Basics - EoP Checklist

Checklist

Credentials Huntingchevron-rightToolschevron-right

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

Credentials Huntingchevron-right

User's Home Directory Contents

circle-info

Check the ARP cache to see what other hosts are being accessed and cross-reference these against any useable SSH private keys.

SSH Directory Contents

Bash History

Sudo

circle-info

It is not uncommon to gain access as a user with full sudo privileges, meaning they can run any command as root. Issuing a simple sudo su command will immediately give you a root session.

Sudo Rights Abusechevron-right

Passwd

circle-info

Occasionally, you will see password hashes directly in the /etc/passwd file

Cron Jobs

File Systems & Additional Drives

Find Writable Directories

Cron Job Abusechevron-right

If 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.

SSH (22)chevron-right

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 Abusechevron-right

Interesting Files

Unshadow

Hasheschevron-right

Resources

Last updated