Cross-platform network scan tool for host and service discovery.
Aim to be simple and fast.
cargo install nscan
``` 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
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
To build libpnet on Windows, follow the instructions below.
Windows
- You must use a version of Rust which uses the MSVC toolchain
- You must have WinPcap or npcap installed (tested with version WinPcap 4.1.3) (If using npcap, make sure to install with the "Install Npcap in WinPcap API-compatible Mode")
- You must place
Packet.lib
from the WinPcap Developers pack in a directory namedlib
, in the root of this repository. Alternatively, you can use any of the locations listed in the%LIB%
/$Env:LIB
environment variables. For the 64 bit toolchain it is inWpdPack/Lib/x64/Packet.lib
, for the 32 bit toolchain, it is inWpdPack/Lib/Packet.lib
.