Add firstl email format

This commit is contained in:
leesoh 2018-03-14 15:02:29 -06:00
parent cb8719b373
commit 9d86de3de9

View file

@ -262,6 +262,8 @@ def get_search():
user = '{}{}{}'.format(fname, mname[0], lname) user = '{}{}{}'.format(fname, mname[0], lname)
if prefix == 'flast': if prefix == 'flast':
user = '{}{}'.format(fname[0], lname) user = '{}{}'.format(fname[0], lname)
if prefix == 'firstl':
user = '{}{}'.format(fname,lname[0])
if prefix == 'first.last': if prefix == 'first.last':
user = '{}.{}'.format(fname, lname) user = '{}.{}'.format(fname, lname)
if prefix == 'fmlast': if prefix == 'fmlast':
@ -377,10 +379,10 @@ if __name__ == '__main__':
print print
while True: while True:
prefix = raw_input("[*] Select a prefix for e-mail generation (auto,full,firstlast,firstmlast,flast,first.last,fmlast,lastfirst): \n") prefix = raw_input("[*] Select a prefix for e-mail generation (auto,full,firstlast,firstmlast,flast,firstl,first.last,fmlast,lastfirst): \n")
prefix = prefix.lower() prefix = prefix.lower()
print print
if prefix == "full" or prefix == "firstlast" or prefix == "firstmlast" or prefix == "flast" or prefix =="first" or prefix == "first.last" or prefix == "fmlast" or prefix == "lastfirst": if prefix == "full" or prefix == "firstlast" or prefix == "firstmlast" or prefix == "flast" or prefix == "firstl" or prefix =="first" or prefix == "first.last" or prefix == "fmlast" or prefix == "lastfirst":
break break
elif prefix == "auto": elif prefix == "auto":
#if auto prefix then we want to use hunter IO to find it. #if auto prefix then we want to use hunter IO to find it.
@ -402,7 +404,7 @@ if __name__ == '__main__':
print "[!] %s" % prefix print "[!] %s" % prefix
if prefix: if prefix:
prefix = prefix.replace("{","").replace("}", "") prefix = prefix.replace("{","").replace("}", "")
if prefix == "full" or prefix == "firstlast" or prefix == "firstmlast" or prefix == "flast" or prefix =="first" or prefix == "first.last" or prefix == "fmlast" or prefix == "lastfirst": if prefix == "full" or prefix == "firstlast" or prefix == "firstmlast" or prefix == "flast" or prefix == "firstl" or prefix =="first" or prefix == "first.last" or prefix == "fmlast" or prefix == "lastfirst":
print "[+] Found %s prefix" % prefix print "[+] Found %s prefix" % prefix
break break
else: else:
@ -412,7 +414,7 @@ if __name__ == '__main__':
print "[!] Automatic prefix search failed, please insert a manual choice" print "[!] Automatic prefix search failed, please insert a manual choice"
continue continue
else: else:
print "[!] Incorrect choice, please select a value from (auto,full,firstlast,firstmlast,flast,first.last,fmlast)" print "[!] Incorrect choice, please select a value from (auto,full,firstlast,firstmlast,flast,firstl,first.last,fmlast)"
print print