Skip to content

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β•šβ•β•β–ˆβ–ˆβ•”β•β•β•      β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—     β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•     β–ˆβ–ˆβ•‘   β•šβ•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β• β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•
β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ•β•  β•šβ•β•β•β•β•šβ•β•β•β•β•β•β•   β•šβ•β•         β•šβ•β•     β•šβ•β•  β•šβ•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•

                  Modern Network Reconnaissance & Analysis Tool
                       Built for the Cloud Era | Python 3.9+

Python Version License Platforms Version Async


πŸ“¦ Dependencies & How to Run

System Requirements

Requirement Version Notes
Python 3.9+ Required
pip Latest For installing packages
Root / sudo Optional Required for SYN, NULL, FIN, XMAS, UDP scans

Install Dependencies

pip install -r requirements.txt

Or install individual packages:

pip install aiohttp rich scapy cryptography dnspython

Kali Linux / Debian Quick Setup

# Step 1 β€” Update system and install system-level deps
sudo apt update && sudo apt install -y python3-pip python3-scapy git pipx python3-venv python3

# Step 2 β€” Clone the repository
git clone https://github.com/Hriday315/net-probe.git
cd net-probe

# Step 3 β€” Install Net-Probe
pipx install .

# Step 4 β€” Run it!
net-probe --help

Install from PyPI (when published)

pip install net-probe

How to Run

# Basic TCP scan (no root required)
net-probe -t 192.168.1.1

# SYN stealth scan with service & OS detection (requires root)
sudo net-probe -t 192.168.1.1 -sS -sV -O

# Full TLS audit with HTML report
net-probe -t google.com -p 443 --tls -oH report.html

# Vulnerability scan + WAF detection
net-probe -t target.com -sV --vuln --waf

# Scan entire subnet, export all formats
net-probe -t 192.168.1.0/24 -oA results

Table of Contents


Why Net-Probe?

Net-Probe is an async-first network reconnaissance utility designed to bridge the gaps in traditional tools like Nmap when operating in containerized overlays, multi-cloud platforms, and modern IPv6 address spaces.

Feature / Capability Nmap Net-Probe
Async Probe Engine Thread-pool / C loops Python asyncio native loop
TLS Deep Analysis Basic scripts (limited) Cert chains, cipher grading (A+ to F)
Cloud Environment Detection No Identifies AWS, GCP, Azure, DigitalOcean
Container & K8s Detection No Fingerprints Docker, Kubernetes namespaces
API Enrichment Manual scripting Built-in Shodan, VirusTotal, Censys support
Output Options XML / Grepable JSON, CSV, Interactive HTML Dashboard
Timing Adjustments Fixed templates Adaptive based on RTT & packet drops
Terminal Interface Monochromatic CLI Rich colors, live progress bars

Key Features

  • ⚑ Async Scan Engine: Thousands of concurrent probes without blocking, using Python asyncio.
  • πŸ” Multi-Technique Probing: TCP Connect, SYN Stealth, UDP, ACK, NULL, FIN, and XMAS scanning.
  • πŸ” TLS Suite Analyzer: Certificate metadata, deprecated protocol checks, cipher grading (A+ to F), Heartbleed/POODLE/BEAST detection.
  • ☁️ Cloud & Container Discovery: Detects AWS/GCP/Azure hosting, CDNs, Docker, and Kubernetes namespaces.
  • πŸ•΅οΈ Vulnerability Correlation: Matches open services against local CVE database and live NVD/CIRCL APIs.
  • 🌐 DNS & Web Intelligence: Subdomain brute-forcing, zone transfer checks, WAF/CMS/technology fingerprinting.
  • πŸ“Š Polished Exporters: Pretty-printed JSON, clean spreadsheets (CSV), or an interactive dark-themed HTML report with built-in search.

CLI Switch Reference

Target Specification

  • -t, --target β€” Target host IP, CIDR subnet (e.g. 10.0.0.0/24), range (192.168.1.1-50), or domain names
  • -tL, --target-list β€” Path to file containing target specifications
  • -x, --exclude β€” Comma-separated list of IPs to exclude
  • -xL, --exclude-list β€” Path to file containing exclusions
  • -6, --ipv6 β€” Enable IPv6 routing mode

Scan Techniques

  • -sT, --tcp-connect β€” Standard TCP Connect scan (Default, no root needed)
  • -sS, --syn-scan β€” TCP SYN stealth scan (requires root/sudo)
  • -sU, --udp-scan β€” UDP scan using payload-aware triggers (requires root)
  • -sA, --ack-scan β€” TCP ACK scan for firewall rule detection
  • -sN, --null-scan β€” TCP NULL scan (no flags set) (requires root)
  • -sF, --fin-scan β€” TCP FIN scan (requires root)
  • -sX, --xmas-scan β€” TCP XMAS scan (FIN, PSH, URG flags) (requires root)
  • -sP, --ping-scan β€” Discovery ping sweep only (no port scans)

