https://github.com/mohammadhasanii/subhunter
SubHunter is a fast and concurrent tool to discover subdomains, detect open ports, and identify service providers. It also detects whether a domain is behind a CDN, helping security researchers and network engineers map the real infrastructure behind a target domain.
https://github.com/mohammadhasanii/subhunter
cdn-detection cybersecurity domain-scanner golang network-security penetration-testing port-scanner scanner subdomain-scanner
Last synced: 8 months ago
JSON representation
SubHunter is a fast and concurrent tool to discover subdomains, detect open ports, and identify service providers. It also detects whether a domain is behind a CDN, helping security researchers and network engineers map the real infrastructure behind a target domain.
- Host: GitHub
- URL: https://github.com/mohammadhasanii/subhunter
- Owner: mohammadhasanii
- Created: 2025-09-08T11:41:06.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-09-08T12:02:07.000Z (10 months ago)
- Last Synced: 2025-09-20T19:44:08.783Z (9 months ago)
- Topics: cdn-detection, cybersecurity, domain-scanner, golang, network-security, penetration-testing, port-scanner, scanner, subdomain-scanner
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# SubHunter
SubHunter is a fast and concurrent tool to discover subdomains, detect open ports, and identify service providers. It also detects whether a domain is behind a CDN, helping security researchers and network engineers map the real infrastructure behind a target domain.
## Features
- **Subdomain Discovery**: Collects subdomains from crt.sh certificate transparency logs
- **Port Scanning**: Detects open ports for non-CDN domains using concurrent scanning
- **Service Detection**: Identifies service provider and hosting information
- **CDN Detection**: Checks if domain is behind a Content Delivery Network
- **High Performance**: Concurrent scanning architecture for faster results
- **Clean Output**: Professional table-formatted results for easy analysis
## Installation
### Prerequisites
- [Go](https://go.dev/dl/) version 1.19 or higher
### Setup
1. Clone the repository:
```bash
git clone https://github.com/mohammadhasanii/SubHunter.git
cd SubHunter
```
2. Install dependencies:
```bash
go mod init subhunter
go mod tidy
```
## Build
### For Windows:
```bash
go build -o SubHunter.exe main.go
```
### For Linux/macOS:
```bash
go build -o subhunter main.go
```
## Usage
### Basic Usage
```bash
# Windows
./SubHunter.exe
# Linux/macOS
./subhunter
```
### Input Format
- Enter the main domain **without** `http://` or `https://`
- Enter **root domain only** (no subdomains)
**Examples:**
- ✅ `example.com`
- ✅ `google.com`
- ❌ `https://example.com`
- ❌ `www.example.com`
## Output Format
Results are displayed in a clean table containing:
- **Subdomain**: Discovered subdomain
- **Provider**: Hosting/cloud provider
- **CDN Status**: Whether domain is behind CDN
- **Open Ports**: List of detected open ports
- **Response Time**: Average response time