// notes/ PrivEsc — Linux
🐧

Initial Enumeration Password Hunting

Notes from oscp.adot8.com — linux privilege escalation.

#linux privilege escalation#adot8
source · oscp.adot8.com · linux-privilege-escalation/initial-enumeration_password-hunting

Password Hunting

Password in files or as a filename

code
01grep --color=auto -rnw '/' -ie "PASSWORD" --color=always 2>/dev/null
02locate password | more
03find / -name password 2>/dev/null

{% hint style="info" %} Try "Password=" or "pwd" or "credentials" or "creds" {% endhint %}

SSH keys

code
01find / -name id_rsa 2>/dev/null
02find / -name authorized_keys 2>/dev/null