Coder Social home page Coder Social logo

exetr / zap-cicd-integration Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 6.0 4 KB

A python script which is designed to integrate vulnerability assessment capabilities using OWASP Zed Attack Proxy (ZAP) into CI/CD platforms and pipelines

Python 100.00%
continuous-deployment continuous-integration owasp-zap vulnerability-assessment

zap-cicd-integration's People

Contributors

exetr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zap-cicd-integration's Issues

Type error when running a basic script

The error occurred when I try to run the spider. Not sure if the script is outdated or am I missing something...

python3 Zaper.py -t https://Site.com -r zap-results.html
279631 [ZAP-ProxyThread-16] INFO hsqldb.db.HSQLDB379AF3DEBD.ENGINE  - dataFileCache commit start
279664 [ZAP-ProxyThread-16] INFO hsqldb.db.HSQLDB379AF3DEBD.ENGINE  - dataFileCache commit end
279684 [ZAP-ProxyThread-16] INFO hsqldb.db.HSQLDB379AF3DEBD.ENGINE  - Database closed
279858 [ZAP-ProxyThread-16] INFO hsqldb.db.HSQLDB379AF3DEBD.ENGINE  - dataFileCache open start
279866 [ZAP-ProxyThread-16] INFO hsqldb.db.HSQLDB379AF3DEBD.ENGINE  - dataFileCache open end
279943 [ZAP-ProxyThread-16] INFO hsqldb.db.HSQLDB379AF3DEBD.ENGINE  - dataFileCache commit start
279953 [ZAP-ProxyThread-16] INFO hsqldb.db.HSQLDB379AF3DEBD.ENGINE  - dataFileCache commit end
279973 [ZAP-ProxyThread-16] INFO hsqldb.db.HSQLDB379AF3DEBD.ENGINE  - Database closed
280111 [ZAP-ProxyThread-16] INFO hsqldb.db.HSQLDB379AF3DEBD.ENGINE  - dataFileCache open start
280112 [ZAP-ProxyThread-16] INFO hsqldb.db.HSQLDB379AF3DEBD.ENGINE  - dataFileCache open end
280196 [ZAP-ProxyThread-16] INFO org.parosproxy.paros.control.Control  - New session file created: /home/ubuntu/.ZAP/session/20200325_113245.session
[+] ZAP Session 20200325_113245 started
[+] OWASP Zed Attack Proxy v2.9.0
[*] Opening target: https://Site.com
[*] Spidering target: https://Site.com
282639 [ZAP-SpiderInitThread-0] INFO org.zaproxy.zap.extension.spider.SpiderThread  - Starting spidering scan on https://Site.com at Wed Mar 25 11:32:48 UTC 2020
282639 [ZAP-SpiderInitThread-0] INFO org.zaproxy.zap.spider.Spider  - Spider initializing...
282640 [ZAP-SpiderInitThread-0] INFO org.zaproxy.zap.spider.Spider  - Starting spider...
282795 [ZAP-SpiderThreadPool-0-thread-1] INFO org.zaproxy.zap.spider.Spider  - Spidering process is complete. Shutting down...
282797 [ZAP-SpiderShutdownThread-0] INFO org.zaproxy.zap.extension.spider.SpiderThread  - Spider scanning complete: true
[+] Spider scan completed
284653 [ZAP-ProxyThread-23] INFO net.sf.json.xml.XMLSerializer  - Using default type string

==================== OWASP ZAP Spider Scan Summary ====================

Traceback (most recent call last):
  File "Zaper.py", line 183, in <module>
    main(args)
  File "Zaper.py", line 69, in main
    CLIoutput(json.loads(zap.core.jsonreport()))
  File "Zaper.py", line 105, in CLIoutput
    for x in results['site']['alerts']:
TypeError: list indices must be integers or slices, not str

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.