getJS is a fast and powerful CLI and package tool designed to extract all JavaScript sources from URLs and web pages efficiently.
A tool to fastly get all javascript sources/files
This tool is primarily used by pentesters, bug bounty hunters, and developers who need to quickly gather JavaScript files from websites for security analysis or development purposes. It simplifies the process of extracting JS sources from single or multiple URLs, supporting both command-line and programmatic usage.
When using the tool, ensure the `--complete` option is used before `--resolve` to properly autofill and resolve relative URLs. The tool supports multi-threading to speed up processing but consider system resource limits when increasing threads. Custom HTTP headers and methods allow bypassing some access restrictions or mimicking specific clients.
Run `go install github.com/003random/getJS/v2@latest` to install the toolgetJS -url https://destroy.ai
Extracts JavaScript sources from a single specified URL
curl https://destroy.ai | getJS
Extracts JavaScript sources by piping webpage content into getJS
getJS -url "http://example.com" -header "User-Agent: foo bar" -method POST --timeout=15s
Fetches JavaScript sources using custom HTTP headers, POST method, and a 15-second timeout
getJS -input foo.txt -input bar.txt
Processes multiple URLs listed in input files to extract JavaScript sources
getJS -url "http://example.com" -output results.txt
Extracts JavaScript sources from a URL and saves the output to a file