Awesome Open Source
Awesome Open Source

Namebuster

License: MIT Tests Go Report Card

Generates a list of possible common username permutations given a list of names, a url, or a file.

Install

Go: go install github.com/benbusby/[email protected]

Python (branch): pip install namebuster

Usage

Command Line

[email protected]:~$ namebuster                                            
                                                        
Usage:                                                  
namebuster <names|url|file>                             
                                                        
Example (names): namebuster "John Broccoli, Diana Mango"
Example (url):   namebuster https://sauna.htb           
Example (file):  namebuster document.txt

Python

import namebuster

# Create a list of all usernames as one large list
split_usernames = namebuster.generate("https://sauna.htb")

# With name_sep=True, create a dict with "real_name: [usernames]" mapping
split_usernames = namebuster.generate("John Broccoli, Tim Apple", name_sep=True)

For each discovered name, namebuster will generate ~200 possible usernames. You can then use this list with a tool like kerbrute, for example:

[ benbusby : ~/test ]
$ namebuster "Fergus Smith" > usernames.txt
[ benbusby : ~/test ]
$ ./kerbrute_linux_amd64 userenum ./usernames.txt -d DOMAIN.LOCAL --dc domain.com

    __             __               __
   / /_____  _____/ /_  _______  __/ /____
  / //_/ _ \/ ___/ __ \/ ___/ / / / __/ _ \
 / ,< /  __/ /  / /_/ / /  / /_/ / /_/  __/
/_/|_|\___/_/  /_.___/_/   \__,_/\__/\___/

Version: v1.0.3 (9dad6e1) - 02/18/20 - Ronnie Flathers @ropnop

2020/02/18 23:47:59 >  Using KDC(s):
2020/02/18 23:47:59 >  	domain.com:88

2020/02/18 23:47:59 >  [+] VALID USERNAME:	 [email protected]
2020/02/18 23:47:59 >  Done! Tested 125 usernames (1 valid) in 1.585 seconds

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Python (1,143,903
Go (198,300
Python3 (33,410
Nlp (8,384
Pentesting (1,386
Penetration Testing (840
Pip (763
Bruteforce (731
Named Entity Recognition (602
Enumeration (371
Offensive Security (179
Hackthebox (151
Username (97
User Enumeration (18
Username Generator (18
Related Projects