| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This directory contains tools for executing SCB functions inside a Bash shell.
Syntax: ./run_scanner.sh [options] scanner target Runs a scanner and stores findings on disk. Helpful for use in combination with Continuous integration software like Jenkins, Bamboo, etc. The following scanners (scanner parameter) and variants are currently supported:
A simple call looks like this: ./run_scanner.sh sslyze example.com:443
This call queries the local SCB instance (expected to run on http://localhost:8080) to start the SSLyze securityTest for the host example.com on port 443. Afterwards it repeatedly polls the status of the started securityTest via the secureCodeBox Engine API untill the securityTest is finished. It performs a maximum of 180 api calls where it waits for 5 seconds between each call.
A more elaborate call could look like this: ./run_scanner.sh --backend http://scb_engine:8080 --auth kermit:myPassword --max_iter 10 --wait 20 --context feature-team-3 zap http://www.example.com/shop
This call executes the remote SCB instance on http://scb_engine:8080 to start the OWASP Zed Attack Proxy for the URL http://www.example.com/shop. For all with the secureCodeBox Engine the HTTP Basic authentication credentials "kermit:myPassword" are used. It performs a maximum of 10 api calls and waits for 20 seconds between each call. Depending on the configured persistence provider of the secureCodeBox Engine instance the context will be used to isolate the results so that they are only accessible by members of feature-team-3.
./run_scanner.sh scanner target The script expects to receive at least two arguments scanner and target,
While some scanners require the scan target to have a specific format (URI, hostname, hostname and port, etc.) the run_scanner.sh script is able to automatically transform the given argument to match the required format. Thus, it is safe to always pass a target URI, like for example http://www.example:8080/some/path, regardless of the scanner to use.
The following optional parameters may be passed:
More involved security Tests require tweaking of the target attributes to configure the security scanner correctly. To give you full controll over the securityTest configuration you can use the --payload argument to provide a link to a custom json payload. For examples check out the usage examples in out user-guide.
During execution the script generates some files that are all stored in the working directory. When called it renames old data files from the previous run that facilitated the same tenant and scanner: The file extension .last is appended to each filename. The script then creates the following data files:
Filenames consist of the following dynamic parts:
The file job_[SCANNER]_payload.json is generated by replacing the following variables in the corresponding the template file [SCANNER].template.json:
| Back | FazBrowse Home | New Git URL |