Skip to content

EFForg/badger-swarm

Repository files navigation

Badger Swarm

Runs distributed Badger Sett scans on Digital Ocean. Yes, a group of badgers is called a cete, but "swarm" just sounds better.

Badger Swarm demo recording

Badger Swarm converts a Badger Sett scan of X sites into N Badger Sett scans of X/N sites. This makes medium scans complete as quickly as small scans, and large scans complete in a reasonable amount of time.

For more information, visit our Introducing Badger Swarm: New Project Helps Privacy Badger Block Ever More Trackers blog post.

Architecture

See ARCHITECTURE.md.

Setup

  1. Check out this repository
  2. Install doctl
  3. Authenticate doctl with DigitalOcean
  4. Copy settings.ini.sample to settings.ini
  5. Review the settings. At minimum, specify your Digital Ocean SSH key (see doctl compute ssh-key). For Droplet sizes and hourly prices, see doctl compute size list.
  6. To automatically merge results on completion, check out Badger Sett and Privacy Badger (at the same directory level as this repository) and then set up and activate a virtual environment for Badger Sett.
  7. Run ./main.sh to initiate a new run.

Once you are told the run is resumable, you can stop the script with Ctrl-C and then later resume the in-progress run with ./main.sh -r.

Helpful Bash scripting links