nscan Crates.io License

Cross-platform network scan tool for host and service discovery.
Aim to be simple and fast.

Features

Installation

Cargo Install

cargo install nscan

Basic Usage

``` USAGE: nscan [FLAGS] [OPTIONS]

FLAGS: -s, --service Enable service detection -A, --acceptinvalidcerts Accept invalid certs (This introduces significant vulnerabilities) -a, --async Perform asynchronous scan -O, --OS Enable OS detection -h, --help Prints help information -V, --version Prints version information

OPTIONS: -p, --port Scan ports of the specified host. Use default port list if port range omitted. Examples -p 192.168.1.8 -s -O -p 192.168.1.8:1-1000 -p 192.168.1.8:22,80,8080 -p 192.168.1.8 -l custom-list.txt -n, --network Scan hosts in specified network Example: -n 192.168.1.0 -O -H, --host Scan hosts in specified host-list Examples -H custom-list.txt -O -H 192.168.1.10,192.168.1.20,192.168.1.30 -O -t, --timeout Set timeout in ms - Ex: -t 10000 -w, --waittime Set waittime in ms (default:100ms) - Ex: -w 200 -r, --rate Set sendrate in ms - Ex: -r 1 -P, --portscantype Set port scan type (default:SYN) - SYN, CONNECT -i, --interface Specify network interface by IP address - Ex: -i 192.168.1.4 -l, --list Use list - Ex: -l custom-list.txt -o, --output Save scan result in json format - Ex: -o result.json ```

Example

Port scan with service version and OS detection
sudo nscan -p 192.168.1.8 -s -O

Host scan with OS detection sudo nscan -n 192.168.1.0 -O

-a(--async) flag for asynchronous scan
-o(--output) option for save json format data to file

Supported platforms

Note for Windows users

To build libpnet on Windows, follow the instructions below.

Windows

Source