ubuntu20安装gdb插件gef的爬坑记录

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
  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值