easywrite
程序保护全开,给了libc,有个任意地址写,然后再malloc(0x30) read and free(ptr)
利用思路:写tcache_ptr,修改tcache[0x40] 为 free_hook-0x10,之后覆盖free_hook-0x10为”/bin/sh\x00”,free_hook为system;free(ptr) get shell
1 | #coding:utf-8 |
关于tcache struct attack 可参考: https://xz.aliyun.com/t/6828#toc-7