IPv6 packet creation tool

Eric Vyncke (evyncke) evyncke at cisco.com
Sat Sep 17 14:13:16 CEST 2011

Scapy learning curve is a big hill indeed... But powerful

Typed on a small keyboard sorry for lack of ponctuation and French accented letters.

----- Original Message -----
From: Mikael Abrahamsson [mailto:swmike at swm.pp.se]
Sent: Saturday, September 17, 2011 02:05 PM
To: Marc Heuse <mh at mh-sec.de>
Cc: ipv6-ops at lists.cluenet.de <ipv6-ops at lists.cluenet.de>
Subject: Re: IPv6 packet creation tool

On Sat, 17 Sep 2011, Marc Heuse wrote:

> Hi Mikael,
> I do not think there is an out of the box tool for this. You can use
> scapy, which would be easy to script.
> but maybe its easier if you just patch this thc_add_hdr_fragment line:
>  thc_add_hdr_fragment(pkt, &pkt_len, 175, 1, getpid());
> into trace6.c from the thc-ipv6 (www.thc.org/thc-ipv6) just after the
> thc_create_ipv6() call.

Thanks, that seems to definitely be interesting. It doesn't really work 
(it sees no packets), but from tcpdump I can see the TTL expired messages 
in from all the hops so it still helps me!

I gave Scapy a shot before this and it seems that it should be able to do 
what I want as well (thanks to the others who suggested it), but after 15 
minutes I hadn't figured out how to make it do what I want. I'm putting 
learning it on my "todo" list though, it seems extremely powerful.

Mikael Abrahamsson    email: swmike at swm.pp.se

More information about the ipv6-ops mailing list