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

猜你喜欢

转载自www.cnblogs.com/pikachuu/p/12391043.html
今日推荐