使用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
    19
    deb 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 focal
    1
    2
    sudo apt-get update
    sudo apt-get upgrade
  • 跟换pip源

    1
    2
    mkdir .pip
    vim pip.conf
    1
    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
2
sudo su
pip3 install pwntool

pwndbg安装

https://github.com/pwndbg/pwndbg

pwngdb安装

https://github.com/scwuaptx/Pwngdb

tmux bug解决

https://github.com/Gallopsled/pwntools/commit/f7283bf2ebcb978d977ef11b4198bb3e1f9373e3

其他