简体   繁体   English

OWASP ZAP - 在 Gitlab CI/CD 中扫描后,启动的 ZAP 守护程序实例未通过 Python 关闭

[英]OWASP ZAP - Initiated ZAP Daemon instance is not shutting down via Python after scan in Gitlab CI/CD

Initiating ZAP through Gitlab CLI as a Daemon通过 Gitlab CLI 作为守护进程启动 ZAP

java -jar app.jar -daemon -dir $(pwd) & java -jar app.jar -daemon -dir $(pwd) &

Running the scan through python and Report is generated通过python运行扫描并生成报告

After the scan completion, the Gitlab Linux box is still saying ZAPHost is listening on localhost:8080扫描完成后,Gitlab Linux 框仍然说 ZAPHost 正在侦听 localhost:8080

I tried the zap.core.shutdown() but core is not being recognised at all even though all the necessary packages are installed.我尝试了 zap.core.shutdown() 但即使安装了所有必要的软件包,也根本无法识别核心。

Is running the ZAP as a daemon a problem since I am trying to shut it down from the python script?将 ZAP 作为守护程序运行是否有问题,因为我试图从 python 脚本中关闭它?

That API call should do the trick.该 API 调用应该可以解决问题。 Are any other API calls failing?是否有任何其他 API 调用失败? Are there any errors in the zap.log file? zap.log 文件中是否有任何错误?

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

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