PWN环境搭建及工具安装
温馨提示:点击页面下方以展开或折叠目录~
PWN
环境搭建
python 3.9(Kali 2021自带)
配置更新源
1 2 3 4 5 6 7 8 9 10
| mousepad /etc/apt/sources.list
apt install dbus-x11
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
|
1 2 3
| apt-get update apt-get upgrade apt-get dist-upgrade
|
工具安装
1 2 3 4 5 6 7
|
apt-get upgrade
apt install python3-pip
pip3 install pwntools
|
下载完会得到两个小工具:checksec(查看保护机制)、ROPgadget
one_gadget
- 功能:查找已知的libc中exevce(“/bin/sh”)语句的地址
- 安装
1 2 3 4 5 6
| apt install ruby
apt install gem
gem install one_gadget
|
LibcSearcher
Libc database search
main_arena_offset
GDB
- 动态分析
- GNU项目调试器,用于在Linux系统中动态调试程序
1 2 3 4
| git clone https://github.com/pwndbg/pwndbg cd pwndbg ./setup.sh
|
安装完成后再使用gdb就会自动加载pwndbg