which inputs can i use to exploit the buffer overflow in this program to execute the win() function
i want to use the overflow in some methods of the program to run another function win()
void doRead() {char buffer[28]; gets(buffer);} int main() {doRead();} How could this program cause rewriting rbp on stack?
Indeed, isn’t RBP positioned higher up on the stack, while the data filled into the stack by the gets() function moves downward? In that case, how could RBP be overwritten with an unintended value?