Writable memory section before init and after init
0x0 Different
The memory mapping is little differnt
when init
function is not called, notice that rw-
page in the memory map have size of 0x2000 from 0x0804b000 - 0x0804d000
1 | 0x0804b000 - 0x0804d000 - usr 8K s rw- /home/aynakeya/ctf/k3rn3lctf2021/silent-rop/silent-ROP /home/aynakeya/ctf/k3rn3lctf2021/silent-rop/silent-ROP ; map. |
however, after enter the main or called init
function, the rw-
page in the memory map now have size of 0x1000 from 0x0804c000 - 0x0804d000
1 | 0x0804c000 - 0x0804d000 - usr 4K s rw- /home/aynakeya/ctf/k3rn3lctf2021/silent-rop/silent-ROP /home/aynakeya/ctf/k3rn3lctf2021/silent-rop/silent-ROP ; obj._GLOBAL_OFFSET_TABLE_ |