<commit_before># 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 JSON

Note that you need to [install OWASP ZAP](https://code.google.com/p/zaproxy/wiki/Downloads?tm=2) before using Zapr.

[![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)

## 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:

```<commit_msg>move badges again<commit_after>[![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 JSON

Note 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:

```
{'fraction_non_alphanumeric': 0.13043478260869565, 'fraction_numerical': 0.0010351966873706005, 'mean_word_length': 4.804804804804805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1932039', 'n_tokens_mistral': 708, 'n_tokens_neox': 670, 'n_words': 181}