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
- Install Crystal
git clone
this repocd
into the reposhards build
Usage
bin/restharter [scan_url] [api_key] This will look like
bin/restharter https://app.neuralegion.com/scans/vEnJqXydfsdfsdfsdf 213213312
Docker usage
- clone the repo
cd
into the repodocker build -t neuralegion/restharter .
docker run -it neuralegion/restharter [scan_url] [api_key]
Contributing
- Fork it (https://github.com/NeuraLegion/restharter/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Bar Hofesh - creator and maintainer