Using Scapy for… fun :-)
A history.
Some time ago i was looking for a generator of OSPF Hello packets for bombing «test bed». After twidding with packEth (i was catching/forming/checking packets, it was lazy and sleepy, hung occasionally) i left this idea — took two cisco routers and set a primitive OSPF configuration up (not too much packets, but «good ones» and with regular intervals — it was enough for me that time).
A bit later i googled for some thing (other? can’t remember) and have found Scapy.
That’s a very funny instrument :-)
Just take a look at a couple pf papers:
- Quick demo : an interactive session
- Identifying rogue DHCP servers on your LAN
- Secure Your Wireless Networks with Scapy Packet Manipulation
So, two «recipes» (so simple for Scapy). Generation of OSPF Hello packets and Plotting ping response times.