-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathmain.py
More file actions
76 lines (65 loc) · 3.22 KB
/
Copy pathmain.py
File metadata and controls
76 lines (65 loc) · 3.22 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
65
66
67
68
69
70
71
72
73
74
75
76
from flask import Flask, render_template
from threading import Thread
app = Flask(__name__)
@app.route('/')
def index():
return '''<body style="margin: 0; padding: 0;">
<iframe width="100%" height="100%" src="https://axocoder.vercel.app/" frameborder="0" allowfullscreen></iframe>
</body>'''
def run():
app.run(host='0.0.0.0', port=8080)
def keep_alive():
t = Thread(target=run)
t.start()
keep_alive()
print("Server Running Because of Axo")
import requests
import json
import time
import os
_mommy = '''
█████╗ ██╗ ██╗ ██████╗ ██████╗ ██████╗ ██████╗ ███████╗██████╗
██╔══██╗╚██╗██╔╝██╔═══██╗ ██╔════╝██╔═══██╗██╔══██╗██╔════╝██╔══██╗
███████║ ╚███╔╝ ██║ ██║ ██║ ██║ ██║██║ ██║█████╗ ██████╔╝
██╔══██║ ██╔██╗ ██║ ██║ ██║ ██║ ██║██║ ██║██╔══╝ ██╔══██╗
██║ ██║██╔╝ ██╗╚██████╔╝ ╚██████╗╚██████╔╝██████╔╝███████╗██║ ██║
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝
MADE BY ANKIT | Axo Coder
NITRO PROMO GEN
'''
os.system('clear || cls')
print(_mommy)
url = 'https://api.discord.gx.games/v1/direct-fulfillment'
headers = {
'authority': 'api.discord.gx.games',
'accept': '*/*',
'accept-language': 'en-US,en;q=0.9',
'content-type': 'application/json',
'origin': 'https://www.opera.com',
'referer': 'https://www.opera.com/',
'sec-ch-ua': '"Opera GX";v="105", "Chromium";v="119", "Not?A_Brand";v="24"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Windows"',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'cross-site',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 OPR/105.0.0.0'
}
data = {
'partnerUserId': '50b1bf177eca2a06f77680c1aa6277e1d5a44eb6d8b4a72545348e4828cf0753'
}
while True:
# Sending POST request
response = requests.post(url, headers=headers, data=json.dumps(data))
# Checking if the request was successful
if response.status_code == 200:
token = json.loads(response.text)['token']
# Writing token to codes.txt with the specified URL prefix
with open('codes.txt', 'a') as file: # Use 'a' to append to the file
file.write(f"https://discord.com/billing/partner-promotions/1180231712274387115/{token}\n")
print("Token saved to codes.txt file.")
else:
print(f"Request failed with status code {response.status_code}.")
print(f"Error message: {response.text}")
# Wait for 1 second before the next iteration
time.sleep(1)