Overflowing a stack frame with 0x00001292 in C
I’m following a book on hacking, currently studying buffer overflows. My silly_password.c
program takes a command line argument which overflows into the return address of a function. I have been able to fill the return address with arbitrary values. For example, ./silly_password.c AAAAAAAAAAAAAAAAAAAAAAA
fills the return address with 0x41414141
, since 0x41
is the ASCII encoding of the letter A.