Challenge
A binary with a format-string vulnerability, ASLR disabled, no PIE. There’s a win() function.
Approach
- ASLR is off — binary loads at a fixed address every run.
- Use
%p/%lxformat specifiers to leak stack values and confirm offsets. - Use
%nto overwrite a return address or GOT entry with the address ofwin(). - The binary has a
call raxgadget; stuffwin()intoraxvia a controlled input then trigger the gadget.
| |
Flag
boroCTF{%_0F_pEop!le}