视频版:https://www.bilibili.com/video/BV1YT1oYeEVd
更新、安装vim
sudo apt upgrade
sudo apt install vim
安装必要环境
将一下内容写入一个sh
脚本文件中,为chmoe 777 xxx.sh
文件赋权限后直接./xxx.sh
运行脚本,中途会出现Do you want to continue? [Y/n]
输入y
#!/bin/bash
cd ~
sudo apt install tzdata
sudo apt install vim
sudo apt install libxml2-dev
sudo apt install libxslt-dev
sudo apt install libmysqlclient-dev
sudo apt install libsqlite3-dev
sudo apt install zlib1g-dev
sudo apt install python2-dev
sudo apt install python3-pip
sudo apt install libffi-dev
sudo apt install libssl-dev
sudo apt install wget
sudo apt install curl
sudo apt install gcc
sudo apt install clang
sudo apt install make
sudo apt install zip
sudo apt install build-essential
sudo apt install libncursesw5-dev libgdbm-dev libc6-dev
sudo apt install tk-dev
sudo apt install openssl
sudo apt install virtualenv
sudo apt install git
sudo apt install proxychains4
sudo apt install ruby-dev
#setuptools 36.6.1 -> python2
wget https://mirrors.aliyun.com/pypi/packages/56/a0/4dfcc515b1b993286a64b9ab62562f09e6ed2d09288909aee1efdb9dde16/setuptools-36.6.1.zip
unzip setuptools-36.6.1.zip
cd setuptools-36.6.1
sudo python2 setup.py install
cd ../
sudo rm -rf setuptools-36.6.1 setuptools-36.6.1.zip
#setuptools 65.4.1 -> python3
wget https://mirrors.aliyun.com/pypi/packages/03/c9/7b050ea4cc4144d0328f15e0b43c839e759c6c639370a3b932ecf4c6358f/setuptools-65.4.1.tar.gz
tar -zxvf setuptools-65.4.1.tar.gz
cd setuptools-65.4.1
sudo python3 setup.py install
cd ../
sudo rm -rf setuptools-65.4.1 setuptools-65.4.1.tar.gz
#pip
wget https://mirrors.aliyun.com/pypi/packages/53/7f/55721ad0501a9076dbc354cc8c63ffc2d6f1ef360f49ad0fbcce19d68538/pip-20.3.4.tar.gz
tar -zxvf pip-20.3.4.tar.gz
cd pip-20.3.4
sudo python2 setup.py install
sudo python3 setup.py install
cd ../
sudo rm -rf pip-20.3.4 pip-20.3.4.tar.gz
sudo pip2 config set global.index-url https://mirrors.aliyun.com/pypi/simple
sudo pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple
sudo python2 -m pip install --upgrade pip
sudo python3 -m pip install --upgrade pip
pip3 install --upgrade pip
sudo pip2 install pathlib2
配置pwn环境
pwntools
sudo python2 -m pip install --upgrade pwntools
sudo python3 -m pip install --upgrade pwntools
pwndbg+Pwngdb
这里我直接去github
下载运行setup.sh
会报错要求升级python3
,所以直接把原来虚拟机里的打包复制过来了
wget https://starrysky1004.github.io/pwnenv.zip
unzip pwnenv.zip
rm pwnenv.zip
#pwndbg
cd pwndbg
./setup.sh
#Pwngdb
cd ~/
cp ~/Pwngdb/.gdbinit ~/
vim ~/.gdbinit
#注释掉第一行 然后在第二行写入
source ~/pwndbg/gdbinit.py
patchelf
sudo apt install patchelf
glibc-all-in-one
#glibc-all-in-one
git clone https://github.com/matrix1001/glibc-all-in-one.git
cd glibc-all-in-one
python3 update_list
cat list
ropper
sudo pip3 install capstone filebytes unicorn keystone-engine ropper
qemu-system
sudo apt-get install qemu-system
Ropgadget
sudo -H python3 -m pip install ROPgadget
one_gadget、seccomp-tools
这两个我感觉很随缘,没事运行一下看运气吧(
sudo gem install one_gadget
sudo gem install seccomp-tools
其他
推荐装个oh-my-zsh
,主题多、好看,而且可以Tab
选择文件以及回滚以前输入的命令