-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNgl_Exploit.py
116 lines (97 loc) · 4.35 KB
/
Ngl_Exploit.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import aiohttp
import asyncio
import os
import sys
import time
from pystyle import Colors, Colorate
async def clear_screen():
os.system('cls' if os.name == 'nt' else 'clear')
async def animate_loading():
animation = ["[■□□□□□□□□□]", "[■■□□□□□□□□]", "[■■■□□□□□□□]", "[■■■■□□□□□□]", "[■■■■■□□□□□]", "[■■■■■■□□□□]", "[■■■■■■■□□□]", "[■■■■■■■■□□]", "[■■■■■■■■■□]", "[■■■■■■■■■■]"]
for i in range(len(animation)):
await asyncio.sleep(0.3)
sys.stdout.write("\r" + animation[i % len(animation)])
sys.stdout.flush()
async def send_request(session, nglusername, message):
url = 'https://ngl.link/api/submit'
headers = {
'Host': 'ngl.link',
'sec-ch-ua': '"Google Chrome";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',
'accept': '*/*',
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
'x-requested-with': 'XMLHttpRequest',
'sec-ch-ua-mobile': '?0',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36',
'sec-ch-ua-platform': '"Windows"',
'origin': 'https://ngl.link',
'sec-fetch-site': 'same-origin',
'sec-fetch-mode': 'cors',
'sec-fetch-dest': 'empty',
'referer': f'https://ngl.link/{nglusername}',
'accept-language': 'tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7',
}
data = {
'username': f'{nglusername}',
'question': f'{message}',
'deviceId': '0',
'gameSlug': '',
'referrer': '',
}
async with session.post(url, headers=headers, data=data) as response:
if response.status == 200:
await animate_loading()
return True
else:
return False
async def ngl(nglusername, count, custom_message=False):
await clear_screen()
if custom_message:
message = input("Message: ")
else:
message = "function(deleter):____reset(fuck_you_)"
async with aiohttp.ClientSession() as session:
tasks = []
for _ in range(count):
task = send_request(session, nglusername, message)
tasks.append(task)
await asyncio.gather(*tasks)
async def return_to_menu():
os.system("cls")
input("Press Enter to return to the menu...")
os.system("cls")
await main()
async def main():
try:
print(Colorate.Vertical(Colors.blue_to_purple,"""
⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠛⢉⢉⠉⠉⠻⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⠟⠠⡰⣕⣗⣷⣧⣀⣅⠘⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⠃⣠⣳⣟⣿⣿⣷⣿⡿⣜⠄⣿⣿⣿⣿⣿
⣿⣿⣿⣿⡿⠁⠄⣳⢷⣿⣿⣿⣿⡿⣝⠖⠄⣿⣿⣿⣿⣿
⣿⣿⣿⣿⠃⠄⢢⡹⣿⢷⣯⢿⢷⡫⣗⠍⢰⣿⣿⣿⣿⣿
⣿⣿⣿⡏⢀⢄⠤⣁⠋⠿⣗⣟⡯⡏⢎⠁⢸⣿⣿⣿⣿⣿
⣿⣿⣿⠄⢔⢕⣯⣿⣿⡲⡤⡄⡤⠄⡀⢠⣿⣿⣿⣿⣿⣿
⣿⣿⠇⠠⡳⣯⣿⣿⣾⢵⣫⢎⢎⠆⢀⣿⣿⣿⣿⣿⣿⣿
⣿⣿⠄⢨⣫⣿⣿⡿⣿⣻⢎⡗⡕⡅⢸⣿⣿⣿⣿⣿⣿⣿
⣿⣿⠄⢜⢾⣾⣿⣿⣟⣗⢯⡪⡳⡱⡁⢸⣿⣿⣿⣿⣿⣿
⣿⣿⠄⢸⢽⣿⣷⣿⣻⡮⡧⡳⡱⡁⢸⣿⣿⣿⣿⣿⣿⣿
⣿⣿⡄⢨⣻⣽⣿⣟⣿⣞⣗⡽⡸⡐⢸⣿⣿⣿⣿⣿⣿⣿
⣿⣿⡇⢀⢗⣿⣿⣿⣿⡿⣞⡵⡣⣊⢸⣿⣿⣿⣿⣿⣿⣿
⣿⣿⠁⠄⢕⡳⣽⡾⣿⢽⣯⡿⣮⢚⣅⠹⣿⣿⣿⣿⣿⣿
⡿⠋⠄⠄⠄⠄⢀⠒⠝⣞⢿⡿⣿⣽⢿⣧⣳⡅⠻⣿⣿⣿
⠁⠄⠄⠄⠄⠄⠐⡐⠱⡱⣻⡻⣝⣮⣟⣻⣟⣻⡺⣊⣿⣿
Code by: Kotaro1337"""))
nglusername = input("Username: ")
option = input("Choose an option (1 - Spammer / 2 - Deleter): ")
if option == "1":
custom_message = True
elif option == "2":
custom_message = False
else:
print("Invalid option")
return
count = int(input("Count: "))
await ngl(nglusername, count, custom_message)
finally:
await asyncio.sleep(1) # Give time for tasks to complete
await asyncio.get_running_loop().shutdown_asyncgens()
asyncio.run(main())