Giter VIP home page Giter VIP logo

docker-zap's Introduction

docker-zap

For now, this is here to help me collect, organize, and articulate my goal and progress on an attempt to integrate a Dockerized [OWASP-ZAP] (https://www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Project) command-line client, into [Jenkins] (https://webqa-ci.mozilla.com/).

I've blogged about the above, here: https://blog.mozilla.org/webqa/2016/06/28/dockerized-owasp-zap-security-scanning-in-jenkins-part-two/

There's also an implicit goal of not unnecessarily duplicating others' work, where possible.

I'm using the following, currently:

Feedback and pull requests are most welcome :-)

How to use

Create output directories (optional):

mkdir -p /tmp/report
chmod a+w /tmp/report
mkdir /tmp/session
chmod a+w /tmp/session

Start proxy:

./run-docker.sh -m proxy -i owasp/zap2docker-stable -p 8090 -r /tmp/report -s /tmp/session

Switches -r and -s are optional, but without them you will loose session and report files after scanning.

Run your Selenium/REST/whatever integration test using proxy:

File container_ip contains ip of ZAP's container. You can use it or get IP using docker inspect.

java -jar my-tests.jar -Dhttp.proxyHost=`cat container_ip` -Dhttp.proxyPort=8090 

Start scanner:

./run-docker.sh -m scan http://targetip:8080 http://targetip:9090

Archive report files from directory given by -r option in Jenkins.

docker-zap's People

Contributors

jgmize avatar stephendonner avatar

Watchers

 avatar  avatar

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.