Created
June 11, 2018 14:16
-
-
Save fgsahoward/79e7466ffc5d6f0e1c0853f4a61a9f46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gdb -q ./easy | |
(gdb) disas main | |
Dump of assembler code for function main: | |
0x0804843a <main+0>: lea 0x4(%esp),%ecx | |
0x0804843e <main+4>: and $0xfffffff0,%esp | |
0x08048441 <main+7>: pushl -0x4(%ecx) | |
0x08048444 <main+10>: push %ebp | |
0x08048445 <main+11>: mov %esp,%ebp | |
0x08048447 <main+13>: push %ecx | |
0x08048448 <main+14>: sub $0x14,%esp | |
0x0804844b <main+17>: mov %ecx,-0xc(%ebp) | |
0x0804844e <main+20>: mov -0xc(%ebp),%eax | |
0x08048451 <main+23>: cmpl $0x2,(%eax) | |
0x08048454 <main+26>: je 0x8048462 <main+40> | |
0x08048456 <main+28>: movl $0x1,(%esp) | |
0x0804845d <main+35>: call 0x8048340 <exit@plt> | |
0x08048462 <main+40>: mov -0xc(%ebp),%edx | |
0x08048465 <main+43>: mov 0x4(%edx),%eax | |
0x08048468 <main+46>: add $0x4,%eax | |
0x0804846b <main+49>: mov (%eax),%eax | |
0x0804846d <main+51>: mov %eax,(%esp) | |
0x08048470 <main+54>: call 0x8048404 <vulnerable> | |
0x08048475 <main+59>: add $0x14,%esp | |
0x08048478 <main+62>: pop %ecx | |
0x08048479 <main+63>: pop %ebp | |
0x0804847a <main+64>: lea -0x4(%ecx),%esp | |
0x0804847d <main+67>: ret | |
End of assembler dump. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment