ubuntu16_pwn环境搭建

ubuntu16_pwn环境搭建

前言:只是一个在努力学习pwn的小菜狗,还请大佬们多多指正

环境:Ubuntu16
目的:搭建pwn环境

pip

pip报错参考
在这里插入图片描述解决方法

sudo apt install curl
curl -fsSL -o- https://bootstrap.pypa.io/pip/3.5/get-pip.py | python3.5

已解决
在这里插入图片描述

pwntools

pip install pwntools -i https://pypi.mirrors.ustc.edu.cn/simple

checksec

checksec的安装

sudo apt-get install git //安装git
git clone https://github.com/slimm609/checksec.sh
cd checksec.sh //进入checksec.sh
sudo ln -s checksec /usr/local/bin/checksec

在这里插入图片描述

one_gadget

功能:查找已知的libc中exevce("/bin/sh")语句的地址
用法:one_gadget libc-x.xx.so
官方文档
原文链接

sudo apt-get install gem -y
sudo apt-get install ruby -y
sudo gem install one_gadget

安装32位的库

sudo apt-get install lib32ncurses5
sudo apt-get install lib32z1

安装libcsearcher

git clone https://github.com/lieanu/LibcSearcher.git
cd LibcSearcher
sudo python setup.py develop

安装pwndbg

git clone https://github.com/pwndbg/pwndbg
cd pwndbg
sudo #./setup.sh

在这里插入图片描述

安装main_arena_offset

用途:计算 main_arena 的偏移

git clone https://github.com/bash-c/main_arena_offset

Guess you like

Origin blog.csdn.net/m0_52526329/article/details/120598683