Install Report Generation/Export_report addon in ZAP container

422 views
Skip to first unread message

Khopithan Sathiyakeerthy

unread,
May 31, 2021, 12:53:34 AM5/31/21
to OWASP ZAP User Group
Hi all,

Can we install Report Generation/Export_report  addons using "-z" option while running ZAP container? and can we generate .pdf file from those addons?

I tried this below shown command but got an error

docker run -t owasp/zap2docker-weekly –z "-addoninstallall=export_report" 

error:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "–z": executable file not found in $PATH: unknown.
ERRO[0000] error waiting for container: context canceled


Regards,
Khopi 

thc...@gmail.com

unread,
May 31, 2021, 3:56:18 AM5/31/21
to zaprox...@googlegroups.com
Hi.

Seems to be using the wrong character, should be - not –.

The ID of the add-on is `exportreport` but I don't think that add-on
allows to generate a PDF report.

You can use Report Generation add-on for that, it's also meant to
provide the reporting capabilities going forward.
https://www.zaproxy.org/docs/desktop/addons/report-generation/

Best regards.

On 31/05/2021 05:53, Khopithan Sathiyakeerthy wrote:
> Hi all,
>
> Can we install *Report Generation/Export_report* addons using "-z" option
> while running ZAP container? and can we generate .pdf file from those
> addons?
>
> *I tried this below shown command but got an error*
>
> docker run -t owasp/zap2docker-weekly –z "-addoninstallall=export_report"
>
> *error:*

Khopithan Sathiyakeerthy

unread,
May 31, 2021, 5:47:18 AM5/31/21
to OWASP ZAP User Group
Hi,

I already installed export_report addon via cmd and generated the report. So, I'm trying to install this addon in container and generate pdf report

I tried this too but got the same error
docker run -t owasp/zap2docker-weekly -z "-addoninstall exportreport"

Regards,
Khopi

thc...@gmail.com

unread,
May 31, 2021, 5:52:31 AM5/31/21
to zaprox...@googlegroups.com
Oh, I didn't notice in the first post.

You are not calling the baseline (or other scan) script when starting
the container.

Best regards.

Josh P

unread,
Jun 13, 2021, 8:28:02 PM6/13/21
to OWASP ZAP User Group
Hi All,

Is anyone fix this issue? I am still getting below error:

PS D:\> docker run -v ${pwd}:/zap/wrk/:rw -t owasp/zap2docker-stable  -z "-addoninstall=Retire.js"                      docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "-z": executable file not found in $PATH: unknown.

docker run -v ${pwd}:/zap/wrk/:rw -t owasp/zap2docker-stable zap-full-scan.py -z "-addoninstall=Retire.js"
2021-06-14 00:20:30,145 Could not find custom hooks file at /home/zap/.zap_hooks.py
Usage: zap-full-scan.py -t <target> [options]
    -t target         target URL including the protocol, e.g. https://www.example.com
Options:
    -h                print this help message
    -c config_file    config file to use to INFO, IGNORE or FAIL warnings

Regards,
Joshwa Philip

thc...@gmail.com

unread,
Jun 14, 2021, 2:44:43 AM6/14/21
to zaprox...@googlegroups.com
In the first example it's missing the scan script (e.g. zap-baseline.py).

They both need a target: -t https://www.example.com

Best regards.
Reply all
Reply to author
Forward
0 new messages