标签: 堆利用

13 篇文章

[2025 黑龙江省赛]Messy heap
非常友好的堆题,uaf 直接用,libc 和 heap 地址随便拿,但是故意搞了个沙箱,不能使用 execve 只能打 orw. 由于 orw 需要较长的执行链,所以一般打 ROP 会比较方便。打 ROP 就要获取栈地址,这个在获得 libc 地址后可以通过 leak environ 变量中的内容实现。 Arch: amd64-64-little …
tcache_perthread_struct hijack
2.39 malloc.c 中的源代码: typedef struct tcache_entry{  struct tcache_entry *next;  /* This field exists to detect double frees. */  uintptr_t key; // uintptr_t 就是 unsigned int,2.2…
Largebin Attack
参考链接:浅析Large_bins_attack在高低版本的利用 进入 largebin 的条件: 无 tcache 或 tcache 已经被填满:最小 0x200 存在 tcache 且 tcache 未被填满(7 个 chunk):最小 0x410 largebins 中含有 63 个 bin , 总体又被分成 6 个组,每个组对应一个区间。只…
2025ciscn&长城杯-pwn-anote
变种堆题 Arch: i386-32-little RELRO: Partial RELRO Stack: Canary found NX: NX enabled PIE: No PIE (0x8048000) 32 位,没开 PIE 奇怪的 menu 函数,ida 反编译失败,不过能看懂就行。 原程序显然是用 C++ 写的。 int __cdec…