mirror of
https://github.com/nganhkhoa/CTF-All-In-One.git
synced 2025-06-24 04:05:03 +07:00
update
This commit is contained in:
13
src/Others/4.14_glibc_tcache/tcache_dup.c
Normal file
13
src/Others/4.14_glibc_tcache/tcache_dup.c
Normal 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));
|
||||
}
|
@ -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')
|
||||
|
Reference in New Issue
Block a user