Skip to content

Instantly share code, notes, and snippets.

@santa4nt
Created July 12, 2012 00:13
Show Gist options
  • Select an option

  • Save santa4nt/3094631 to your computer and use it in GitHub Desktop.

Select an option

Save santa4nt/3094631 to your computer and use it in GitHub Desktop.
Send a fragmented ICMPv6 Echo Request with scapy
from scapy.all import *
# XXX: make sure conf.route6 includes the target IPv6 address in its route table;
# you can do so by first calling ping6 so that a neighbor solicitation is done
sip = 'fe80::20c:29ff:fe67:22c2'
dip = 'fe80::700d:da7e:80bb:aca9'
packets = fragment6(IPv6(src=sip, dst=dip) / IPv6ExtHdrFragment() / ICMPv6EchoRequest(data='A'*5000), 1024)
send(packets)
# watch Wireshark for ping reply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment