JSParser
JavaScript parser for URL extraction
Recon & OSINT4 commands
#js#parser#endpoint#recon
Installation
1Clone the repository
2Install via setup.py
3Verify installation
# Clone the repository
git clone https://github.com/nahamsec/JSParser.git
cd JSParser
# Install
python3 setup.py install
# Verify
python3 JSParser.py -hBasic Usage
Parse JavaScript files to extract URLs and endpoints
# Extract URLs from a JS file
python3 JSParser.py -u https://example.com/script.js
# With verbose output
python3 JSParser.py -u https://example.com/script.js -v
# Save results to file
python3 JSParser.py -u https://example.com/script.js -o results.txtCommand Reference
4 commands
1Target URL of JS file
-u2Verbose output
-v3Output file
-o4Show help
-hWhen to Use
1
Extracting URLs from JavaScript files2
Reconnaissance on web applications3
Bug bounty JS analysis4
Finding hidden API endpoints5
Pre-exploitation information gatheringNotes & Tips
1
Originally designed by NahamSec for bug bounty recon2
Uses simple regex-based extraction from JS content3
Useful for finding hidden endpoints not visible in HTML4
Can process multiple JS files sequentially5
Lightweight and easy to use in pipelinesCommon Errors & Solutions
ModuleNotFoundError
Run: python3 setup.py install
No URLs found
Ensure the JS file contains URL patterns
File not found
Check the URL is accessible and returns JavaScript