简体   繁体   中英

Run a active scan from OWASP ZAP through Ubuntu command line using Open API Definition

I'm trying to run a active scan from OWASP ZAP using only my Ubuntu(22.04) terminal by importing a external open API definition. This can be easily done through the GUI, but I need to do the same process using only command line. I didn't found a proper documentation to follow either.

I have tried following structure of the command to do the active scan, but seems it fails.

/path/to/zap.sh -daemon -openapifile /path/to/swagger.json  -openapitargeturl /path/to/targetUrl -quickout /path/to/output.html

Can anyone suggest a proper way to make this active scan through the Ubuntu terminal.

We have lots of documentation for automating ZAP - see https://www.zaproxy.org/docs/automate/ I recommend looking at the API packaged scan and the Automation Framework.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM