> For the complete documentation index, see [llms.txt](https://pnpt.adot8.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pnpt.adot8.com/linux-privilege-escalation/initial-enumeration/password-hunting.md).

# Password Hunting

## Password in files or as a filename

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

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

## SSH keys

```
find / -name id_rsa 2>/dev/null
find / -name authorized_keys 2>/dev/null
```
