nscan

Cross-platform network scan tool for host and service discovery.
Aim to be simple and fast.
Features
- Port Scan
- Host Scan
- Async Port Scan
- Async Host Scan
- Service detection
- OS detection
Installation
Cargo Install
cargo install nscan
Basic Usage
```
USAGE:
nscan [OPTIONS]
OPTIONS:
-p, --port Scan ports of the specified host.
Use default port list if port range omitted.
Examples:
--port 192.168.1.8 -S -O
--port 192.168.1.8:1-1000
--port 192.168.1.8:22,80,8080
--port 192.168.1.8 -l custom-list.txt
-n, --host Scan hosts in specified network or host-list.
Examples:
--host 192.168.1.0
--host 192.168.1.0/24
--host custom-list.txt
--host 192.168.1.10,192.168.1.20,192.168.1.30
-i, --interface Specify the network interface
-s, --source Specify the source IP address
-P, --protocol Specify the protocol
-m, --maxhop Set max hop(TTL) for ping or traceroute
-T, --scantype Specify the scan-type
-t, --timeout Set timeout in ms - Example: -t 10000
-w, --waittime Set wait-time in ms (default:100ms) - Example: -w 200
-r, --rate Set send-rate in ms - Example: -r 1
-c, --count Set number of requests or pings to be sent
-S, --service Enable service detection
-O, --os Enable OS detection
-A, --async Perform asynchronous scan
-l, --list Use list - Example: -l custom-list.txt
-W, --wellknown Use well-known ports
-o, --save Save scan result in json format - Example: -o result.json
--acceptinvalidcerts Accept invalid certs (This introduces significant vulnerabilities)
-h, --help Print help information
-V, --version Print version information
```
Supported platforms
Privileges
nscan
uses a raw socket which require elevated privileges. Execute with administrator privileges.
My related projects
This tool also serves as a test for my following projects.
- default-net Cross-platform library for network interface and gateway
- netscan Cross-platform network scan library
Additional Notes
Support for VM environments is in progress. Results may not be correct.