A command line tool that wraps the OWASP ZAP API for controlling ZAP and executing quick, targeted attacks.
To install the latest release from PyPI, you can run the following command:
pip install --upgrade zapcli
To install the latest development version of ZAP CLI, you can run the following:
pip install --upgrade git+https://github.com/Grunny/zap-cli.git
To install ZAP CLI for development, including the dependencies needed in order to run unit tests, clone this repository and use pip install -e .[dev]
.
To use ZAP CLI, you need to set the port ZAP runs on (defaults to 8090) and the path to the folder in which ZAP is installed. These can be set either as command line parameters or with the environment variables ZAP_PORT
and ZAP_PATH
. If you have an API key set for ZAP, this can likewise be set either as a command line parameter or with the ZAP_API_KEY
environment variable.