http://www.secdev.org/projects/scapy/ Scapy is a powerful interactive packet manipulation program written in Python.