jumpdrive

pwnformat-stringtool: python

b01lers-ctf-2020pwnjaivermaformat-stringpython

The given binary has a format string vulnerability. The flag is stored on the stack. Using the format string vulnerability, we can leak the stack and get the flag.

Solver script is here.

python solve.py
[+] Opening connection to pwn.ctf.b01lers.com on port 1002: Done
[+] Opening connection to pwn.ctf.b01lers.com on port 1002: Done
[+] Opening connection to pwn.ctf.b01lers.com on port 1002: Done
[+] Opening connection to pwn.ctf.b01lers.com on port 1002: Done
b'pctf{pr1nTf_1z_4_St4R_m4p}\n\x00?\x7f\x00'

## attachments

← more from b01lers-ctf-2020black hole
more by jaiverma →black hole

jaiverma · b01lers-ctf-2020 · pwn · format-string · python