Port Specification

  • -p, --ports β€” Port list (e.g., 80, 1-1024, 80,443,8080)
  • -pT, --top-ports β€” Scan top N most common ports
  • -pA, --all-ports β€” Scan all 65535 ports
  • -pS, --service-ports β€” Scan known application service ports only

Detection & Analysis

  • -sV, --service-version β€” Banner grabbing for service versions
  • -O, --os-detect β€” Passive & active OS fingerprinting (TTL + TCP window)
  • --tls β€” Deep TLS certificate chain & cipher suite grading
  • --vuln β€” Correlate services to known CVEs and default credential lists
  • --dns β€” DNS record enumeration & zone transfer check
  • --waf β€” Identify Web Application Firewall (WAF) protections
  • --web β€” Map CMS (WordPress, Drupal) and web framework fingerprinting
  • --cloud β€” Check hosting environments (AWS, GCP, Azure, Docker, Kubernetes)
  • --traceroute β€” Traceroute hop path mapping with geo info

Performance & Timing

  • -T β€” Timing templates (0 to 5, Paranoid to Insane). Default: 3
  • -c, --concurrency β€” Maximum concurrent tasks. Default: 500
  • --timeout β€” Connection timeout in seconds. Default: 3.0
  • --retries β€” Connection retry limit. Default: 2
  • --rate-limit β€” Limit packet-rate per second. Default: 0 (unlimited)
  • --adaptive β€” Adjust rates dynamically based on packet drops

Output Options

  • -oJ <file> β€” Export JSON output file
  • -oC <file> β€” Export CSV output spreadsheet
  • -oH <file> β€” Export HTML audit dashboard report
  • -oX <file> β€” Export XML report (Nmap integration compatible)
  • -oA <prefix> β€” Save to all formats with this prefix
  • -v β€” Verbose output (use -vv, -vvv for debug details)
  • -q, --quiet β€” Quiet mode; suppresses console logs
  • --no-color β€” Disable colored console styling

Stealth & Evasion

  • --spoof-mac β€” Spoof interface MAC address
  • --decoy β€” Send decoys from mock source addresses
  • --randomize β€” Randomize target scan order
  • --frag β€” Fragment packets to bypass IDS/IPS
  • --ttl β€” Specify custom IP TTL value
  • --source-port β€” Spoof source port number

API Integrations

  • --shodan-key <KEY> β€” Shodan API key (inline, no config file needed)
  • --vt-key <KEY> β€” VirusTotal API key
  • --censys-id <ID> β€” Censys API ID
  • --censys-secret <SECRET> β€” Censys API Secret
  • --securitytrails-key <KEY> β€” SecurityTrails API key

Miscellaneous

  • -V, --version β€” Print version details
  • --update β€” Update vulnerability databases
  • --resume <file> β€” Resume interrupted scan state from JSON file
  • --open β€” Filter and display only open ports

API Integrations

Net-Probe supports optional external intelligence APIs to enrich your results. You do not need an API key to use the core scanning features β€” they are fully optional.

Passing Keys via CLI (Recommended)

You can pass API keys directly in the command line β€” no config file or source code editing needed:

# With Shodan key for enriched host data
net-probe -t 192.168.1.1 --shodan-key YOUR_SHODAN_KEY

# With VirusTotal for malware/reputation checks
net-probe -t target.com -sV --vuln --vt-key YOUR_VT_KEY

# With Censys for banner + cert correlation
net-probe -t 10.0.0.0/24 --censys-id YOUR_ID --censys-secret YOUR_SECRET

# Full enrichment with all APIs
net-probe -t target.com -sV --vuln --tls --web \
  --shodan-key YOUR_SHODAN_KEY \
  --vt-key YOUR_VT_KEY \
  --censys-id YOUR_ID \
  --censys-secret YOUR_SECRET \
  --securitytrails-key YOUR_ST_KEY

Passing Keys via Environment Variables

export NETPROBE_SHODAN_KEY="your_shodan_key"
export NETPROBE_VT_KEY="your_virustotal_key"
export NETPROBE_CENSYS_ID="your_censys_id"
export NETPROBE_CENSYS_SECRET="your_censys_secret"
export NETPROBE_SECURITYTRAILS_KEY="your_st_key"

net-probe -t 192.168.1.1

Passing Keys via Config File

Create ~/.config/net-probe/config.json:

{
  "shodan_api_key": "your_shodan_key",
  "virustotal_api_key": "your_virustotal_key",
  "censys_api_id": "your_censys_id",
  "censys_api_secret": "your_censys_secret",
  "securitytrails_api_key": "your_st_key"
}

Supported Integrations

