个人安全学习笔记 / 题解 / 模板库。
目标:2028 校招安全岗(游戏安全优先,二进制安全兜底)。 这里只放自己亲手打过的题、自己总结的笔记,不放别人 wp 的搬运。
Keywords: CTF pwn, heap exploitation, binary exploitation, off-by-null, chunk shrink, fastbin dup, unsafe unlink, tcache poisoning, unsorted bin attack, largebin attack, house of storm, FSOP, glibc 2.23/2.27/2.31, pwntools, ROP, ret2libc, SROP, format string, 堆题题解, exp 模板
👉 https://bobobobo-maker.github.io/security-notes/
仓库里是速查和题解摘要,博客里是每道题的完整推导过程(程序结构 → 漏洞成因 → 为什么 exp 这一行要这样写 → 踩坑)。目前有:0CTF 2018 heapstorm2(house of storm)。
pwn/ 二进制安全(栈 / 堆 / 格式化字符串 / 逆向)
stack/ 栈题、ROP、格式化字符串
heap/ 堆题(元数据、重叠、bin 攻击)
cve/ 真实软件漏洞复现(补丁 diff → 回退 → harness → crash → 报告)
web/ Web 安全(PortSwigger / 靶场 / 笔记)
templates/ 可复用的 exp 模板(脱敏,改地址即用)
notes/ 速查笔记(chunk 元数据、原语卡片、打卡表)
- heapcreator / chunk — off-by-one 改 size → 重叠 → 改 GOT
- heap-win — 堆溢出改结构体函数指针
- qwe — UAF + 结构体/内容重叠
- locker — 堆溢出改函数指针
- qaq(0CTF 2016) — 极小静态 ELF 拼 execve
- secretgarden — fastbin dup + 假块 + 改 GOT
- bamboobox — off-by-one null + unsafe unlink
- children_tcache(HITCON 2018) — off-by-null 合并 + tcache dup
- npuctf_2020_easyheap(2.27) — tcache 重叠 +
free@GOT - magicheap(HITCON Training lab14) — unsorted bin attack 写 magic
- 0ctf_2018_heapstorm2(house of storm) — off-by-null → chunk shrink 两次重叠 → largebin attack + unsorted bin attack
- ret2text / ROP 栈对齐
- ret2dlresolve(32 位)
- SROP
- pwn_19513(canary + libc 泄露)
- aa(ret2csu)
- grade(canary + ret2libc)
| 方向 | 状态 | 数量 |
|---|---|---|
| pwn · 栈 | ret2text / ret2libc / ret2csu / ret2dlresolve / SROP / canary | 6 篇 |
| pwn · 格式化字符串 | 一次性 fmt、循环 fmt、非栈上指针链、改函数指针 | 4 篇 |
| pwn · 堆 | UAF → 堆溢出 → off-by-one 造重叠 → 改 GOT → fastbin dup + 假块 → unsafe unlink → off-by-null 合并 + tcache dup → tcache 重叠 + free@GOT 劫持 → unsorted bin attack 写 magic → chunk shrink + largebin/unsorted(house of storm) |
10 篇 |
| CVE 复现 | expat CVE-2022-40674(heap-use-after-free)+ libpng CVE-2018-13785(整数回绕→除零)+ 报告模板 | 2 篇 |
| Web | 有基础(HTTP/源码/前端绕过/XSS 入门/SQLi/文件包含),低频推进(每周 2×20 min) | 2 篇 |
- 所有题解都配能跑通的 exp,模板在
templates/。 - 题目远程地址、比赛 flag 一律不公开(见各题解里的
HOST占位)。 - 笔记按自己的理解写,不作为「标准答案」参考。
- 引用/参考请注明出处(见 LICENSE)。
MIT © 2026 BObobobo-maker