📜  如何在内存中搜索 bin sh 的地址 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:21.960000             🧑  作者: Mango

代码示例1
(gdb) break main
     (gdb) run
     (gdb) print &system
     $1 = ( *) 0xf7e68250 
     (gdb) find &system,+9999999,"/bin/sh"
     0xf7f86c4c
     warning: Unable to access target memory at 0xf7fd0fd4, halting search.
     1 pattern found.