That documentation is if you are calling ZAP directly, with packaged
scans you need to use the -z.
You still need to pass the args with the quotes:
-z "-configfile conf"
Best regards.
On 30/06/2022 10:36, Vanya Kashyap wrote:
> Thank you for the prompt response.
>
> I tried after removing the escapes and now the request is timing out with
> error in the attached file.
> Tried by putting the config inline and within a file named conf. The
> argument in bold as suggested by the documentation throws this error:
>
> podman run -v /dest/folder/zap:/zap/wrk/:rw owasp/zap2docker-stable
> zap-baseline.py -d -t
https://securedhost.com/api/path/v1/ *-configfile
> conf* -r test-report.html
>
> So I use the above command instead and now the request simply times out:
>
>
>
>
>
>
>
> *2022-06-30 11:12:53,782 Using port: 55614Traceback (most recent call
> last): File "/zap/zap-baseline.py", line 655, in <module>
> main(sys.argv[1:]) File "/zap/zap-baseline.py", line 310, in main with
> open(base_dir + config_file) as f:FileNotFoundError: [Errno 2] No such file
> or directory: '/zap/wrk/onfigfile'*
>
> And I use this command instead:
>
> podman run -v /dest/folder/zap:/zap/wrk/:rw owasp/zap2docker-stable
> zap-baseline.py -d -t
https://securedhost.com/api/path/v1/ *-z* *-configfile
> conf* -r test-report.html