Proteus - axiomデータベースとAPI https://github.com/pry0cc/axiom.
元々は、ProjectDiscoveryツールを使用したASMプラットフォームの構築 のために書かれました。
まず、リポジトリをクローンします。
git clone https://github.com/pry0cc/proteus ~/.proteus
cd ~/.proteus
次に、config/notify.yamlを編集して、Slackウェブフックを設定します。
binディレクトリに移動し、docker-compose.ymlのvolumesをローカルのaxiom設定にマッピングするように変更します。/home/op/を現在の$HOMEディレクトリに変更する必要があります。
services:
redis:
image: redis
mongo:
image: mongo
worker:
image: proteus/worker
build:
context: bin/worker/
volumes:
- /home/op/.axiom/accounts/personal.json:/root/.axiom/accounts/default.json # map your account here
- /home/op/.axiom/modules:/root/.axiom/modules # map modules
- /home/op/.ssh:/root/.ssh # map SSH
- /home/op/.proteus:/app # map proteus folder to the app (for persistence of data like rawdata & scans), not 100% necessary but nice to have.
cd bin/
sudo docker compose build
sudo docker compose up
以上です!
ターゲットをローカルスコープフォルダ( ~/.proteus/scope/ )に保存します。
すべてのフリートはターゲットごとに固有なので、データの重複はありません。インスタンスを起動してからスキャンを開始することもできます(この場合、インスタンスはその後も残ります)。あるいは、スキャンだけを開始することもできます。インスタンスが存在しない状態でスキャンを開始すると、デフォルトで5つのインスタンスが起動し、完了時に自動的に削除されます。
curl -s http://127.0.0.1:80/api/<target>/launch_scan
curl -s http://127.0.0.1:80/api/<target>/launch_scan?spinup=8
curl -s http://127.0.0.1:80/api/<target>/launch_scan?spinup=8&module=asm
curl -s http://127.0.0.1:80/api/<target>/spinup?instances=15 # spin up instances for a target
curl -s http://127.0.0.1:80/api/<target>/scans
curl -s http://127.0.0.1:80/api/<target>/<datatype>
curl -s http://127.0.0.1:80/api/<target>/dnsx
curl -s http://127.0.0.1:80/api/<target>/http
curl -s http://127.0.0.1:80/api/<target>/subs
curl -s http://127.0.0.1:80/api/<target>/nuclei
curl -s http://127.0.0.1:80/api/<target>/<datatype>?scan_id=<scan_id>
クライアントはデータを表形式で表示します。todo: JSONまたはテキスト出力を追加する。
pip3 install -r bin/client/requirements.txt
bin/client/client.py --target <target> --type http
bin/client/client.py --target <target> --type dns
bin/client/client.py --target <target> --type host
bin/client/client.py --target <target> --type scans
bin/client/client.py --target <target> --type scans --scanid <scan_id>