scapy

Interactive packet manipulation tool for network packet crafting and analysis

pipmacoslinuxwindows
Try with needOr install directly
Source

About

Scapy: interactive packet manipulation tool

Commands

scapy

Examples

Start interactive Scapy shell for packet manipulation$ scapy
Craft and send a simple ICMP ping packet to a host$ scapy -c "IP(dst='8.8.8.8')/ICMP()"
Capture packets from network interface and display them$ scapy -c "pkts = sniff(iface='en0', count=10); pkts.show()"