Created
June 11, 2018 14:19
-
-
Save fgsahoward/d237462f20cedb346d26d584ed634999 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) disas vulnerable | |
Dump of assembler code for function vulnerable: | |
0x08048404 <vulnerable+0>: push %ebp | |
0x08048405 <vulnerable+1>: mov %esp,%ebp | |
0x08048407 <vulnerable+3>: sub $0x408,%esp | |
0x0804840d <vulnerable+9>: mov 0x8(%ebp),%eax | |
0x08048410 <vulnerable+12>: mov %eax,0x4(%esp) | |
0x08048414 <vulnerable+16>: lea -0x400(%ebp),%eax | |
0x0804841a <vulnerable+22>: mov %eax,(%esp) | |
0x0804841d <vulnerable+25>: call 0x8048320 <strcpy@plt> | |
0x08048422 <vulnerable+30>: lea -0x400(%ebp),%eax | |
0x08048428 <vulnerable+36>: mov %eax,0x4(%esp) | |
0x0804842c <vulnerable+40>: movl $0x8048540,(%esp) | |
0x08048433 <vulnerable+47>: call 0x8048330 <printf@plt> | |
0x08048438 <vulnerable+52>: leave | |
0x08048439 <vulnerable+53>: ret | |
End of assembler dump. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment