From 74cda2b9c1f7fa0ac48bd557eb46f8f5355eeb6b Mon Sep 17 00:00:00 2001 From: George Helvin K J <94814889+Georgehkj125@users.noreply.github.com> Date: Tue, 1 Mar 2022 13:51:42 +0530 Subject: [PATCH] Python Passgen.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 __ __ ▒█▀▀█ █▀▀█ █▀▀ █▀▀ ▒█▀▀█ █▀▀ █▀▀▄ _red_master_(OB_Security)_ ▒█▄▄█ █▄▄█ ▀▀█ ▀▀█ ▒█░▄▄ █▀▀ █░░█ ▒█░░░ ▀░░▀ ▀▀▀ ▀▀▀ ▒█▄▄█ ▀▀▀ ▀░░▀ %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() --- passgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passgen.py b/passgen.py index 0834bb4..8025abc 100644 --- a/passgen.py +++ b/passgen.py @@ -18,7 +18,7 @@ run = '\033[1;97m[~]\033[1;m' print ('''%s __ __ - ▒█▀▀█ █▀▀█ █▀▀ █▀▀ ▒█▀▀█ █▀▀ █▀▀▄ Ⓣⓔⓒⓗⓝⓘⓒⓐⓛ Ⓜⓤⓙⓔⓔⓑ + ▒█▀▀█ █▀▀█ █▀▀ █▀▀ ▒█▀▀█ █▀▀ █▀▀▄ _red_master_(OB_Security)_ ▒█▄▄█ █▄▄█ ▀▀█ ▀▀█ ▒█░▄▄ █▀▀ █░░█ ▒█░░░ ▀░░▀ ▀▀▀ ▀▀▀ ▒█▄▄█ ▀▀▀ ▀░░▀ %s\n''' % (red, end))