Skip to content

Misceasy

Winner at 0x4011d6

150 points · 0 solved

The binary never calls win() — but vuln() has a gets() into a 40-byte stack buffer, return address at offset 40.

vuln:  sub rsp, 0x28 ; call gets ; ret
win:   0x4011d6  lea rdi, [flag] ; call puts
rodata flag: "sudo{call_the_winner}"

What does win() print?

Hints0/2

Learn the technique/learn/c-systems-programming