Created
February 1, 2016 13:40
-
-
Save azat/be2b0d5e9417ba0dfe2c to your computer and use it in GitHub Desktop.
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
start | |
p (1ULL<<31)+1ULL | |
# $1 = 2147483649 | |
p malloc(sizeof(struct sockaddr)) | |
# $2 = (void *) 0x646010 | |
p malloc(sizeof(int)) | |
# $3 = (void *) 0x646030 | |
p malloc($1) | |
# $4 = (void *) 0x7fff76a2a010 | |
p memset($4, 1, $1) | |
# $5 = 1990369296 | |
p (char *)$4 | |
# $6 = 0x7fff76a2a010 '\001' <repeats 200 times>... | |
set $6[0]='[' | |
set $6[$1]=']' | |
p evutil_parse_sockaddr_port($4, $2, $3) | |
# $7 = -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment