sending a rip1 request via python

Dirk Loss lists at dirk-loss.de
Wed Dec 19 11:34:03 EST 2007


scripteaze wrote:
> I need to be able to send a rip1 request to my rip1 enabled device.,
> so i need python to send :
> 01 01 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 10

Use Scapy:

from scapy import *
myrip = RIP()/RIPEntry(metric=16)
ans, unans = sr(IP(dst="192.168.1.1")/UDP(sport=520)/myrip)

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

Regards
Dirk



More information about the Python-list mailing list