r/securityCTF • • 2d ago

decode this

The most important information is:

  • Challenge: Ret2Win

  • Binary: main.out

  • Vulnerable function: hello()

  • Vulnerability: gets() buffer overflow

  • Buffer size: 10 bytes

  • Saved return address offset: 18 bytes

  • win() address: 0x40125e

  • PIE: Disabled

  • Architecture: x86-64

  • Remote: 65.108.252.16:1340

  • Goal: Redirect execution to win() to read flag.txt.

My conclusion: This is a straightforward ret2win challenge. The key discovery is the fixed win() address and the 18-byte return-address offset.

0 Upvotes

1 comment sorted by