Finding hidden secrets inside JavaScript files from websites
- Extract all
.js
files from target URL or subdomains - Scan
.js
files for sensitive patterns (API keys, tokens, credentials) - Multi-threading support for fast scanning
- Saves results in
js.txt
and findings inreport.jsonl
# Clone the repository
https://github.com/MASTERMONTYOFFICIAL/js_analyzer.git
cd js_analyzer
python3 js.py
# Install dependencies
pip3 install requests
pip3 install bs4
# Scan a single URL
python js.py -u https://example.com -o output.txt
# Scan using subdomains file
python js.py -s subs.txt -o output.txt