DisNet is a Go-based network discovery and port-scanning utility. It performs optional host discovery for a CIDR range and then scans a selected host (or a provided host/domain) for open TCP ports.
Features
- CIDR-based host discovery with selectable target
- Direct scanning for a single host or domain
- Concurrent TCP port scanning with a configurable range
- Common service name mapping for well-known ports
- Private/public IP classification
Requirements
- Go 1.20+ (or a compatible version)
- Administrator privileges (required by the current implementation)
Install
Clone the repository and build:
git clone <repo-url>cd DisNetgo build -o disnet
Usage
Run the executable and follow the prompts:
- Enter a CIDR block, host, or domain (e.g.,
192.168.0.0/24orexample.com). - Enter a port range (e.g.,
20-80) or a single port.
Examples:
- Scan a CIDR network, then select a discovered host:
192.168.0.0/24 - Scan a single host:
192.168.1.10 - Scan a domain:
example.com
Notes
- Host discovery uses
pingwith Windows-style flags. On non-Windows systems, adjust the command if needed. - Port scanning is TCP-based and uses a 1-second timeout per port by default.
Roadmap
- Configurable timeouts and concurrency
- Optional UDP scanning
- Structured output (JSON/CSV)
Contributing
Pull requests are welcome. For major changes, open an issue first to discuss the proposal.
License
No license file is currently provided.