FAQconfigValues - psiinon/zaproxy GitHub Wiki
The ZAP command line allows you to set individual values as follows:
-config api.key=12345 -config connection.timeoutInSecs=60
How can you find out what keys to use to set the values you want?
The keys are a dot notation of the XML used in the config.xml file.
One way to find out which value you need to change is:
- Start ZAP with a clean directory, eg * ./zap.sh -dir test1
- Close ZAP
- Start ZAP with another clean directory, eg * ./zap.sh -dir test2
- Set the option you want to know the key of
- Close ZAP
- Diff the 2 config files: * diff test1/config.xml test2/config.xml
- Work out the XML hierarchy of the item that has changed
- Convert that to dot notation
For example, the default scanner strength level is in:
<scanner><strength>MEDIUM</strength></scanner>
Which in dot notation is:
scanner.strength=MEDIUM