I am working on a CTF and have a piece of software written in C but not the source code. I am trying to do a libc buffer overflow using printf. GDB has given me the pointer to the shell and libc system. However I cannot find the size of the buffer for in the input.
I have tried brute forcing by manually entering enough input (let's say 50) to cause an overflow and segfault. However, when stepping through each call function using break points and x/500xb $esp I cannot find my input value (0x11) in the memory display. If I go through all the call breaks, it finishes without an error (using less than 50 input chars). I want to understand how I can find the beginning memory location and total size of this buffer that reads in the input.
I can see the printf command in GDB with disas main but when placing a break after it, there is no data written at that point.