This commit is contained in:
firmianay
2018-04-23 18:03:55 +08:00
parent 74b678b39f
commit 3a60abe7bb
5 changed files with 598 additions and 6 deletions

View File

@ -0,0 +1,13 @@
#include <stdlib.h>
#include <stdio.h>
int main() {
void *p1 = malloc(0x10);
printf("1st malloc(0x10): %p\n", p1);
printf("Freeing the first one\n");
free(p1);
printf("Freeing the first one again\n");
free(p1);
printf("2nd malloc(0x10): %p\n", malloc(0x10));
printf("3rd malloc(0x10): %p\n", malloc(0x10));
}

View File

@ -2,7 +2,7 @@
from pwn import *
context.log_level = 'debug'
# context.log_level = 'debug'
io = process(['./jmper'], env={'LD_PRELOAD':'./libc-2.19.so'})
elf = ELF('jmper')