Created
July 12, 2012 00:13
-
-
Save santa4nt/3094631 to your computer and use it in GitHub Desktop.
Send a fragmented ICMPv6 Echo Request with scapy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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