-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
64 lines (46 loc) · 2.48 KB
/
main.py
File metadata and controls
64 lines (46 loc) · 2.48 KB
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
import os
import ctypes
import requests
import random
import string
import time
print(f"""
/$$ /$$ /$$$$$$ /$$$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$$ /$$ /$$
| $$$ | $$|_ $$_/|__ $$__/| $$__ $$ /$$__ $$ /$$__ $$| $$_____/| $$$ | $$
| $$$$| $$ | $$ | $$ | $$ \ $$| $$ \ $$ | $$ \__/| $$ | $$$$| $$
| $$ $$ $$ | $$ | $$ | $$$$$$$/| $$ | $$ | $$ /$$$$| $$$$$ | $$ $$ $$
| $$ $$$$ | $$ | $$ | $$__ $$| $$ | $$ | $$|_ $$| $$__/ | $$ $$$$
| $$\ $$$ | $$ | $$ | $$ \ $$| $$ | $$ | $$ \ $$| $$ | $$\ $$$
| $$ \ $$ /$$$$$$ | $$ | $$ | $$| $$$$$$/ | $$$$$$/| $$$$$$$$| $$ \ $$
|__/ \__/|______/ |__/ |__/ |__/ \______/ \______/ |________/|__/ \__/
made by: egirl dev#9474
""")
time.sleep(0.1)
time.sleep(0.1)
print("discord.gg/hour\n")
time.sleep(0.1)
num = int(input('How Many Codes to Generate and Check: '))
with open("Nitro Codes.txt", "w", encoding='utf-8') as file:
print("Your nitro codes are being generated, be patient if you entered the high number!")
start = time.time()
for i in range(num):
code = "".join(random.choices(
string.ascii_uppercase + string.digits + string.ascii_lowercase,
k = 19
))
file.write(f"https://discord.gift/{code}\n")
print(f"Generated {num} codes | Time taken: {time.time() - start}\n")
with open("Nitro Codes.txt") as file:
for line in file.readlines():
nitro = line.strip("\n")
url = "https://discordapp.com/api/v6/entitlements/gift-codes/" + nitro + "?with_application=false&with_subscription_plan=true"
r = requests.get(url)
if r.status_code == 200:
print(f" Valid | {nitro} ")
break
else:
print(f" Invalid | {nitro} ")
print("discord.gg/hour\n")
print("github.com/dev6920\n")
time.sleep(0.2)
input("\nYou have generated, Now press enter to close this, you'll get valid codes in Valid Codes.txt if you see its empty then you got no luck, generate 20 million codes for luck or else. bad luck :( ")