Package scapy

Interactive packet manipulation tool and network scanner

http://www.secdev.org/projects/scapy/

Scapy is a powerful interactive packet manipulation program built on top
of the Python interpreter. It can be used to forge or decode packets of
a wide number of protocols, send them over the wire, capture them, match
requests and replies, and much more.

General Commands
Command Description
scapy Interactive packet manipulation tool