我找不到在 gdb-peda 中使用“searchmem”命令的示例,在标准 gdb 中,“find”命令还可用于查找感兴趣的指令,这样:
(gdb)find /b start_address,end_address,opcode1,opcode2,..,opcodeN
例如,要搜索小工具“pop ebx ; ret”,我会输入 gdb:
(gdb)find /b start_address,end_address,0x59,0xc3
如何使用 gdb peda 来做到这一点?
更新:使用 ropsearch 我可以做到这一点。
(gdb-peda)ropsearch "pop ebx ; ret" libc