Jsdir is an Burp Suite extension that extract hidden url paths from js files, beautify it and save for futher/better reading.
The extracted paths are printed on Burp Suite.
The beatified file is saved under db/beautified-files folder.
- python 2.7.9 version
- js-beautifier python library
- BurpSuite Proxy
- Any ruby version installed
- To install python 2.7.9 check: https://www.python.org/downloads/release/python-279/
- To install ruby check: https://www.ruby-lang.org/pt/downloads/
Assuming that you already have python & pip installed
- To install jsbeautifier:
- Copy and paste in your terminal:
sudo apt-get install jsbeautifier && pip install jsbeautifier
2.Ready to go ! a
Assuming that you already installed python
- Install jsbeautifier by copying and pasting this in your terminal:
cd C:\Python27\Scripts\ pip install jsbeautifier
- Copy all files and folders of this repo and paste inside C:\Python27\Scripts folder
-
Your path variable is probably already set if you used rubyinstaller. If not, please check this discussion at stackoverflow.
-
For python check this discussion
Import this extension in Extender Tab of Burp Suite.
- If you are a linux user, please use bs_jsscrapper_linux file
- If you are a windows user, please use bs_jsscrapper file
Then when you see an Js file in any response of any server inside Burp Suite,
Just click on it with the right button and choose "Send to Js scrapper" option.
Go to extender tab and see the results. Example output:
Please feel free to help me improve this tool. Thank you Jobert.
Lopseg