-
Notifications
You must be signed in to change notification settings - Fork 0
/
GENERATE_CODE.py
33 lines (29 loc) · 1.4 KB
/
GENERATE_CODE.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
import threading
import time
from colorama import init, Fore
import ctypes
import string
import random
init(convert=True)
ctypes.windll.kernel32.SetConsoleTitleW("Gift card Generator by SLARNVIKOVX")
title = '''
_____ _ _____ _ ___ _______ _ ________ ____ __
/ ____| | /\ | __ \| \ | \ \ / /_ _| |/ / __ \ \ / /\ \ / /
| (___ | | / \ | |__) | \| |\ \ / / | | | ' / | | \ \ / / \ V /
\___ \| | / /\ \ | _ /| . ` | \ \/ / | | | <| | | |\ \/ / > <
____) | |____ / ____ \| | \ \| |\ | \ / _| |_| . \ |__| | \ / / . \
|_____/|______/_/ \_\_| \_\_| \_| \/ |_____|_|\_\____/ \/ /_/ \_\
░
'''
print(Fore.GREEN + title + Fore.WHITE)
f = open('Codes.txt', 'a')
print()
print(Fore.RED + 'Enter amount of codes to generate: ')
amount = int(input())
fix = 1
while fix <= amount:
code = ('').join(random.choices(string.ascii_letters.upper() + string.digits.upper(), k=13))
f.write(code.upper() + '\n')
print(Fore.GREEN + code.upper())
fix += 1
ctypes.windll.kernel32.SetConsoleTitleW("Generated Codes: " + str(fix) + "/" + str(amount))