
Un bot di monitoraggio della superficie d'attacco guidato da projectdiscovery e alimentato da axiom
Proteus - Il database e l'API di axiom https://github.com/pry0cc/axiom.
Originariamente, scritto per Costruire una piattaforma ASM usando gli strumenti ProjectDiscovery.
Per prima cosa, clona il repository
git clone https://github.com/pry0cc/proteus ~/.proteus
cd ~/.proteus
Successivamente, modifica config/notify.yaml per includere il tuo webhook di Slack.
Vai alla directory bin e modifica i volumi nel docker-compose.yml in modo che puntino alla tua configurazione locale di axiom. Dovrai cambiare /home/op/ con la tua attuale directory $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
Tutto qui!
Archivia i tuoi target nella cartella di scope locale ( ~/.proteus/scope/ )
Tutte le flotte sono uniche per ogni target, quindi non c'è sovrapposizione di dati. Puoi creare istanze e poi avviare le scansioni, nel qual caso le istanze rimarranno attive, oppure puoi semplicemente avviare le scansioni. Se avvii una scansione senza che siano presenti istanze, ne creerà 5 per impostazione predefinita e poi le rimuoverà automaticamente al termine.
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>
Il client tabulerà i dati; TODO: aggiungere l'output JSON o testo.
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>