Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garethr/zapr
Easy to use command line security scanner
https://github.com/garethr/zapr
Last synced: 3 months ago
JSON representation
Easy to use command line security scanner
- Host: GitHub
- URL: https://github.com/garethr/zapr
- Owner: garethr
- License: mit
- Created: 2014-05-27T11:58:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-27T05:05:02.000Z (almost 9 years ago)
- Last Synced: 2024-10-04T11:59:25.697Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 228 KB
- Stars: 59
- Watchers: 5
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![Dependency
Status](https://gemnasium.com/garethr/zapr.svg)](https://gemnasium.com/garethr/zapr)
[![Gem
Version](https://badge.fury.io/rb/zapr.svg)](http://badge.fury.io/rb/zapr)
[![Code
Climate](https://codeclimate.com/github/garethr/zapr.png)](https://codeclimate.com/github/garethr/zapr)# Zapr
A command line tool that:
* Launches [OWASP ZAP](https://www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Project)
* Spiders the target URL
* Scans the responses for a variety of vulnerabilities
* Presents the results either as a human friendly table or as JSONNote that you need to [install OWASP ZAP](https://code.google.com/p/zaproxy/wiki/Downloads?tm=2) before using Zapr.
## Usage
```
zapr http://example.com/
```The above will output a JSON document of all the alerts for you to do
with as you choose. Note the environment variable setting the location
of the ZAP script. Alternatively output a nicely formatted table:```
zapr --summary http://example.com/
```If in doubt enable the full debugging output to see what is going on
under the hood.```
zapr --debug http://example.com/
```The full usage instructions are as follows:
```
Usage:
zapr [OPTIONS] TARGETParameters:
TARGET Web address to scan and attack with ZAPOptions:
--debug More verbose output (default: false)
--summary Output a summary of the results instead of JSON (default: false)
--zap-path PATH Path to zap.sh startup script (default: $ZAP_PATH)
--timeout TIMEOUT Timeout for spider and scan (default: $ZAPR_TIMEOUT, or 300)
-h, --help print help
```## Example
An example of Zapr running on
[Travis](https://travis-ci.org/garethr/zapr-example) against
[Railsgoat](https://github.com/OWASP/railsgoat) can be found at
[garethr/zapr-example](https://github.com/garethr/zapr-example).## Installation
Add this line to your application's Gemfile:
gem 'zapr'
And then execute:
$ bundle
Or install it yourself as:
$ gem install zapr
## Contributing
1. Fork it ( http://github.com/garethr/zapr/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request