Service Purpose Free Tier Get Key
Shodan Host intel, open ports, banners 100 results/query shodan.io
VirusTotal Malware/reputation checks 4 requests/min virustotal.com
Censys Certificate + banner search 250 results/query censys.io
SecurityTrails DNS history, subdomain data 50 API calls/month securitytrails.com
NVD API CVE correlation Unlimited (free) No key required
CIRCL CVE CVE lookup Unlimited (free) No key required
ip-api.com Geolocation in traceroute Unlimited (free) No key required

Practical Examples

1. Scan subnet and save in all formats:

net-probe -t 192.168.1.0/24 -oA subnet_scan

2. SYN stealth scan on top 100 ports:

sudo net-probe -t 10.0.0.1 -sS -pT 100

3. Audit HTTPS server for SSL vulnerabilities:

net-probe -t mysecureserver.com -p 443 --tls -oH tls_audit.html

4. Vulnerability check, WAF detection, and web stack fingerprinting:

net-probe -t target.com -sV --vuln --waf --web

5. Scan container orchestration endpoints:

net-probe -t 10.10.10.15 -p 10250,2375,2376 --cloud

6. Full DNS enumeration and subdomain discovery:

net-probe -t example.com --dns

7. Shodan-enriched reconnaissance with Censys backup:

net-probe -t 203.0.113.0/28 -sV -O --cloud \
  --shodan-key $SHODAN_KEY \
  --censys-id $CENSYS_ID --censys-secret $CENSYS_SECRET \
  -oH recon_report.html

8. Paranoid-speed stealth scan with packet fragmentation:

sudo net-probe -t 192.168.5.1 -sS -sV -T 0 --frag --randomize

Architecture

net-probe/
β”œβ”€β”€ net_probe/
β”‚   β”œβ”€β”€ core/                 # Async port scan & discovery engines
β”‚   β”‚   β”œβ”€β”€ scanner.py        # Main async orchestrator
β”‚   β”‚   β”œβ”€β”€ tcp_scanner.py    # TCP Connect, SYN, ACK, NULL, FIN, XMAS
β”‚   β”‚   β”œβ”€β”€ udp_scanner.py    # UDP scanning
β”‚   β”‚   β”œβ”€β”€ host_discovery.py # ARP, ICMP, TCP ping discovery
β”‚   β”‚   β”œβ”€β”€ port_strategy.py  # Port range parsing & top-port lists
β”‚   β”‚   └── rate_limiter.py   # Adaptive rate limiting
β”‚   β”œβ”€β”€ modules/              # Analysis modules (run after scan)
β”‚   β”‚   β”œβ”€β”€ service_detect.py # Banner grabbing & service fingerprinting
β”‚   β”‚   β”œβ”€β”€ os_detect.py      # OS fingerprinting (TTL + TCP window)
β”‚   β”‚   β”œβ”€β”€ tls_analyzer.py   # TLS/SSL deep analysis & grading
β”‚   β”‚   β”œβ”€β”€ vuln_scanner.py   # CVE correlation + default creds check
β”‚   β”‚   β”œβ”€β”€ dns_enum.py       # DNS records + subdomain brute force
β”‚   β”‚   β”œβ”€β”€ web_detect.py     # WAF, CMS, web tech fingerprinting
β”‚   β”‚   β”œβ”€β”€ traceroute.py     # Network path tracing
β”‚   β”‚   └── cloud_detect.py   # Cloud/CDN/container detection
β”‚   β”œβ”€β”€ output/               # Export engines
β”‚   β”‚   β”œβ”€β”€ formatter.py      # Output dispatch engine
β”‚   β”‚   β”œβ”€β”€ json_output.py    # JSON exporter
β”‚   β”‚   β”œβ”€β”€ csv_output.py     # CSV exporter
β”‚   β”‚   β”œβ”€β”€ html_report.py    # Interactive HTML dashboard
β”‚   β”‚   └── console_output.py # Rich terminal UI
β”‚   β”œβ”€β”€ utils/                # Utility helpers
β”‚   β”‚   β”œβ”€β”€ network.py        # IP/CIDR parsing helpers
β”‚   β”‚   β”œβ”€β”€ colors.py         # Terminal styling
β”‚   β”‚   └── validators.py     # Input validation
β”‚   β”œβ”€β”€ config.py             # Configuration & API key management
β”‚   β”œβ”€β”€ models.py             # Shared data models
β”‚   └── cli.py                # CLI argument parser
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ setup.py
└── README.md

Legal Disclaimer

Net-Probe is intended for ethical security research, authorized penetration testing, and network auditing purposes only.

Unauthorized port scanning of systems without explicit permission may violate local, national, or international laws including the Computer Fraud and Abuse Act (CFAA) and similar regulations.

The authors assume no liability for misuse or damage caused by this tool. Users are solely responsible for ensuring authorization before scanning any target network or host.


License

Licensed under the MIT License.


Built with ❀️ for the security community  |  Star ⭐ if you find it useful

About

Modern async network reconnaissance tool with port scanning, OS detection, TLS analysis, vulnerability scanning, cloud discovery, and HTML/JSON reporting.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages