-
Notifications
You must be signed in to change notification settings - Fork 1
/
ping.py
53 lines (39 loc) · 2.19 KB
/
ping.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
import requests, time
import urlib
import webbrowser
from colorama import Fore
print(f'''\n
██████╗░██╗░██████╗░█████╗░░█████╗░
██╔══██╗██║██╔════╝██╔══██╗██╔══██╗
██║░░██║██║╚█████╗░██║░░╚═╝██║░░██║ AUTHOR{Fore.RESET}: "69bit"
██║░░██║██║░╚═══██╗██║░░██╗██║░░██║
██████╔╝██║██████╔╝╚█████╔╝╚█████╔╝ VERSION{Fore.RESET}: 1.0
VERSION{Fore.RESET}: 1.0
═══════════════════════════════════════════════════════════════════
═══════════════════════════════════════════════════════════════════''')
print(f"[{Fore.GREEN}>{Fore.RESET}] Webhook link ")
link = input(" > ")
print(f"[{Fore.GREEN}>{Fore.RESET}] Message to send ")
message = input(" > ")
print(f"[{Fore.GREEN}>{Fore.RESET}] Webhook name ")
name = input(" > ")
payload = {
'content': message,
'username': name
}
while True:
try:
time.sleep(0.5)
r = requests.post(link, json=payload)
f = open('log.txt', 'a+')
if 'You are being rate limited.' in r.text:
f.write('Ratelimited\n')
else:
f.write(f"Spammed {message}\n")
f.close()
if r.status_code == 204:
print(f"[{Fore.GREEN}+{Fore.RESET}] Sent message!")
else:
print(f"[{Fore.RED}-{Fore.RESET}] Ratelimit/Error")
except requests.exceptions.MissingSchema:
print(f"[{Fore.RED}-{Fore.RESET}] Not a real url");break