[crates-badge]: https://img.shields.io/crates/v/nscan.svg
[crates-url]: https://crates.io/crates/nscan
[license-badge]: https://img.shields.io/crates/l/nscan.svg
[netscan-url]: https://github.com/shellrow/netscan
# nscan [![Crates.io][crates-badge]][crates-url] ![License][license-badge]
Cross-platform network scan tool for host and service discovery.
Aim to be simple and fast.
## Features
- Port Scan
- Host Scan
- Async Port Scan (Currently only Unix-Like OS is supported)
- Async Host Scan (Currently only Unix-Like OS is supported)
## Installation
### Cargo Install
```
cargo install nscan
```
### Download from GitHub Releases
Pre-built binaries for several OS/architectures are available
in [Releases](https://github.com/shellrow/nscan/releases) section.
## Basic Usage
```
USAGE:
nscan [FLAGS] [OPTIONS]
FLAGS:
-d, --detail Get details (service version)
-A, --acceptinvalidcerts Accept invalid certs (This introduces significant vulnerabilities)
-a, --async Perform asynchronous scan
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-p, --port <ip_addr:port> Scan ports of the specified host.
Use default port list if port range omitted.
Examples
-p 192.168.1.8 -d
-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, --host <ip_addr> Scan hosts in specified network or list
Examples
-n 192.168.1.0 -d
-n -l custom-list.txt
-t, --timeout <duration> Set timeout in ms - Ex: -t 10000
-w, --waittime <duration> Set waittime in ms (default:100ms) - Ex: -w 200
-P, --portscantype <scantype> Set port scan type (default:SYN) - SYN, CONNECT
-i, --interface <name> Specify network interface by IP address - Ex: -i 192.168.1.4
-l, --list <file_path> Use list - Ex: -l custom-list.txt
-s, --save <file_path> Save scan result to file - Ex: -s result.txt
```
## Example
Port scan and service version detection
```
sudo nscan -p 192.168.1.8 -d
```
Host scan
```
sudo nscan -n 192.168.1.0
```
-a(--async) flag for asynchronous scan
-s(--save) option for save json format data to file
## Supported platforms
- Linux
- macOS (OS X)
- Windows
## Planned
- OS Fingerprinting
- Windows support for asynchronous scanning