---
tags: 48-INS
---
# CW
## 1.1 Scapy TCP SYN
```python=
from scapy.all import *
# Craft the IP header
ip = IP(src="192.168.5.10", dst="192.168.5.11")
# Craft the TCP header
tcp = TCP(sport=65535, dport=22, flags="S", seq=1234)
# Combine the IP and TCP headers to create the SYN packet
packet = ip/tcp
# Send the packet using Scapy's send() function
send(packet)
```