debugging 仅使用gdb命令调用pwndbg

ttcibm8c  于 2023-05-29  发布在  其他
关注(0)|答案(1)|浏览(182)

我目前正在使用https://github.com/apogiatzis/gdb-peda-pwndbg-gef这个脚本来安装pwndbg,ged和peda。它使用相应的命令调用它们

gdb-pwndbg
gdb-peda
gdb-gef

我现在想做的是,只使用gdb命令调用pwndgb?我应该在哪里进行更改才能实现这一点?什么变化?
这是我的.gdbinit文件

define init-peda
source ~/peda/peda.py
end
document init-peda
Initializes the PEDA (Python Exploit Development Assistant for GDB) framework
end

define init-peda-arm
source ~/peda-arm/peda-arm.py
end
document init-peda-arm
Initializes the PEDA (Python Exploit Development Assistant for GDB) framework for ARM.
end

define init-peda-intel
source ~/peda-arm/peda-intel.py
end
document init-peda-intel
Initializes the PEDA (Python Exploit Development Assistant for GDB) framework for INTEL.
end

define init-pwndbg
source ~/pwndbg/gdbinit.py
end
document init-pwndbg
Initializes PwnDBG
end

define init-gef
source ~/gef/gef.py
end
document init-gef
Initializes GEF (GDB Enhanced Features)
end
p8ekf7hl

p8ekf7hl1#

我只需要在.gdbinit文件的顶部添加一行
source /path/to/gdbinit.py
这解决了问题。

相关问题