简体   繁体   English

使用python-owasp-zap-v2.4软件包在python中自动进行OWASP渗透测试

[英]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. 我需要使用python-owasp-zap-v2.4软件包在python脚本中自动化OWASP渗透测试。 so I need to run this command 所以我需要运行这个命令

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

any idea which apikey ,and how to get it ? 知道哪个apikey,以及如何获取它?

The ZAP API key is generated by random when you first start ZAP. 首次启动ZAP时,会随机生成ZAP API密钥。 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: 但是,当您使用命令行选项启动ZAP时,可以指定API密钥:

-config api.key=change-me-9203935709

For more details see https://github.com/zaproxy/zaproxy/wiki/FAQapikey 有关更多详细信息,请参见https://github.com/zaproxy/zaproxy/wiki/FAQapikey

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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