0

I was wondering if there is some way to get information about buffer size via reversing the binary, created in C language. can we also know how many buffers we have created while writing that script. I am doing Vulserver Excercise. check it out here on this article--> [Article][1]

want to know if the commands have buffer size to store given arguments. [1]: https://captmeelo.com/exploitdev/osceprep/2018/06/28/vulnserver-gter.html

2
  • Please give us an example or code/assembly snippet of a buffer you are trying to get its size. Commented Aug 19, 2020 at 16:07
  • @macro_controller happy now? Commented Aug 20, 2020 at 4:14

1 Answer 1

1

Buffers on the heap are usually easy to spot. Just look for calls to malloc and similar functions, and find the corresponding argument for the buffer size.

Buffers on the stack are a little harder to spot, but can often be identified. Usually, you can see the stack pointer address will be decremented to make room for the new buffer. This amount will sometimes not be the exact buffer size, but will be close.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.