This fork is an update to the AD-Username Generator by w0Tx.
You can find their original project here: https://github.com/w0Tx/generate-ad-username.
I created this as a way to learn Python and also as a method for generating usernames from a CSV file.
Future Options:
-o : Output the usernames to a file.
--nocap : Maintain capitalization of input CSV file (disable conversion to lowercase).
git clone https://github.com/matthewomccorkle/jenny.git
CSV file format should have names seperated by commas (,). Example CSV:
First,Last
First2,Last2
First3,Last3
Help Menu
python3 jenny.py -h
options:
-h, --help show this help message and exit
--file FILE names_file.csv
--nocap Maintains capitalizion of CSV file. Does not convert to all lowercase.
--first-last first.last
--f-last f.last
--first-l first.l
--fir-las fir.las
--firstlast firstlast
--firlas firlas
--flast flast
--last-first last.first
--l-first l.first
--last-f last.f
--las-fir las.fir
--lastfirst lastfirst
--lasfir lasfir
--lfirst lfirst
--sink Returns formatted username list using all options. This creates 12 versions of each name.
first.last example:
python3 jenny.py -f example.csv --first-last
john.doe
jane.neena
william.smith
julian.asange
specify multiple syntax choices example:
python3 jenny.py --file example.csv --first-last --lasfir --fir-las
john.doe
joh.doe
doejoh
jane.neena
jan.nee
neejan
william.smith
wil.smi
smiwil
julian.asange
jul.asa
asajul
Kitchen Sink example:
# python3 jenny.py -f example.csv --sink
john.doe
j.doe
john.d
joh.doe
johndoe
johdoe
jdoe
doe.john
d.john
doe.j
doe.joh
doejohn
doejoh
djohn
jane.neena
j.neena
jane.n
jan.nee
janeneena
jannee
jneena
neena.jane
n.jane
neena.j
nee.jan
neenajane
neejan
njane
william.smith
w.smith
william.s
wil.smi
williamsmith
wilsmi
wsmith
smith.william
s.william
smith.w
smi.wil
smithwilliam
smiwil
swilliam
julian.asange
j.asange
julian.a
jul.asa
julianasange
julasa
jasange
asange.julian
a.julian
asange.j
asa.jul
asangejulian
asajul
ajulian
Redirect output to file
$ python3 jenny.py --file example.csv --first-last >> first.last
$ cat first.last
john.doe
jane.neena
william.smith
julian.asange