I'm trying to overwrite an address with buffer overflow.
The original address is 0x7fffffffddf0
and I want to overwrite this address and call the function which has an address of 0x400577
.
However, if I give an input as "A x *n*" + "\x77\x05\x40\x00\x00\x00"
,
the address becomes 7fff00400577
, instead of 000000400577
.
It seems that \x00 is ignored.
I know that \x00 means NULL, but how can I write with \x00 in this case?
0x00007fff00400577 in ?? ()
I want to just call the function whose address is0x0000000000400577
. Is there any way?\x77\x05\x40\x00\x00\x00
? Like\x77\x05\x40\x00\x00\x00\x00\x00\x00\x00\x00
?