I'm starting to learn about buffer overflow, and I'm trying to change the contents of the return address to a specific location using gdb, but the problem is that the address starts with some zeros.
For example, I want to change the return address to:
0x0000555555554816. I tried to use Perl and passing this address as
$(perl -e 'print "\x00\x00\x55\x55\x55\x55\x48\x16" x 10') but bash ignored the
\x00 because this is the null byte.
Does anyone know other alternatives to work around this problem?