Source-rer is a tool to save source code from JavaScript sourcemap files. You can provide a file containing links to js files or it can find JavaScript files from a given url.
git clone https://github.com/ItzzMeGrrr/Source-rer
cd source-rer
pip install -r requirements.txt # or python3 -m pip install -r requirements.txt
usage: source-rer.py [-h] (-l LINKS | -u URL) -o OUTPUT [-knm] [-X {GET,POST}] [-H HEADER] [-q] [-v]
▒█▀▀▀█ █▀▀█ █░░█ █▀▀█ █▀▀ █▀▀ ░░ █▀▀█ █▀▀ █▀▀█
░▀▀▀▄▄ █░░█ █░░█ █▄▄▀ █░░ █▀▀ ▀▀ █▄▄▀ █▀▀ █▄▄▀
▒█▄▄▄█ ▀▀▀▀ ░▀▀▀ ▀░▀▀ ▀▀▀ ▀▀▀ ░░ ▀░▀▀ ▀▀▀ ▀░▀▀
- By github.com/ItzzMeGrrr
Download source code from JavaScript sourcemaps
options:
-h, --help show this help message and exit
-l LINKS, --links LINKS
File containing js file links to download source code from
-u URL, --url URL Link to page find js links from
-o OUTPUT, --output OUTPUT
Output directory to save source code
-knm, --keep Keep node_modules as well, (default: skip)
-X {GET,POST}, --method {GET,POST}
HTTP method to use (default: GET)
-H HEADER, --header HEADER
HTTP header to add to request (multiple -H flags are accepted)
-q, --quiet Don't print any output except errors
-v, --verbose Print verbose output
Examples:
python source-rer.py -l js_links.txt -o output_dir
python3 source-rer.py -u https://example.com -o output_dir -H 'Cookie: SESSION=1234567890'
python3 source-rer.py -u https://example.com -o output_dir -H 'Cookie: SESSION=1234567890'
python3 source-rer.py -l js_links.txt -o output_dir
python3 source-rer.py -u https://example.com -o output_dir -H 'Cookie: SESSION=1234567890' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0'
python3 source-rer.py -u https://example.com -o output_dir -X POST
By default, node_modules are skipped. To keep them, use the -knm
flag.
python3 source-rer.py -u https://example.com -o output_dir -knm
To print verbose output, use the -v
flag.
python3 source-rer.py -u https://example.com -o output_dir -v
Use the -q
flag to not print any output except errors.
python3 source-rer.py -u https://example.com -o output_dir -q