RE: Format String Exploitation Question 03-02-2014, 01:30 AM
#7
(03-02-2014, 01:28 AM)w00t Wrote: Meaning the disassembler you used put ret< +25 >? Different disassemblers will do different things, but you can always find the stack size by looking for the subtraction.
PHP Code:
0x080484b4 <+0>: push %ebp
0x080484b5 <+1>: mov %esp,%ebp
0x080484b7 <+3>: sub $0x4,%esp
0x080484ba <+6>: movl $0x8048620,(%esp)
0x080484c1 <+13>: call 0x80483dc <puts@plt>
0x080484c6 <+18>: movl $0x0,(%esp)
0x080484cd <+25>: call 0x80483ec <exit@plt>
0x08048cd <+25>: call 0x080483ec <exit@plt>
That's disassembling the function.
Unleash the lead from my pistol into my head bumpin' crystal