Secdev Scapy
Scapy: the Python-based interactive packet manipulation program
Scapy is a powerful interactive packet manipulation libary written in Python. Scapy is able to forge or decode packets of a wide number of protocols, send them on the wire, capture them, match requests and replies, and much more. Scapy can be used as a REPL or as a library. It provides all the tools and documentation to quickly add custom network layers. Scapy runs natively on Linux, macOS, most Unixes, and on Windows with Npcap.