๐ Transmission Control Protocol Packet โ pwn.college
Writeup from Intercepting Communication
๐ Task
Objective:
Manually send a TCP packet with:
- Source Port:
31337 - Destination Port:
31337 - Sequence Number:
31337 - Acknowledgment Number:
31337 - TCP Flags:
A,P,R,S,F(i.e.,APRSF) - Destination IP:
10.0.0.2
๐งช Solution using Scapy
๐งฑ Build the Packet
>>> pkt = Ether()/IP(dst='10.0.0.2')/TCP(sport=31337, dport=31337, seq=31337, ack=31337, flags='APRSF')
Send the Packet
>>> sendp(pkt, iface="eth0")
.
Sent 1 packets.
Flag
pwn.college{YTwIVXPhNyKkQ0tIGJ0vu3vF_KK.QX4YzMzwSM0IzMyEzW}