一、簡介
基於Python 3.8.0開發和測試,請使用高於Python 3.8.0的穩定發行版本,其他版本可能會出現一些問題(Windows平台必須使用3.8.0以上版本),安裝Python環境可以參考Python 3 安裝指南。
在Ubuntu18.04上搭建
二、虛擬機安裝Ubuntu18.04系統
鏡像在官網下載:https://ubuntu.com/download/desktop (記得安裝帶桌面的版本,不要安裝成服務器的Ubuntu鏡像,那樣的話是沒有圖形化界面的)
然后正常安裝就行(百度教程)
三、下載安裝python3
在終端輸入命令
sudo apt-get install python3.7
(百度。。)
然后安裝pip包,同百度==
四、安裝oneforall
- 下載
git clone https://gitee.com/shmilylty/OneForAll.git
- 安裝
cd OneForAll/
python -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
python3 oneforall.py --help
(python 或python3試一試就知道)
- 更新
❗注意:如果你之前已經克隆了項目運行之前請備份自己修改過的文件到項目外的地方(如config.py),然后執行以下命令更新項目:
git fetch --all
git reset --hard origin/master
git pull
四、使用命令
單個目標
python3 oneforall.py --target example.com run
多個目標
python3 oneforall.py --targets ./example.txt run
開啟爆破模塊運行(使用massdns進行爆破,網絡占用極大,可能會阻塞網絡)
python3 run python oneforall.py --target example.com --burte True run
