-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwebhook.py
58 lines (46 loc) · 2.46 KB
/
webhook.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
import os
import sys
from random import choice
import httpx
from colorama import Fore,init
init(convert=True)
def cls():
linux = "clear"
windows = "cls"
os.system([linux,windows][os.name=="nt"])
cls()
print(Fore.GREEN+"""
╭╮╭╮╭┳━━━┳━━╮╭╮╱╭┳━━━┳━━━┳╮╭━╮╭━━━┳━━━┳━━━┳━╮╭━┳━╮╭━┳━━━┳━━━╮
┃┃┃┃┃┃╭━━┫╭╮┃┃┃╱┃┃╭━╮┃╭━╮┃┃┃╭╯┃╭━╮┃╭━╮┃╭━╮┃┃╰╯┃┃┃╰╯┃┃╭━━┫╭━╮┃
┃┃┃┃┃┃╰━━┫╰╯╰┫╰━╯┃┃╱┃┃┃╱┃┃╰╯╯╱┃╰━━┫╰━╯┃┃╱┃┃╭╮╭╮┃╭╮╭╮┃╰━━┫╰━╯┃
┃╰╯╰╯┃╭━━┫╭━╮┃╭━╮┃┃╱┃┃┃╱┃┃╭╮┃╱╰━━╮┃╭━━┫╰━╯┃┃┃┃┃┃┃┃┃┃┃╭━━┫╭╮╭╯
╰╮╭╮╭┫╰━━┫╰━╯┃┃╱┃┃╰━╯┃╰━╯┃┃┃╰╮┃╰━╯┃┃╱╱┃╭━╮┃┃┃┃┃┃┃┃┃┃┃╰━━┫┃┃╰╮
╱╰╯╰╯╰━━━┻━━━┻╯╱╰┻━━━┻━━━┻╯╰━╯╰━━━┻╯╱╱╰╯╱╰┻╯╰╯╰┻╯╰╯╰┻━━━┻╯╰━╯
-https://github.com/Terminal1337""")
proxy = ""
with open("proxies.txt",'r') as f:
proxy = "http://" + choice(f.readlines()).strip()
webhook = input(Fore.RED+"Enter the Webhook Url: ")
msg = input(Fore.CYAN+"Enter the message: ")
tyme = int(input(Fore.BLUE+"Enter the number of times to spam: "))
def proxy_spam():
req = httpx.post(webhook, json={'content': msg},proxies=proxy)
if req.status_code == 204:
print(Fore.GREEN+"Message Sent Successfully")
else:
print(Fore.WHITE+"Bad proxies or webhook or ratelimited")
def proxyless_spam():
req = httpx.post(webhook, json={'content': msg})
if req.status_code == 204:
print(Fore.GREEN+"Message Sent Successfully")
else:
print(Fore.WHITE+"Bad proxies or webhook or ratelimited")
support = input(Fore.LIGHTYELLOW_EX+"Do you want to enable proxy mode?(Y/n): ")
if support == "Y":
for i in range(tyme):
proxy_spam()
elif support == "n":
for i in range(tyme):
proxyless_spam()
else:
sys.exit()