-
Notifications
You must be signed in to change notification settings - Fork 1
/
vcspammer.py
53 lines (50 loc) · 1.61 KB
/
vcspammer.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
from json import loads
from time import sleep
from json import dumps
from websocket import WebSocket
from concurrent.futures import ThreadPoolExecutor
import easygui, os
tokenlist = open(easygui.fileopenbox(), 'r').read().splitlines()
channel = int(input("Channel ID: "))
server = int(input("Server ID: "))
deaf = input("Defean: (y/n) ")
if deaf == "y":
deaf = True
if deaf == "n":
deaf = False
mute = input("Mute: (y/n) ")
if mute == "y":
mute = True
if mute == "n":
mute = False
stream = input("Stream: (y/n) ")
if stream == "y":
stream = True
if stream == "n":
stream = False
video = input("Video: (y/n) ")
if video == "y":
video = True
if video == "n":
video = False
executor = ThreadPoolExecutor(max_workers=int(1000))
def run(token):
while True:
ws = WebSocket()
ws.connect("wss://gateway.discord.gg/?v=8&encoding=json")
hello = loads(ws.recv())
heartbeat_interval = hello['d']['heartbeat_interval']
ws.send(dumps({"op": 2,"d": {"token": token,"properties": {"$os": "windows","$browser": "Discord","$device": "desktop"}}}))
ws.send(dumps({"op": 4,"d": {"guild_id": server,"channel_id": channel,"self_mute": mute,"self_deaf": deaf, "self_stream?": stream, "self_video": video}}))
ws.send(dumps({"op": 18,"d": {"type": "guild","guild_id": server,"channel_id": channel,"preferred_region": "singapore"}}))
ws.send(dumps({"op": 1,"d": None}))
ws.close()
sleep(0.1)
os.system(f"title Total Tokens: {len(tokenlist)}")
i = 0
for token in tokenlist:
executor.submit(run, token)
i+=1
print("[+] Joined voice channel")
sleep(0.01)
yay = input("Enter to exit.")