Skip to content

Spidle/bbot-terraform-recon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BBOT Terraform Recon

This project automates subdomain reconnaissance using BBOT, deployed temporarily on a DigitalOcean VPS using Terraform and Ansible.

Features

  • Deploys a DigitalOcean droplet from a snapshot with BBOT pre-installed
  • Runs BBOT against one or more target domains
  • Saves the output in JSONL format for use with the Elastic Stack
  • Tears down the droplet after scan completion

Prerequisites

  • Terraform
  • Ansible
  • DigitalOcean account and access token
  • SSH key added to DigitalOcean

Setup

  1. Clone the repo
  2. Create a file terraform.tfvars:
   do_token         = "your_digitalocean_token"
   ssh_fingerprint  = "your_ssh_key_fingerprint"
  1. Create a droplet in DigitalOcean. Install BBOT and test to make sure it's working. Ge the snapshot ID and replace it in main.tf image =

Get the snapshot ID Digital Ocean CLI

doctl compute image list-user | grep bbot-base

Usage

./run.sh "example.com,test.com" "my-scan-id"

  • The first argument is a comma-separated list of target domains.
  • The second argument is an identifier used to name the result folder under results/.

Output

BBOT output is saved to:

results//bbot_output.jsonl

Notes

  • inventory.ini is dynamically created by the script.
  • Results are pulled via scp before the droplet is destroyed.
  • Make sure your SSH key allows root login on the snapshot.

Cleanup

To clean up all resources (in case of failure or early exit):

terraform destroy -auto-approve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published