SubJS
Find JavaScript files from subdomains
Recon & OSINT7 commands
#js#subdomain#recon#golang
Installation
1Install via Go
2Verify installation
# Using Go
go install github.com/lc/subjs@latest
# Verify
subjs -hBasic Usage
Discover JavaScript files loaded by subdomains
# Scan a single URL
subjs -i https://example.com
# Scan from stdin
cat urls.txt | subjs
# With concurrency
subjs -i https://example.com -c 50
# Output to file
subjs -i https://example.com -o results.txtCommand Reference
7 commands
1Input URL
-i2Output file
-o3Concurrency level
-c4Timeout in seconds
-t5Custom user agent
-ua6Custom header
-H7Show help
-hWhen to Use
1
JavaScript file discovery from subdomains2
Bug bounty recon and asset discovery3
Collecting JS for vulnerability analysis4
Mapping JavaScript dependencies across subdomains5
Preparing JS file lists for content analysisNotes & Tips
1
Fast concurrent JS file discovery2
Designed for subdomain JS enumeration3
Can be piped from subdomain enumeration tools4
Use custom headers for authenticated scanning5
Works well in automated recon pipelinesCommon Errors & Solutions
No JS files found
The target may not load external JavaScript files
Connection timeout
Increase timeout with -t flag
No input provided
Use -i flag or pipe URLs via stdin