分类: Notes-pwn

7 篇文章

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 个组,每个组对应一个区间。只…
[转载]栈与格式化字符串
[本文由 Lilac 战队 Kalise 原创,若侵权请联系管理员删除] 栈 ROP 这是最基础也是最重要的东西,几乎所有pwn都依赖于ROP 回顾一下函数调用时的行为: 进入函数前,参数调用约定: 顺序:rdi->rsi->rdx->rcx->r8->r9->栈 比如函数有8个参数,第一个参数会丢给rdi ,第…
一些汇编基础
寄存器名称意义 AH&AL=AX(accumulator):累加寄存器BH&BL=BX(base):基址寄存器CH&CL=CX(count):计数寄存器DH&DL=DX(data):数据寄存器SP(Stack Pointer):堆栈指针寄存器BP(Base Pointer):基址指针寄存器SI(Source Inde…