pwn环境搭建
使用Linux版本
ubuntu20.04 LTS
步骤
安装ubuntu
vim安装
1
sudo apt-get install vim
更换默认源
1
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse focal1
2sudo apt-get update
sudo apt-get upgrade跟换pip源
1
2mkdir .pip
vim pip.conf1
2[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple安装tmux
1
sudo apt-get install tmux
gdb安装
1
sudo apt-get install gdb
pwntools安装
需要进入root权限进行安装,否则checksec等工具无法安装成功
1 | sudo su |
pwndbg安装
https://github.com/pwndbg/pwndbg
pwngdb安装
https://github.com/scwuaptx/Pwngdb
tmux bug解决
https://github.com/Gallopsled/pwntools/commit/f7283bf2ebcb978d977ef11b4198bb3e1f9373e3
其他
- patchelf https://github.com/NixOS/patchelf
- glibc-all-in-one https://github.com/matrix1001/glibc-all-in-one
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.