Make sure you have the latest ZAP docker image, e.g.
- docker pull softwaresecurityproject/zap-stable
Then start a docker image with whatever commandline options you are using to map the network drive, but use a bash shell instead of running ZAP
- docker run <your options> -i -t softwaresecurityproject/zap-stable bash
You should get a bash shell. In their type:
This will display the ZAP command line options .. and also set up the directory ZAP will use.
You should see something like:
- Found Java version 11.0.18
Available memory: 7851 MB
Using JVM args: -Xmx1962m
317 [main] INFO org.parosproxy.paros.Constant - Copying default configuration to /home/zap/.ZAP/config.xml
375 [main] INFO org.parosproxy.paros.Constant - Creating directory /home/zap/.ZAP/session
375 [main] INFO org.parosproxy.paros.Constant - Creating directory /home/zap/.ZAP/dirbuster
376 [main] INFO org.parosproxy.paros.Constant - Creating directory /home/zap/.ZAP/fuzzers
376 [main] INFO org.parosproxy.paros.Constant - Creating directory /home/zap/.ZAP/plugin
Sep 04, 2023 1:53:00 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Usage:
zap.sh [Options]
See the "/home/zap/.ZAP/" above?
It may be different if you're using a different image, so use the one you see not the one shown to me.
List the files under the "reports" sub directory:
- ls /home/zap/.ZAP/reports
Is your report directory there?
If it is then I would expect it to work.
If it is not then it wont work - you have not managed to put the report template where ZAP expects to find it.
Cheers,
Simon