-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
97 lines (75 loc) · 4.1 KB
/
main.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import random, string, time, requests, colorama, ctypes, os
from colorama import Fore, Style
from time import sleep
import webbrowser
banner = (f"""{Fore.RED}
███╗ ██╗██╗████████╗██████╗ ██████╗ ██████╗ ███████╗███╗ ██╗
████╗ ██║██║╚══██╔══╝██╔══██╗██╔═══██╗ ██╔════╝ ██╔════╝████╗ ██║
██╔██╗ ██║██║ ██║ ██████╔╝██║ ██║ ██║ ███╗█████╗ ██╔██╗ ██║
██║╚██╗██║██║ ██║ ██╔══██╗██║ ██║ ██║ ██║██╔══╝ ██║╚██╗██║
██║ ╚████║██║ ██║ ██║ ██║╚██████╔╝ ╚██████╔╝███████╗██║ ╚████║
╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝{Style.RESET_ALL}
{Fore.MAGENTA}Developed by: ! Smash#1337{Style.RESET_ALL}
""")
print(f'{banner}')
def Main():
os.system("cls")
print(f'{banner}')
colorama.init()
ctypes.windll.kernel32.SetConsoleTitleW(f"[Nitro Tool] By ! Smash#1337")
print('\n')
print(f' [1] > {Fore.RED}Gen And Check Nitro Codes{Style.RESET_ALL}')
print(f' [2] > {Fore.RED}Tools Town{Style.RESET_ALL}')
print(f' [3] > {Fore.RED}Noritem.de{Style.RESET_ALL}')
print('\n')
print('\n')
answer = input('\033[1;00m[\033[91m>\033[1;00m]\033[91m\033[00m Choose : ')
if answer == '1':
Gen_Check()
elif answer == '2':
casa()
elif answer == '3':
no()
else:
print('Incorrect selection, please choose a number')
Main()
def casa():
webbrowser.open_new('https://discord.gg/toolstown')
os.system("cls")
Main()
def no():
webbrowser.open_new('https://noritem.de')
os.system("cls")
Main()
def Gen_Check():
os.system("cls")
ctypes.windll.kernel32.SetConsoleTitleW(f"[Nitro Tool] By ! Smash#1337 | Nitro Generator")
checked = 0
valid_codes = 0
invalid_codes = 0
print(f'{banner}')
print('\n')
num=input(f"How many Nitro Codes do you want to Gen? ")
to_gen = int(num)
f=open("valid_codes.txt","w+", encoding='utf-8')
for kele in range(int(num)):
ncode = ''.join(random.choice(string.ascii_uppercase + string.digits + string.ascii_lowercase) for _ in range(16))
nitro = f"https://discord.gift/{ncode}"
url = "https://discordapp.com/api/v9/entitlements/gift-codes/" + nitro + "?with_application=false&with_subscription_plan=true"
r = requests.get(url)
if r.status_code == 200:
print(f'{Fore.LIGHTBLACK_EX}[{Fore.LIGHTGREEN_EX}VALID{Fore.LIGHTBLACK_EX}]{Fore.LIGHTCYAN_EX} {nitro}')
f.write(f"{nitro}\n")
ctypes.windll.kernel32.SetConsoleTitleW(f"[Nitro Tool] By ! Smash#1337 | Checked: %s" % checked)
checked += 1
valid_codes += 1
else:
print(f'{Fore.LIGHTBLACK_EX}[{Fore.LIGHTRED_EX}INVALID{Fore.LIGHTBLACK_EX}]{Fore.WHITE} {nitro}')
ctypes.windll.kernel32.SetConsoleTitleW(f"[Nitro Tool] By ! Smash#1337 | Checked: %s" % checked)
checked += 1
invalid_codes += 1
f.close()
print(f"\n{Fore.LIGHTBLACK_EX} Gen {Fore.WHITE}{to_gen} {Fore.LIGHTBLACK_EX}Nitro Codes, {Fore.WHITE}{valid_codes} {Fore.GREEN}Valid{Fore.LIGHTBLACK_EX} {Fore.WHITE}{invalid_codes} {Fore.RED}Invalid{Fore.LIGHTCYAN_EX}\n")
input(f"Done Press Enter.")
Main()
Main()