Skip to content

Zeeshanafridai/Java_script_endpoint_extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

🕵️‍♂️ JavaScript Endpoint Extractor for Bug Bounty Recon

This tool automates the process of extracting hidden or undocumented endpoints from JavaScript files during recon. It's tailored for bug bounty hunters and red teamers who want to uncover API routes and internal paths for exploitation.

✨ Features

  • Extracts endpoints using LinkFinder
  • Auto-maps relative paths to full URLs using JS file source
  • Supports full and relative URLs
  • Works with thousands of JS files
  • Output ready for use with tools like Burp Suite, httpx, ffuf, nuclei

📦 Requirements

  • python3
  • LinkFinder
  • httpx (optional for live testing)

Install dependencies:

pip install -r https://raw.githubusercontent.com/GerbenJavado/LinkFinder/master/requirements.txt
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest


🚀 Usage

chmod +x extract-all-endpoints.sh

./extract-all-endpoints.sh -i <input_js_file> -o <output_file>

🧾 Flags
Flag	Description	Required
-i	Input file containing JavaScript file URLs (one per line)	✅ Yes
-o	Output file where full mapped endpoints will be saved	✅ Yes

📄 Example JS Input File (jsfiles.txt)

https://www.target.com/scripts/lib.js

https://cdn.example.com/js/app.bundle.js

▶️ Example Command

./extract-all-endpoints.sh -i jsfiles.txt -o all_endpoints.txt

This will:

Run LinkFinder on each JavaScript URL

Extract all endpoints (/api/..., /auth/..., http://...)

Automatically map relative paths to full URLs

Save results into all_endpoints.txt

About

Extracts hidden API endpoints from JavaScript files and maps them to full URLs for testing. Ideal for bug bounty hunters, red teamers, and anyone doing JS recon at scale.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages