Scapy is great for creating and manipulating packets.
Here's a simple example to send a SYN packet:

- IP(dst="target_ip"): Defines the destination IP.
- TCP(dport=80, flags="S"): Sets the destination port to 80 (HTTP) and sends a SYN packet.
- send(packet): Sends the packet out.
Scapy can be used for things like packet crafting, sniffing, and even creating network attacks.