It's my solution for bugbounty automation
- install docker:
sudo snap install docker
## OR ##
# curl -fsSL https://get.docker.com -o install-docker.sh
# sudo sh install-docker.sh- run mongodb container:
sudo docker network create autobbnet
sudo docker run -d -p 127.0.0.1:27017:27017 --net autobbnet --name bbmongodb mongodb/mongodb-community-server:latest- get autobb:
git clone https://github.com/rivalsec/autobb.git
cd autobb
cp config.dist.yaml config.yaml- edit scope and alert sections in config.yaml:
nano config.yaml- build docker image:
sudo docker build -t autobb .This will take some time...
- run autobb scan in basic(light) mode:
sudo docker run --rm -v $(pwd):/autobb --net autobbnet autobb --ports --ports-olds --dns-brute --dns-alts --workflow-olds --nucleiIn this mode, only new or modified assets will be scanned.
sudo docker run --rm -v $(pwd):/autobb --net autobbnet --entrypoint python autobb fullscan.pysudo docker run --rm -v $(pwd):/autobb --net autobbnet --entrypoint python autobb ./export.py -husage: export.py [-h] [-g {scopes,domains,ports,http_probes}] [-s SCOPE]
[-l LAST_ALIVE] [-p PRINT_FIELD]
exporter
options:
-h, --help show this help message and exit
-g {scopes,domains,ports,http_probes}, --get {scopes,domains,ports,http_probes}
get one of (default: None)
-s SCOPE, --scope SCOPE
scope to get, if not - all scopes (default: None)
-l LAST_ALIVE, --last-alive LAST_ALIVE
days then last time was alive (default: 30)
-p PRINT_FIELD, --print-field PRINT_FIELD
object field to print, object json if not set
(default: None)
git clone https://github.com/vortexau/dnsvalidator.git
sudo docker build -t dnsvalidator ./dnsvalidator
## run dnsvalidator (add to crontab)
sudo docker run --rm -v /tmp:/dnsout -t dnsvalidator -threads 20 -o /dnsout/resolvers.txt && mv /tmp/resolvers.txt ./autobb/resolversecho "net.netfilter.nf_conntrack_max=1048576" >> /etc/sysctl.conf
sysctl -p