Ultimate LinkFinder Cheat Sheet
Ultimate LinkFinder Cheat Sheet
A reference guide for discovering endpoints in JavaScript files. Extract hidden URLs and API routes.
1. Basic Syntax
The fundamental structure of a LinkFinder command.
Essential Flags
-i, --input [FILE]: Input file/URL-o, --output [FILE]: Output file-d, --domain [DOMAIN]: Domain to search-b, --burp: Burp Suite output
Basic Usage
python linkfinder.py -i script.js: Analyze filepython linkfinder.py -i https://example.com/app.js: Remote filepython linkfinder.py -i script.js -o results.html: HTML outputpython linkfinder.py -i script.js -d example.com: Filter domain
Install requirements:
pip install -r requirements.txt. Requires Python 3.6+ and beautifulsoup4, requests, and selenium packages.
2. File Analysis
Analyze Local File
Extract endpoints from local JavaScript file.
Analyze Remote File
Extract endpoints from remote JavaScript file.
Analyze Multiple Files
Process multiple JavaScript files.
Analyze with Regex
Use custom regex pattern to find endpoints.
Analyze Inline Scripts
Extract endpoints from HTML with inline scripts.
Complete Analysis
Run with all analysis options enabled.
Use waybackurls to find historical JS files:
waybackurls example.com | grep "\.js$" | sort -u | while read url; do python linkfinder.py -i $url; done
3. Output & Options
HTML Output
Generate HTML report with clickable links.
Console Output
Print results to console (default).
Domain Filter
Only show endpoints matching domain.
Custom Regex
Use custom regex for endpoint discovery.
Include Cookies
Send cookies for authenticated pages.
Verbose Output
Show detailed analysis information.
| Output Flag | Description |
|---|---|
-o, --output [FILE] | Save results to file |
-o cli | Console output |
-d, --domain [DOMAIN] | Filter by domain |
-r, --regex [REGEX] | Custom regex pattern |
-c, --cookies [COOKIE] | Send cookies |
-v, --verbose | Verbose output |
4. Pipeline Integration
With Waybackurls
Analyze historical JavaScript files.
With HTTPx
Check if discovered endpoints are alive.
With Nuclei
Scan discovered endpoints for vulnerabilities.
With Ffuf
Fuzz discovered API endpoints.
With SQLmap
Test discovered endpoints for SQL injection.
Full JS Analysis Pipeline
Complete JavaScript endpoint discovery workflow.
Create a bash script that automates the entire workflow: collect JS files → run LinkFinder → deduplicate → validate with HTTPx → scan with Nuclei.
5. Advanced Usage
Custom User-Agent
Set custom user agent for requests.
Complete HTML Report
Generate comprehensive HTML report.
Analyze with Custom Regex
Find specific API patterns.
Extract All Endpoints
Run with all extraction methods enabled.
Process JS from Source Maps
Analyze source map files for endpoints.
Batch Processing
Process all JS files in directory.
| Advanced Flag | Description |
|---|---|
-H, --headers | Custom headers |
-r, --regex | Custom regex pattern |
-d, --domain | Domain filter |
-c, --cookies | Cookie support |
-v, --verbose | Verbose mode |
6. Burp Suite Integration
Export Burp Format
Generate Burp Suite compatible output.
Import to Burp
Import results into Burp Suite.
Burp Extension
Use LinkFinder as Burp extension.
Passive Scanning
Automatically analyze JS files in Burp.
Custom Burp Workflow
Complete Burp + LinkFinder workflow.
The Burp Suite extension automatically processes JavaScript files as you browse, finding endpoints in real-time. Results appear in the "LinkFinder" tab and can be sent to other tools.
Export Endpoints from Burp
Extract endpoints from Burp history.
| Burp Integration | Description |
|---|---|
-b, --burp | Generate Burp compatible output |
BApp Store | Install as Burp extension |
Passive Scanning | Auto-analyze JS files |
Site Map Import | Import results to site map |
Post a Comment