ubuntu pwn环境

最近正好配了个18.04的环境,记录一下,其他版本也适用
如果因为网络原因安装失败,那就多装几遍
1.apt换源

cp /etc/apt/sources.list /etc/apt/sources.list.bak#备份
sudo gedit /etc/apt/sources.list
直接百度对应版本的阿里源
复制粘贴覆盖到打开的sources.list里
sudo apt update

tips:PPA失败解决
2.安装32位编译环境

sudo apt install libc6-dev-i386

3.pwntools安装(python2版本)

# 安装低版本的pip
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
sudo python get-pip.py
# 安装依赖环境
sudo apt-get install python-dev libssl-dev libffi-dev build-essential
# pip换源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
(如果找不到pip,就用python -m pip)
pip install -U setuptools
pip install --upgrade pip
pip install --upgrade pwntools
pip install pathlib2

进入python,输入from pwn import * 不报错就算安装成功
4.sublime安装

https://www.jianshu.com/p/6862ae9dccc5
sublime密钥
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
5653E0A0 BACE3948 BB2EE45E 422D2C87
DD9AF44B 99C49590 D2DBDEE1 75860FD2
8C8BB2AD B2ECE5A4 EFC08AF2 25A9B864
------ END LICENSE ------

5.git clone 加速

http://pigcha.com/

6.pwndbg

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

7.pwngdb

git clone https://github.com/scwuaptx/Pwngdb.git
cp ~/Pwngdb/.gdbinit ~/

如果不用peda的话
subl .gdbinit
把第一行改成 source ~/pwndbg/gdbinit.py 保存

8.LibcSearcher

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

9.Seccomp Tools(沙盒检测)

sudo apt install gcc ruby-dev
gem install seccomp-tools

10.one_gadget

sudo gem install one_gadget

11.ROPgadget

sudo apt-get install python-capstone
git clone https://github.com/JonathanSalwan/ROPgadget.git
cd ROPgadget
sudo python setup.py install

12.clibc+glibc-all-in-one

git clone https://github.com/matrix1001/glibc-all-in-one.git
cd glibc-all-in-one
./update_list
cat list or cat old_list  看需要的libc版本名
./download 2.23-0ubuntu10_i386  or  ./download_old 2.24-3ubuntu2.2_amd64  下载需要的libc

百度云:https://pan.baidu.com/s/1DAU19PHpOjxls3UIRokSeg   提取码gudh
放在/usr/local/bin

使用:clibc 文件名 2.2* libc绝对路径

后续还有什么需要再更新吧

你可能感兴趣的:(ubuntu pwn环境)