pwn环境搭建_pwn入门学习(一)—— 环境搭建

pwn入门学习(一)—— 环境搭建

疫情期间学习技术#中国加油##武汉加油#

所用环境为Ubuntu 18.04

更换Ubuntu下载镜像源

Ubuntu默认下载源在美国,相对速度较慢,可将其下载镜像源更换为国内镜像。

清华开源软件镜像站Ubuntu:mirrors.tuna.tsinghua.edu.cn/help/ubuntu/

具体操作:

(1) 备份源文件

cd /etc/apt

sudo cp source.list source.list.back

(2) 更换源文件

sudo gedit source.list

将源文件内容删除,按照自己的操作系统版本换源,效果如下:

(1)

安装工具

pwntools

sudo pip install --upgrade pwntools

checksec

下载地址:http://www.trapkit.de/tools/checksec.html

32位依赖库

apt install lib32ncurses5

apt install lib32z1

Peda Gef Pwndbg

安装pwndbg:

git clone https://github.com/pwndbg/pwndbg

cd pwndbg

./setup.sh

安装gef:

wget -q -O-https://github.com/hugsy/gef/raw/master/scripts/gef.sh| sh

安装peda:

git clonehttps://github.com/longld/peda.git~/pedaecho "source ~/peda/peda.py" >> ~/.gdbinit

使用那个插件就把其他几个注释掉

source ~/pwndbg/gdbinit.py

#source ~/peda/peda.py

#source ~/.gdbinit-gef.py

LibcSearcher

LibcSearcher用来泄露libc库中函数的偏移的库

github地址:

https://github.com/lieanu/LibcSearcher

安装:

git clone https://github.com/lieanu/LibcSearcher.git

cd LibcSearcher

python setup.py develop

ROPgadget

做题的工具,用来找gadget

sudo pip install capstonesudo

git clone https://github.com/lieanu/libc.git ~/LibcSearchercd libc

cd ~/LibcSearcher

git submodule update --init --recursivesudo

python setup.py develop

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值