Precision¶
Precision (easy)¶
Positions of "win" and "lose" variables is given in the debug output \ Sending 109-112 bytes works
Precision (hard)¶
-
In gdb,
disas challenge
, we get to know:- win is at rbp-0x14 = rbp-20
- lose is at rbp-0x10 = rbp-16
-
Set a breakpoint
b *challenge+154
, run and give a long string of a's as input info frame
-> rbp is at 0x7ffcf5793e40x/100xg $rbp-200
-> input buffer starts at 0x7ffcf5793e00, which is rbp-0x40 = rbp-64- Giving 44-48 a's as input works