restharter

Version, currently 0.1.23 versions

github.com/NeuraLegion/restharter

Restart a scan using a HAR

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  restharter:
    github: NeuraLegion/restharter
    version: ~> 0.1.2

Then run:

shards install

shard.yml

Crystal
1.7.3
License
MIT
Author
Bar Hofesh
Target
  • restharter from src/restharter.cr

Dependencies

Runtime Dependencies

  • har*github: NeuraLegion/har

README

restharter

rest-har-ter is a simple tool to convert a scan's sitemap into a HAR file, and then use this HAR file to run a scan again without needing to re-crawl the site.

The tool uses the BrightSec REST API to fetch the sitemap, and then uses the HAR library to transform the sitemap into a HAR file.

The HAR file will also be saved locally as reharter.har and will uploaded and used for restarting the scan.

Installation

  1. Install Crystal
  2. git clone this repo
  3. cd into the repo
  4. shards build

Usage

bin/restharter [scan_url] [api_key] This will look like

bin/restharter https://app.neuralegion.com/scans/vEnJqXydfsdfsdfsdf 213213312

Docker usage

  1. clone the repo
  2. cd into the repo
  3. docker build -t neuralegion/restharter .
docker run -it neuralegion/restharter [scan_url] [api_key]

Contributing

  1. Fork it (https://github.com/NeuraLegion/restharter/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 a new Pull Request

Contributors