简体   繁体   中英

automate OWASP penetration test in python using python-owasp-zap-v2.4 package

I need to automate OWASP penetration test in python script using python-owasp-zap-v2.4 package. so I need to run this command

scanid = zap.spider.scan(target, apikey=apikey)

any idea which apikey ,and how to get it ?

The ZAP API key is generated by random when you first start ZAP. This is fine for manual testing but not so good for automated testing. However you can specify the API key when you start ZAP using the commandline option:

-config api.key=change-me-9203935709

For more details see https://github.com/zaproxy/zaproxy/wiki/FAQapikey

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