Skip to content

Commit

Permalink
v5.0.0 - deep scan
Browse files Browse the repository at this point in the history
  • Loading branch information
eoftedal committed Mar 8, 2024
1 parent efa1933 commit b7bc9ca
Show file tree
Hide file tree
Showing 47 changed files with 9,950 additions and 230 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ node/lib/
.idea
tmp/
.vscode
chrome/extension/js/generated/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Retire.js can be used in many ways:
1. [As command line scanner](https://github.com/RetireJS/retire.js/tree/master/node)
2. [As a grunt plugin](https://github.com/bekk/grunt-retire)
3. [As a gulp task](#user-content-gulp-task)
4. [As a Chrome extension](https://github.com/RetireJS/retire.js/tree/master/chrome)
4. [As a Chrome extension](https://github.com/RetireJS/retire.js/tree/master/chrome) - **Not** officially available in the Chrome web store
5. [As a Firefox extension](https://github.com/RetireJS/retire.js/tree/master/firefox) - **Deprecated** Let us know if you want to maintain and undeprecate it.
6. [As a Burp Extension](https://github.com/h3xstream/burp-retire-js) or [OWASP ZAP Add-on](https://www.zaproxy.org/docs/desktop/addons/retire.js/)

Expand Down
11 changes: 7 additions & 4 deletions build_chrome.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

echo "Building $FILEPATH ..."

copy bom chrome\js\retire.js
echo var retire = (function(){ >> chrome\js\retire.js
type node\lib\retire.js >> chrome\js\retire.js
echo return exports; })(); >> chrome\js\retire.js
cd node
npm install
cd ..
cd chrome\build
npm install
npm run build
cd ..\..

echo "Done!"
18 changes: 9 additions & 9 deletions build_chrome.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh

FILEPATH=$(dirname $0)/chrome/js/retire.js

echo "Building $FILEPATH ..."
cp bom $FILEPATH
echo "var retire = (function(){" >> $FILEPATH
cat node/lib/retire.js >> $FILEPATH
echo "return exports; })();" >> $FILEPATH

set -e

cd node
npm install
cd ..
cd chrome/build
npm install
npm run build
cd ../..

echo "Done!"
11 changes: 3 additions & 8 deletions chrome/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@




Development
-----------
## Development

To use the development version:

1. Clone the repo ```git clone https://github.com/RetireJS/retire.js```
1. Clone the repo `git clone https://github.com/RetireJS/retire.js`
2. Run build_chrome.sh from the root of the repo
3. Open [chrome://extensions/](chrome://extensions/)
4. Check "Developer mode"
5. Click "Load unpacked extension..." and locate the "chrome" folder inside the repo
5. Click "Load unpacked extension..." and locate the "chrome/extension" folder inside the repo
6. Use and develop

To test the reporting you can visit the demo page at [http://erlend.oftedal.no/blog/retire/](http://erlend.oftedal.no/blog/retire/)
15 changes: 0 additions & 15 deletions chrome/background.html

This file was deleted.

5 changes: 5 additions & 0 deletions chrome/build/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const deepScan = require("../../node/lib/deepscan.js").deepScan;
const retire = require("../../node/lib/retire.js");
exports.repo = require("../../repository/jsrepository-v2.json");
exports.retire = retire;
exports.deepScan = deepScan;
Loading

0 comments on commit b7bc9ca

Please sign in to comment.