I am trying to reproduce a buffer overflow. The address that I am trying to pass in has two null hex characters in it (i.e. 0x00547e00). There are also 4 more bytes that come after it (i.e 0x11111111 and 0x22222222). If I pass these in using gdb, it skips over the null characters when writing to the memory i want (i.e. 1111547e 22221111 2222####). Is there a character I can pass in that isnt a null character but doesnt affect my address?
one solution I thought of was to find some memory that was already zero'd out, have the first address point to it, then overwrite with garbage until getting to that zero'd out memory, where i overwrite it. This only works if I have 2 bytes of memory, however, and I am trying to pass 6.