Running a Discovery

This command enables you to start a new discovery for the provided configuration.

Example: bright-cli discovery:run [options]

General options

OptionDescription
--configPath to the file with configuration
--log-levelWhat level of logs to report. Any logs of a higher level than the setting are shown. [choices: 0, 1, 2, 3, 4, 5, "silent", "error", "warn", "notice", "verbose", "trace"]

Default: --log-level 3
--hostnameBright application name (domain name).

Default: --hostname app.brightsec.com
--proxy=socksProxyUrlSpecify a proxy URL to route all traffic through. This should be an HTTP(S), SOCKS4, or SOCKS5 URL.
Can be read also from environment param PROXY.

Default: If you specify SOCKS://, then SOCKS5h is applied.
--proxy-brightSpecify a proxy URL to route the traffic to Bright.
--proxy-targetSpecify a proxy URL to route the traffic to the targets.
--timeoutRequest timeout in seconds or a duration string (e.g. 10s, 1m, 1h, 10h, 1y).

Default: --timeout 30
--insecureAllows CLI to proceed and operate even for server connections otherwise considered insecure.

Default: --insecure false
-a, --archiveA collection of your app's http/web sockets logs into HAR file. Usually you can use browser dev tools or our browser web extension
--token=apiKey, -t=apiKeyThe unique identifier used to authenticate a user. The token (API key) can be issued in your organization’s dashboard.
Required option.

Discovery options

OptionDescription
--header=headerName:headerValue,
-H=headerName:headerValue
Extra headers to be passed with the archive file. It can also be used to remove a header by providing a name without content. For example, -H "Host:".
--repeater=repeaterId,
--agent=repeaterId
Specifies a list of Repeater UUIDs that should be connected with the scan.

Warning: The alias --agent=repeaterIdis deprecated.
--smartEnables you to use automatic smart decisions, such as parameter skipping, detection phases, and so on to minimize scan time. When set to false (turned off), all tests are run on all parameters, which increases the coverage at the expense of scan time.

Default: --smart true
--name=discoveryName, -n=discoveryNameThe name of the discovery.
Required option.
--project, -pAllows specifying the Bright project for a scan using the project ID. You can find the project ID in the Projects section in the Bright app.
--auth=authObjectID,
-o=authObjectID
Specifies the ID of the authentication object to be connect to the scan. Find more info about using an authentication object at Managing Your Authentications.
--crawl-parent-subdomainsCrawl parent path folders and subdomains [boolean] [default: false]
-c, --crawlerA list of specific urls that should be included into crawler.
--concurrencyNumber of maximum concurrent requests allowed to be sent to the target, can range between 1 to 50 (default: 10).
--interactions-depthNumber of maximum interactions with nested objects, can range between 1 to 5 (default: 3). [number] [default: 3]