sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
vi /etc/apt/sources.list
deb <http://mirrors.aliyun.com/ubuntu/> trusty main restricted universe multiverse
deb <http://mirrors.aliyun.com/ubuntu/> trusty-security main restricted universe multiverse
deb <http://mirrors.aliyun.com/ubuntu/> trusty-updates main restricted universe multiverse
deb <http://mirrors.aliyun.com/ubuntu/> trusty-proposed main restricted universe multiverse
deb <http://mirrors.aliyun.com/ubuntu/> trusty-backports main restricted universe multiverse
deb-src <http://mirrors.aliyun.com/ubuntu/> trusty main restricted universe multiverse
deb-src <http://mirrors.aliyun.com/ubuntu/> trusty-security main restricted universe multiverse
deb-src <http://mirrors.aliyun.com/ubuntu/> trusty-updates main restricted universe multiverse
deb-src <http://mirrors.aliyun.com/ubuntu/> trusty-proposed main restricted universe multiverse
deb-src <http://mirrors.aliyun.com/ubuntu/> trusty-backports main restricted universe multiverse
sudo apt-get update
sudo apt-get install lib32ncurses5
sudo apt-get install git
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386
sudo apt-get install lib32ncurses5
sudo apt-get install lib32z1
mkdir ~/.pip
gedit ~/.pip/pip.conf
写入两行
[global]
index-url = <http://pypi.douban.com/simple>
[install]
trusted-host=mirrors.aliyun.com
apt install python-pip
pip install pwntools==4.0.1
# python3
pip3 install pwntools