Skip to content

Sanak3/ApiHunter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

API Hunter

API Hunter is a bash script designed for automated API reconnaissance and vulnerability scanning. Built for bug bounty hunters and penetration testers, it chains multiple tools to map out an application's API attack surface.

Focus

The primary goal is to discover hidden API endpoints, extract parameters for BOLA/IDOR testing, identify exposed documentation (Swagger/OpenAPI), leak secrets, and scan for high/critical API vulnerabilities.

Prerequisites

Ensure the following tools are installed and available in your system's PATH:

Usage

chmod +x apihunter.sh
./apihunter.sh <target-domain.com>

Workflow

  1. Subdomain Mapping: Uses Subfinder, prioritizing API-related keywords.
  2. Host Resolution: Uses Httpx to filter alive web servers.
  3. Documentation Hunting: Probes for common Swagger and OpenAPI paths.
  4. JavaScript Crawling: Uses Katana to extract routes and endpoints.
  5. Secret Inspection: Uses Cariddi to passively scan for leaked tokens and secrets.
  6. Parameter Extraction: Filters extracted URLs to isolate parameters for IDOR/BOLA testing.
  7. Vulnerability Scanning: Runs Nuclei with strict API, token, and exposure tags (High/Critical severity only).

Output

Results are saved in a dedicated directory (<target>-API/), providing clean text files for further manual exploitation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages