Skip to content

ItzzMeGrrr/Source-rer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Source-rer

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.

Installation

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

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'

Examples

Providing input

Download source code from a url

python3 source-rer.py -u https://example.com -o output_dir -H 'Cookie: SESSION=1234567890'

Provide a file containing links to js files

python3 source-rer.py -l js_links.txt -o output_dir

Specifying headers/method

Specify HTTP Headers

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'

Specify HTTP Method

python3 source-rer.py -u https://example.com -o output_dir -X POST

Other options

Keep node_modules

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

Verbose output

To print verbose output, use the -v flag.

python3 source-rer.py -u https://example.com -o output_dir -v

Quiet output

Use the -q flag to not print any output except errors.

python3 source-rer.py -u https://example.com -o output_dir -q

About

Source-rer is a tool to save source code from JavaScript sourcemap files.

Topics

Resources

Stars

Watchers

Forks

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy