吐了,以后至少留两个版本的快照

安装虚拟机

虚拟机选好直接 vmware 简易安装先

image.png

安装 VM-tools

(全选y)(安装完成重启生效)
sudo apt-get install open-vm-tools-desktop fuse

虚拟机挂起恢复后,无法联网

sudo service network-manager restart

换源

vim /etc/apt/sources.list

  1. deb http://mirrors.aliyun.com/ubuntu/ xenial main
  2. deb-src http://mirrors.aliyun.com/ubuntu/ xenial main
  3. deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main
  4. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main
  5. deb http://mirrors.aliyun.com/ubuntu/ xenial universe
  6. deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
  7. deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
  8. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
  9. deb http://mirrors.aliyun.com/ubuntu/ xenial-security main
  10. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main
  11. deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
  12. deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe

改系统语言

image.png

image.png

把汉语拖到最上面,然后应用到系统

image.png

这个选项也是,然后重启,打开之后跟换名称随意

image.png

如果文字变成楷体之类的很难看
sudo apt-get remove fonts-arphic-ukai
sudo apt-get remove fonts-arphic-uming

安装 pip

sudo apt-get install python-pip
sudo apt-get install python3-pip

pip 换源

vim ~/.pip/pip.conf

  1. [global]
  2. index-url = https://pypi.tuna.tsinghua.edu.cn/simple

安装 pwntools

pip install pwntools

GDB 插件

git clone https://github.com/yichen115/GDB-Plugins

在 pwndbg 文件夹中 git init 初始化一下,然后运行 ./setup.sh 安装
想用 peda:echo "source ~/GDB-Plugins/peda/peda.py" > ~/.gdbinit
想用 peda-heap:echo "source ~/GDB-Plugins/peda-heap/peda.py" > ~/.gdbinit(感觉这个挺好用的,扩展了 heap 的功能,还保留了 peda 的)
想用 gef:echo "source ~/GDB-Plugins/gef/gef.py" > ~/.gdbinit
想用 pwndbg:echo "source ~/GDB-Plugins/pwndbg/gdbinit.py" > ~/.gdbinit

安装 one_gadget

  1. sudo apt-get install ruby -y
  2. sudo apt-get install gem -y
  3. sudo gem install one_gadget

安装 32 位的库

  1. sudo apt-get install lib32ncurses5
  2. sudo apt-get install lib32z1

安装 LibcSearcher

  1. git clone https://github.com/lieanu/LibcSearcher.git
  2. cd LibcSearcher
  3. python setup.py develop

main_arena_offset

用来计算 main_arena 的偏移
git clone https://github.com/bash-c/main_arena_offset

安装seccomp-tools

用来读取 seccomp 沙箱规则

  1. sudo apt install gcc ruby-dev
  2. gem install seccomp-tools

要是说 ruby 版本不对

  1. sudo add-apt-repository ppa:brightbox/ruby-ng
  2. sudo apt-get update
  3. sudo apt-get purge --auto-remove ruby
  4. sudo apt-get install ruby2.6 ruby2.6-dev
  5. gem install seccomp-tools

image.png