Providers provide the domains to the scanning engine, whether they are read from the cli, a local file or a service provider.
All providers have two mandatory items, a description and a fetch_domains function.
description = "This is a description of the provider"
def fetch_domains(argumentA, argumentB **args):
#do sometyhing
return [Domain(domain)]
The description and provider file name are used to configure the argument parser and help menu.
The fetch_domains function can take any number of arguments, and these are automatically added to the argument parsers and help menu. To make an argument optional, give it a default value.
For full details on individual providers, please visit docs
IMPORTANT: All providers must have unique argument names (so considering namespacing them such as <provider>_access_key
rather than access_key
)
- Create a new .py file in providers
- Add a description
- Add a fetch_domains function that returns a list of
domain.Domain
objects or an empty list