Cross-platform network scan library
with the aim of being lightweight and fast.
Add netscan
to your dependencies
toml:Cargo.toml
[dependencies]
netscan = "0.16"
See Examples
The following feature flags can be used to enable/disable specific features.
--feature service
Enable service detection. (Experimental)
--feature os
Enable TCP/IP Stack Fingerprinting. (Experimental)
--feature full
Enable all of the above.
For more details see Examples
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
.
This library requires the ability to create raw sockets. Execute with administrator privileges.