recon-04-js-analysis
Installation
SKILL.md
Recon 04 Js Analysis — Offensive Methodology
Shortcut
- Gather all JS files from target (subdomain + paths)
- Extract endpoints: grep for paths, URLs, routes
- Extract secrets: API keys, tokens, internal URLs
- Check source maps (.js.map) for full source code
Detection
# Extract all JS URLs
katana -u https://target.com -jc | grep '\.js' | sort -u > js_files
# Extract endpoints
cat *.js | grep -oP '["''']/[a-zA-Z0-9_/{}.-]+["''']' | sort -u
# Source maps
curl -s https://target.com/app.js.map | python3 -c "import sys,json; d=json.load(sys.stdin); print('\n'.join(d.get('sources',[])))"