Configuration
... how to configure every aspect of how secator operates.
Default configuration
secator is configured using a YAML config file. Every option has a default value, so the config file only needs the keys you want to change.
To print the full default configuration of your installed version, run:
secator config defaultCustom configuration
It is possible to override secator's default configuration using a user configuration file located at ~/.secator/config.yml .
The default user configuration is empty.
Get config
secator config get # get full config (with defaults)
secator config get --user # get user config (non-default values only)
secator config get wordlists.defaults.http # get a single keyEdit config
Editing whole config
To modify secator's user config, run:
This will open the YAML config in your default editor (using the$EDITOR env variable).
Upon saving your changes, the config will be validated by pydantic and saved to disk if it's valid.
Editing specific config keys
To edit specific keys, use:
For instance, to print debug messages for the celery component:
... or to set the mongodb addon URL:
List fields can be replaced, appended to, or have a single item removed:
Dict fields accept sub-keys:
Resetting config keys
To reset a key to its default value, use secator config unset:
Env overrides
Values in the secator config can be overriden using environment variables. Environment variables are prefixed with SECATOR_, upper-cased, and use the dotted path of the key with dots replaced by underscores.
For instance, to override debug, run:
To override the default HTTP wordlist (wordlists.defaults.http):
To use Redis as a Celery broker (celery.broker_url):
and so on. Environment variables take precedence over the config file. Unknown keys are ignored with a warning.
Task overrides
tasks.overrides changes attributes of a specific task without touching its code. Keys are task names, values are the task attributes to override. Common attributes are:
max_timeout
Max execution time of the task in seconds (overrides celery.task_max_timeout for this task).
input_chunk_size
Number of inputs per chunk when the task runs on workers (-1 disables chunking).
profile
Worker queue the task is sent to (small, medium, large, extra_large), see Distributed runs with Celery.
Use SECATOR_TASKS_OVERRIDES_<TASK>_<ATTRIBUTE>. Task names containing underscores are supported:
Debugging
The debug key prints internal debug messages for selected components. It accepts a comma-separated list of component names (prefix match), regexes, or all:
Last updated