Short notes :
House of Lore : Small bin corruption
BCTF: Babyuse
plaidctf 2016: Basic UAF
- Leak all string in stack using direct parameter access
- Leak Whole binary by using Dynelf which uses the concept that 32/64 bit binary has unique entry point after leaking whole text segment get libc. got addr thn got overwrite to get RCE
My code / Refrence :
Tool to automate
Sharifctf : Leak stack
If u don't have control over arguments to system() then we can use this gadget U can fid this gadget using the tool one_gadget . Usage : one_gadget -f libc.so
All parameters must be in registers and not on stack
Load and execute !!!