house of orange
house of orange 不是什么梗,而是一道题目的名字,hitcon 2016ctf house of orange
用到的套路
- 溢出攻击top chunk的size,泄露libc_base和heap_base
- unsorted bin更改_IO_list_all值
- file stream oriented attack
参考博客
angleboy大佬的write-up
https://github.com/scwuaptx/CTF/blob/master/2016-writeup/hitcon/houseoforange.py
http://4ngelboy.blogspot.tw/2016/10/hitcon-ctf-qual-2016-house-of-orange.html
angleboy大佬_IO_FILE总结
http://4ngelboy.blogspot.tw/2017/11/play-with-file-structure-yet-another.html
泄露libc
虽然trunk不在末尾,但是'\0'
不是r