python libpcap equivalent

Juergen Kareta kareta at web.de
Wed Feb 4 07:12:51 EST 2009


Gabriel schrieb:
> Hello
> 
> I need to write a software router [yes, software equivalent to a 
> hardware box that is routing packets .)]. It's a school
> work..
> Question is: is possible write this kind of application in python? and 
> if it's, what module should i use?
> I tried search for some libpcap equivalent in python and found 
> pylibpcap, but can't find documentation and tutorial.

Hello Gabriel,

you might look into scapy:
http://www.secdev.org/projects/scapy/

which easily allows you to fetch, manipulate and send network packages.

Jürgen



More information about the Python-list mailing list