GetJS
Extract JavaScript files from a target
Recon & OSINT6 commands
#js#extract#recon#golang
Installation
1Install via Go
2Verify installation
# Using Go
go install github.com/bluesentinelsec/getJS@latest
# Verify
getJS -hBasic Usage
Extract JavaScript file URLs from a target website
# Extract JS from a single URL
getJS --url https://example.com
# Extract from multiple URLs
cat urls.txt | getJS
# Extract and output to file
getJS --url https://example.com --output results.txt
# Complete extraction (including inline JS)
getJS --url https://example.com --completeCommand Reference
6 commands
1Target URL
--url2Output file path
--output3Extract inline JS as well
--complete4Resolve relative URLs
--resolve5Skip TLS verification
--insecure6Show help
-hWhen to Use
1
Collecting JS files for analysis2
Bug bounty recon automation3
Finding JavaScript endpoints for secret scanning4
Preparing JS files for tools like SecretFinder5
Mapping external JS dependenciesNotes & Tips
1
Outputs only the JS file URLs, not their content2
Use --complete to also extract inline JavaScript3
Works well piped from other recon tools4
Combine with SecretFinder or LinkFinder for deep analysis5
Lightweight and fastCommon Errors & Solutions
No JS files found
The target may not load external JS; try --complete flag
No input URL
Use --url flag or pipe URLs via stdin
TLS errors
Use --insecure flag to skip certificate verification