-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathpassgen.py
74 lines (61 loc) · 3.03 KB
/
passgen.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import random
import sys
from math import log
if sys.version_info < (3, 0):
input = raw_input
# Just some colors and shit
white = '\033[1;97m'
green = '\033[1;32m'
red = '\033[1;31m'
yellow = '\033[1;33m'
end = '\033[1;m'
info = '\033[1;33m[!]\033[1;m'
que = '\033[1;34m[?]\033[1;m'
bad = '\033[1;31m[-]\033[1;m'
good = '\033[1;32m[+]\033[1;m'
run = '\033[1;97m[~]\033[1;m'
print ('''%s __ __
▒█▀▀█ █▀▀█ █▀▀ █▀▀ ▒█▀▀█ █▀▀ █▀▀▄ Ⓣⓔⓒⓗⓝⓘⓒⓐⓛ Ⓜⓤⓙⓔⓔⓑ
▒█▄▄█ █▄▄█ ▀▀█ ▀▀█ ▒█░▄▄ █▀▀ █░░█
▒█░░░ ▀░░▀ ▀▀▀ ▀▀▀ ▒█▄▄█ ▀▀▀ ▀░░▀ %s\n''' % (red, end))
print ('''%s
▒█▀▄▀█ █░░█ ░░▀ █▀▀ █▀▀ █▀▀▄
▒█▒█▒█ █░░█ ░░█ █▀▀ █▀▀ █▀▀▄
█░░▒█ ░▀▀▀ █▄█ ▀▀▀ ▀▀▀ ▀▀▀░ %s \n''' % (green, end))
name = input('%s Name of a RANDOM person: ' % que).lower()
choice = input('%s Obsfucate the name? [Y/n] ' % que).lower()
if choice == 'n':
obsfucate = False
else:
obsfucate = True
first = ['had', 'throws', 'buys', 'bites', 'blows', 'hates', 'likes', 'bangs', 'tarzan', 'has', 'boils', 'wants', 'roasts', 'fly', 'eats', 'licks', 'sucks', 'rides', 'kills', 'screws', 'destroys', 'cuts']
second = ['your', 'our', 'racist', 'hairy', 'many', 'green', 'giant', 'all', 'three', 'five', 'hundred', 'ugly', 'my', 'black', 'nice', 'small', 'horny', 'little', 'ten', 'loverboy', 'wwe', 'password', 'super']
third = ['hammers', 'apples', 'monkeys', 'babies', 'kids', 'hands', 'horses', 'trees','stones', 'cats', 'asses', 'computers', 'mangoes', 'dildos', 'poles', 'dogs', 'pussies', 'aliens', 'hackers', 'brother',]
seperators = ['-', '.', '*', '+', '~', '_', '/', '\\', '@']
generated_passwords = []
def generate(name):
wordlist = []
wordlist.append(random.choice(first))
wordlist.append(random.choice(second))
wordlist.append(random.choice(third))
seperator = random.choice(seperators)
name = name.title()
if obsfucate:
name = name.replace('a', '4').replace('h', '3').replace('e', '3').replace('i', '!').replace('l', '1').replace('t', '7').replace('s', '$').replace('o', '0')
password = name + seperator + seperator.join(wordlist)
generated_passwords.append(password)
print (' %s|%s %-35s%s|%s %-20s%s|%s' % (green, end, password, green, end, (log(82)/log(2)) * len(password), green, end))
def initiate():
print ('')
print (' %s+------------------------------------+---------------------+%s' % (green, end))
print (' %s| Passwords | Entropy |%s' % (green, end))
print (' %s+------------------------------------+---------------------+%s' % (green, end))
for y in range(0, 10):
generate(name)
print (' %s+--------------------------+-------------------------------+%s' % (green, end))
choice = input('\n%s Generate more passwords? [y/N] ' % que).lower()
if choice == 'y':
initiate()
else:
quit()
initiate()