Skip to content

Commit

Permalink
change config location
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Aug 18, 2022
1 parent cb3a7ec commit 499d1bd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ bbot --output-module json -f subdomain-enum -t evilcorp.com | jq
# output to CSV, TXT, and JSON, in current directory
bbot -o . --output-module human csv json -f subdomain-enum -t evilcorp.com
~~~
For every scan, BBOT generates a unique and mildly entertaining name like `fuzzy_gandalf`. Output for that scan, including the word cloud and any gowitness screenshots, etc., are saved to a folder by that name in `~/.bbot/scans`. The most recent 20 scans are kept, and older ones are removed. You can change the location of BBOT's output with `--output`, and you can also pick a custom scan name with `--name`.
For every scan, BBOT generates a unique and mildly-entertaining name like `fuzzy_gandalf`. Output for that scan, including the word cloud and any gowitness screenshots, etc., are saved to a folder by that name in `~/.bbot/scans`. The most recent 20 scans are kept, and older ones are removed. You can change the location of BBOT's output with `--output`, and you can also pick a custom scan name with `--name`.

If you reuse a scan name, it will append to its original output files and leverage the previous word cloud.

Expand Down Expand Up @@ -209,9 +209,9 @@ Agent:
# BBOT Config
BBOT loads its config from these places in the following order:

- `bbot/defaults.yml`
- `bbot.yml`
- `secrets.yml`
- `~/.config/bbot/defaults.yml`
- `~/.config/bbot/bbot.yml`
- `~/.config/bbot/secrets.yml`
- command line (via `--config`)

Command-line arguments take precedence over all others. You can give BBOT a custom config file with `--config myconf.yml`, or individual arguments like this: `--config http_proxy=http://127.0.0.1:8080 modules.shodan_dns.api_key=1234`. To display the full and current BBOT config, including any command-line arguments, use `bbot --current-config`.
Expand Down Expand Up @@ -266,7 +266,7 @@ dns_wildcard_ignore: []
dns_wildcard_tests: 5
# Skip DNS requests for a certain domain and rdtype after encountering this many timeouts or SERVFAILs
# This helps prevent faulty DNS servers from hanging up the scan
dns_abort_threshold: 5
dns_abort_threshold: 10
# Enable/disable filtering of PTR records containing IP addresses
dns_filter_ptrs: true
# Enable/disable debug messages for dns queries
Expand Down
13 changes: 9 additions & 4 deletions bbot/core/configurator/files.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
from pathlib import Path
from shutil import copyfile
from omegaconf import OmegaConf

from ..helpers.misc import mkdir
from ..errors import ConfigLoadError

home_dir = Path(__file__).parent.parent.parent.parent
defaults_filename = (home_dir / "bbot" / "defaults.yml").resolve()
config_filename = (home_dir / "bbot.yml").resolve()
secrets_filename = (home_dir / "secrets.yml").resolve()
config_dir = (Path.home() / ".config" / "bbot").resolve()
defaults_filename = (Path(__file__).parent.parent.parent / "defaults.yml").resolve()
defaults_destination = config_dir / "defaults.yml"
mkdir(config_dir)
copyfile(defaults_filename, defaults_destination)
config_filename = (config_dir / "bbot.yml").resolve()
secrets_filename = (config_dir / "secrets.yml").resolve()


def _get_config(filename):
Expand Down
2 changes: 1 addition & 1 deletion bbot/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dns_wildcard_ignore: []
dns_wildcard_tests: 5
# Skip DNS requests for a certain domain and rdtype after encountering this many timeouts or SERVFAILs
# This helps prevent faulty DNS servers from hanging up the scan
dns_abort_threshold: 5
dns_abort_threshold: 10
# Enable/disable filtering of PTR records containing IP addresses
dns_filter_ptrs: true
# Enable/disable debug messages for dns queries
Expand Down

0 comments on commit 499d1bd

Please sign in to comment.