Create a .env inside of /serverand add the following:
BASE_URL_INTERNETDB=https://internetdb.shodan.io/
BASE_URL_GEONET=https://geonet.shodan.io/api/ping/
BASE_URL_CVE=https://cvedb.shodan.io/cve/
PORT=8000
USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.3"
API_KEY_HUNTER=<API-KEY>
BASE_URL_HUNTER=https://api.hunter.io/v2/
API_KEY_DEHASHED=<API-KEY>
USERNAME_DEHASHED=<username>
# Contenedores
POSTGRES_USER=<user>
POSTGRES_PASSWORD=<pass>
POSTGRES_DB=<name>
OPENVAS_USER=<user>
OPENVAS_PASSWORD=<pass>
OPENVAS_URL=https://openvas-scanner:9391
OPENVAS_PORT=9390
NESSUS_ACTIVATION_CODE=<YOUR-ACTIVATION-CODE>
VERSION_OS=latest-ubuntu
PORTBACK=3000
ZAP_API_KEY=<Something-random>
ZAP_BASE_URL=http://zap-scanner:8090
OPENAI_API_KEY=<API-KEY>Download the images and build the backend service:
docker-compose buildRun the services:
docker-compose up -dVerify:
docker-compose psStop services:
docker-compose downFor this you will need a valid domain
-
Create a Cloudflare account here, add your domain and update the nameservers with the ones given by Cloudflare.
-
Install
cloudflared:
sudo apt install cloudflared
brew install cloudflared- Login to your Cloudflare account:
cloudflared tunnel login - Create a tunnel:
cloudflared tunnel create <NAME>- Confirm that the tunnel has been successfully created by running:
cloudflared tunnel list- Create a configuration "
config.yml" file inside of.cloudflareddirectory:
nano ~/.cloudflared/config.yml- Add the following:
url: http://localhost:<PORT-TO-FORWARD>
tunnel: <Tunnel-UUID>
credentials-file: ~/.cloudflared/<Tunnel-UUID>.json- Assign a CNAME record that points traffic to your tunnel subdomain:
cloudflared tunnel route dns <UUID> <hostname>- Run the tunnel to proxy incoming traffic from the tunnel to any service running locally:
cloudflared tunnel run <UUID>- Visit your subdomain and confirm.