-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
352 lines (305 loc) · 14 KB
/
main.py
File metadata and controls
352 lines (305 loc) · 14 KB
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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
import requests
import discord
import discord,json,os,random
from discord import Embed, File
from discord.ext import commands
import discord, datetime, time
import time
import asyncio
import smtplib
import datetime
from configparser import ConfigParser
import os
import sys
import json
token = "YOURBOTTOKEN"
client = commands.Bot(command_prefix='+')
client.remove_command('help')
help_command=None
@client.command()
async def help(ctx):
embed = Embed(title="All Commands", description=None)
embed.add_field(name="+help", value="Displays all available commands", inline=False)
embed.add_field(name="+http", value="Sends a fresh http proxy list", inline=False)
embed.add_field(name="+https", value="Sends a fresh https proxy list", inline=False)
embed.add_field(name="+socks4", value="Sends a fresh socks4 proxy list", inline=False)
embed.add_field(name="+socks5", value="Sends a fresh socsk5 proxy list", inline=False)
embed.add_field(name="+all", value="Sends a fresh http, https, socks4 and socks5 proxy list", inline=False)
embed.add_field(name="+email", value="Format - +email [count] [email] [message] - e.g +email 10 email@email.com lol!", inline=False)
embed.add_field(name="+socials", value="Sends all of the creators socials", inline=False)
embed.add_field(name="+bypass", value="You can bypasss adlinks like linkvertise with this cmd", inline=False)
embed.add_field(name="+lookup", value="Looks through over 9 milion dbs to search for a usernames data", inline=False)
embed.add_field(name="+whois", value="Sends a discord accounts info [+whois @user]", inline=False)
embed.add_field(name="+dm", value="Sends a dm to a certain user [+dm @user]", inline=False)
embed.add_field(name="+ban", value="Bans a certain user out of the server [admin only]", inline=False)
embed.add_field(name="+kick", value="Kicks a certain user out of the server [admin only]", inline=False)
embed.add_field(name="+unban", value="Unbans a certain user that has been banned [admin only]", inline=False)
embed.add_field(name="+addrole", value="Adds a specefied role to a certain user [admin only]", inline=False)
embed.add_field(name="+remrole", value="Removes a specefied role from a certain user [admin only]", inline=False)
embed.add_field(name="+ping", value="Sends the ping of the bot", inline=False)
embed.add_field(name="+question", value="Answers a question [+question yourquestion]", inline=False)
embed.add_field(name="+info", value="Sends info about the bot", inline=False)
await ctx.send(embed=embed)
@client.command()
async def http(ctx):
f = open("Data/http-proxies.txt", "a+")
f.truncate(0)
r = requests.get('https://api.proxyscrape.com/?request=displayproxies&proxytype=http&timeout=5000')
proxies = []
for proxy in r.text.split('\n'):
proxy = proxy.strip()
if proxy:
proxies.append(proxy)
for p in proxies:
f.write((p)+"\n")
await ctx.send(file=File("Data/http-proxies.txt"))
@client.command()
async def https(ctx):
f = open("Data/https-proxies.txt", "a+")
f.truncate(0)
r = requests.get('https://api.proxyscrape.com/?request=displayproxies&proxytype=https&timeout=5000')
proxies = []
for proxy in r.text.split('\n'):
proxy = proxy.strip()
if proxy:
proxies.append(proxy)
for p in proxies:
f.write((p)+"\n")
await ctx.send(file=File("Data/https-proxies.txt"))
@client.command()
async def socks4(ctx):
f = open("Data/socks4-proxies.txt", "a+")
f.truncate(0)
r = requests.get('https://api.proxyscrape.com/?request=displayproxies&proxytype=socks4&timeout=5000')
proxies = []
for proxy in r.text.split('\n'):
proxy = proxy.strip()
if proxy:
proxies.append(proxy)
for p in proxies:
f.write((p)+"\n")
await ctx.send(file=File("Data/socks4-proxies.txt"))
@client.command()
async def socks5(ctx):
f = open("Data/socks5-proxies.txt", "a+")
f.truncate(0)
r = requests.get('https://api.proxyscrape.com/?request=displayproxies&proxytype=socks5&timeout=5000')
proxies = []
for proxy in r.text.split('\n'):
proxy = proxy.strip()
if proxy:
proxies.append(proxy)
for p in proxies:
f.write((p)+"\n")
await ctx.send(file=File("Data/socks5-proxies.txt"))
@client.command()
async def all(ctx):
f = open("Data/all-proxies.txt", "a+")
f.truncate(0)
r = requests.get('https://api.proxyscrape.com/?request=displayproxies&proxytype=all&timeout=5000')
proxies = []
for proxy in r.text.split('\n'):
proxy = proxy.strip()
if proxy:
proxies.append(proxy)
for p in proxies:
f.write((p)+"\n")
await ctx.send(file=File("Data/all-proxies.txt"))
init(convert=True)
os.system("title EmailSpammer!")
config = ConfigParser()
config.read('cfg.ini')
emale = config.get('SETTINGS', 'email')
pas = config.get('SETTINGS', 'password')
def type(words):
words
for char in words:
time.sleep(0.001)
sys.stdout.write(char)
sys.stdout.flush()
time.sleep(0.01)
@client.event
async def on_ready():
await client.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=f"{len(client.guilds)} Servers / Add me to your server: criminals.life/bots / +help / Developed By rookie?#1337"))
count = 10
@client.command()
async def email(ctx,count=None,bomb_email=None,*,message=None):
if count == None or bomb_email == None or message == None:
await ctx.send("Format - +email [count] [email] [message] - e.g +email 10 email@email.com lol!")
else:
x = int(count)
if x > 50:
await ctx.send("`That's a lot. Do 50 or less!`")
else:
currentDT = datetime.datetime.now()
hour = str(currentDT.hour)
minute = str(currentDT.minute)
second = str(currentDT.second)
print(f"{Fore.RED}[{Fore.WHITE}{hour}:{minute}:{second}{Fore.RED}]{Fore.GREEN} [Command used] - {ctx.author.name}#{ctx.author.discriminator}:{Fore.RESET} !email {count} {bomb_email} {message}")
counting = int(0)
embed=discord.Embed(title=f"{counting}/{count}", url="https://github.com/9xc", color=0xff0000)
embed.set_author(name="Email sent!", url="https://github.com/9xc")
embed.set_thumbnail(url="https://cdn.iconscout.com/icon/free/png-256/gmail-30-722694.png")
embed.add_field(name=f'Sending "{message}"', value=f'**to {bomb_email}**', inline=False)
embed.set_footer(text=f"Requested by {ctx.author.name}#{ctx.author.discriminator}")
msg = await ctx.send(embed=embed)
for i in range(x):
mail = smtplib.SMTP('smtp-relay.sendinblue.com',587,)
mail.ehlo()
mail.starttls()
mail.login(emale,pas)
mail.sendmail(emale,bomb_email,message)
mail.close()
currentDT = datetime.datetime.now()
hour = str(currentDT.hour)
minute = str(currentDT.minute)
second = str(currentDT.second)
print(f"{Fore.RED}[{Fore.WHITE}{hour}:{minute}:{second}{Fore.RED}]{Fore.GREEN} Message Sent:{Fore.RESET} {message} {Fore.GREEN}To {Fore.RESET}{bomb_email}")
counting = counting + 1
embed=discord.Embed(title=f"{counting}/{count}", url="https://github.com/9xc", color=0xff0000)
embed.set_author(name="Email sent!", url="https://github.com/9xc")
embed.set_thumbnail(url="https://cdn.iconscout.com/icon/free/png-256/gmail-30-722694.png")
embed.add_field(name=f'Sending "{message}"', value=f'**to {bomb_email}**', inline=False)
embed.set_footer(text=f"Requested by {ctx.author.name}#{ctx.author.discriminator}")
await msg.edit(embed=embed)
embed=discord.Embed(title="Please consider following!", url="https://github.com/9xc", color=0xff0000)
embed.set_author(name="Done spamming!", url="https://github.com/9xc")
embed.set_thumbnail(url="https://cdn.iconscout.com/icon/free/png-256/gmail-30-722694.png")
await msg.edit(embed=embed)
@client.command()
async def info(ctx):
aboutem = discord.Embed(
title="Some Info About ILLUMINATI :)",
description="Languages: Python\nVersion: 1.0 \nChangelog: Added Addrole/Remrole Command\nDeveloper: rookie?1337",
color=discord.Colour.dark_purple()
)
await ctx.send(embed = aboutem)
@client.command()
async def socials(ctx):
aboutem = discord.Embed(
title="Rookies Socials :)",
description="Twitter: @rookiethagawd\nTikTok: @rookiethegod\nGithub: @9xc\nDiscord: rookie?1337",
color=discord.Colour.dark_purple()
)
await ctx.send(embed = aboutem)
@client.command()
async def bypass(ctx, arg):
r=requests.get('https://bypass.bot.nu/bypass2?url='+arg)
a = ('%'+r.text)
chunks = a.split(',')
dest = chunks[1]
stripped = dest.split('"')
#await ctx.send(chunks[1])
embed = discord.Embed()
embed.set_thumbnail(url="https://thumbs.gfycat.com/PlainHonestAzurevase-size_restricted.gif")
embed.add_field(name="Bypassed Link:", value=stripped[3], inline=False)
await ctx.send(embed=embed)
@client.command()
@commands.is_owner()
async def shutdown(ctx):
await ctx.bot.logout()
@client.command()
async def lookup(ctx, username = None):
waitem = discord.Embed(
title="Searching info...",
description=f"PS, If i dont reply it means that the user has over 6000 Words As A response",
color=discord.Colour.dark_purple()
)
msg = await ctx.reply(embed = waitem)
if username == None:
ws = discord.Embed(
title="Error!",
description=f"Please Enter A Valid Alias. Dont Leave Blank",
color=discord.Colour.dark_purple()
)
await msg.edit(embed = ws)
else:
apireq = requests.get(f"https://api.weleakinfo.to/api?value={username}&type=email&key=YOURAPIKEY")
status = apireq.json()['success']
if status == False:
ws = discord.Embed(
title="Error!",
description=f"Couldnt Find Anything, Sorry...",
color=discord.Colour.dark_purple()
)
await msg.edit(embed = ws)
else:
infoamount = apireq.json()['found']
resultap = apireq.json()['result']
complete = discord.Embed(
title = "Complete, Read Below...",
description=f"Found {infoamount} Things About **{username}**\n\n```{resultap}```",
color=discord.Colour.dark_purple()
)
await msg.edit(embed = complete)
@client.command(name="whois")
async def whois(ctx,user:discord.Member=None):
if user==None:
user=ctx.author
rlist = []
for role in user.roles:
if role.name != "@everyone":
rlist.append(role.mention)
b = ", ".join(rlist)
embed = discord.Embed(colour=user.color,timestamp=ctx.message.created_at)
embed.set_author(name=f"Info on - {user}"),
embed.set_thumbnail(url=user.avatar_url),
embed.set_footer(text=f'Requested by - {ctx.author}',
icon_url=ctx.author.avatar_url)
embed.add_field(name='ID:',value=user.id,inline=False)
embed.add_field(name='Name:',value=user.display_name,inline=False)
embed.add_field(name='Created at:',value=user.created_at,inline=False)
embed.add_field(name='Joined at:',value=user.joined_at,inline=False)
embed.add_field(name='Bot?',value=user.bot,inline=False)
embed.add_field(name=f'Roles:({len(rlist)})',value=''.join([b]),inline=False)
embed.add_field(name='Highest Role:',value=user.top_role.mention,inline=False)
await ctx.send(embed=embed)
@commands.has_permissions(administrator=True)
@client.command()
async def ban(ctx, member : discord.Member, *, reason=None):
await member.ban(reason=reason)
await ctx.send(f'User {member.mention} has been banned for the Reason: **{reason}**.')
@commands.has_permissions(administrator=True)
@client.command()
async def kick(ctx, member : discord.Member, *, reason=None):
await member.kick(reason=reason)
@commands.has_permissions(administrator=True)
@client.command()
async def unban(ctx, *, member):
banned_users = await ctx.guild.bans()
member_name, member_discriminator = member.split('#')
for ban_entry in banned_users:
user = ban_entry.user
if (user.name, user.discriminator) == (member_name, member_discriminator):
await ctx.guild.unban(user)
await ctx.send(f'{user.mention} Has been unbanned.')
return
@client.command()
async def purge(ctx, amount=1000):
await ctx.channel.purge(limit=amount)
@client.command()
async def cls(ctx, amount=35):
await ctx.channel.purge(limit=amount)
@client.command()
async def dm(ctx, user: discord.User, *, msg):
await ctx.send('Sent DM successfully')
await user.send(f'{msg}')
@client.command()
async def addrole(ctx, role: discord.Role, user: discord.Member):
if ctx.author.guild_permissions.administrator:
await user.add_roles(role)
await ctx.send(f"{user.mention} Has recieved the role {role.mention}.")
@client.command()
async def remrole(ctx, role: discord.Role, user: discord.Member):
if ctx.author.guild_permissions.administrator:
await user.remove_roles(role)
await ctx.send(f"{user.mention} Has had the role {role.mention} taken from him.")
@client.command()
async def ping(ctx):
await ctx.send(f'{round(client.latency * 1000)}ms')
@client.command()
async def question(ctx, *, question):
responses = ['Yes.',
'No.']
await ctx.send(f'Question: {question} \nAnswer: {random.choice(responses)}')
client.run(token)