Shellcode: execve
ROP:
ROP:
execve("/bin/sh", 0, 0)
的shellcode並嘗試控制rip跳至shellcodeexecve("/bin/sh", 0, 0)
行為的ROP chain__libc_csu_init
函式中,為compiler編進去的functionldd --version
void *ptr = malloc(size)
free(A) free(B) free(A)
的方式繞過此檢查__malloc_hook
__free_hook
__realloc_hook
execve("/bin/sh", argv[], envp[])
(開shell)
tcache_perthread_struct
tcache_perthread_struct
tcache_perthread_struct
等