Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in binary exploitation/buffer overflow #47

Open
B1LLP4RK opened this issue Nov 13, 2024 · 0 comments
Open

error in binary exploitation/buffer overflow #47

B1LLP4RK opened this issue Nov 13, 2024 · 0 comments

Comments

@B1LLP4RK
Copy link

EIP = 0x08048426 (ret)
ESP = 0xfffefffc
EBP = 0xffff002c

        0xffff0004: 0xffffa0a0              // say_hi argument 1
ESP ->  0xffff0000: 0x0804845a              // Return address for say_hi

if EBP is moved to ESP and the stack is popped as in the explanation, The value of ESP should be 0xffff0000, at least from my understanding.
Besides, the code itself is contradicting because the value of ESP at the top is not the same as where ESP is pointing in the stack at the bottom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant