1 創建docker并且掛載本地
掛載本地是可以直接用本地的檔案
docker run -it -v 本地目錄:docker目錄 ubuntu /bin/bash
2 創建用戶
創建用戶
方便后續安裝
不然后面的pwndbg可能用不了
useradd username
passwd username
3 更新一下軟體包
之后的都在root下面進行,
apt update
apt upgrade
apt-get update
apt-get upgrade
4 安裝一下vim
apt-get install vim
5 安裝一下基礎軟體
apt install python
apt install git
apt install wget
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
apt install tmux
6 pwbdbg && pwngdb
cd ~/
git clone https://github.com/scwuaptx/Pwngdb.git
cp ~/Pwngdb/.gdbinit ~/
git clone https://github.com/pwndbg/pwndbg
cd pwndbg
./setup.sh
vim ~/.gdbinit
然后寫入
source ~/pwndbg/gdbinit.py
一定要寫成這樣子的

7 安裝pwntools
pip install pwntools
8 安裝其他
apt install gcc-multilib
也可以修改更新源
備份一下源
cp /etc/apt/sources.list /etc/apt/sources_init.list
進入/etc/apt/sources.list
vim /etc/apt/sources.list
把里面的東西都刪掉,然更換成新的源
這里用的阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
然后更新
apt-get update
apt-get upgrade
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/258387.html
標籤:其他
上一篇:java開發轉測驗開發經歷
