1

Windows usually blocks sending raw IP packets with app-specied TCP payloads. I would like to be able to do this because it would allow students to use Python's beautiful sockets library to send TCP packets without having to resort to dual booting or running a VM or using WSL (if either of those even works under Windows).

Looking though the Scapy documentation and Stack overflow posts, it appears Scapy can send packets, but it always seems to do so through the native socket library. Or is it overriding the socket library when we import it?

It appears this may have been possible on Windows 7 even without Scapy, but I'm sure it's not possible without something like Scapy today.

I've seen several questions mention using Scapy to work with raw packets, with one question mentioning that Scapy works through npcap (or something similar) on Windows, and the Scapy documentiation mentions that Scapy can send packets.

It appears Scapy able to work around the raw packet limitations on Windows by sending packets through libpcap, but how can we do this through simple Python code?

0 Answers0