0x00 环境
ubuntu20.04.2.0
0x01 踩坑过程
1.按照官网教程安装
官网地址:https://github.com/hugsy/gef
按照官网提示安装,wget报TLS连接错误,添加–no-check-certificate选项依旧失败。
2.按照百度教程安装
使用命令
sudo git clone https://github.com/gatieme/GdbPlugins.git ~/GdbPlugins
依旧报错
Cloning into '/home/victor/GdbPlugins'...
fatal: unable to access 'https://github.com/gatieme/GdbPlugins.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
爬坑
在使用百度教程安装前先正确设置git
先执行
git config --global --unset https.https://github.com.proxy
再执行
sudo git clone https://github.com/gatieme/GdbPlugins.git ~/GdbPlugins
安装完成。
使用该方式进行安装,将同时安装三个插件:gef,peda,gdbinit
根据需要切换需要使用的插件,只需要执行如下命令:
echo "source ~/GdbPlugins/peda/peda.py" > ~/.gdbinit
echo "source ~/GdbPlugins/gef/gef.py" > ~/.gdbinit
echo "source ~/GdbPlugins/gdbinit/gdbinit" > ~/.gdbinit