netscan

Crates.ionetscan
lib.rsnetscan
version0.28.0
sourcesrc
created_at2021-04-09 15:17:42.509238
updated_at2024-05-19 12:45:42.964043
descriptionCross-platform network scan library
homepage
repositoryhttps://github.com/shellrow/netscan
max_upload_size
id381343
size356,294
shellrow (shellrow)

documentation

README

netscan Crates.io License

Cross-platform network scan library
with the aim of being lightweight and fast.

Features

  • Port Scan (IPv4, IPv6)
    • TCP SYN scan
    • TCP CONNECT scan
  • Host Scan (IPv4, IPv6)
    • ICMP PING scan
    • TCP PING scan
    • UDP PING scan

Usage

Add netscan to your dependencies

[dependencies]
netscan = "0.28"

Example

See Examples

Supported platform

  • Linux
  • macOS
  • Windows

Privileges

This library requires the ability to create raw sockets. Execute with administrator privileges.

Note for Windows Users

If you are using Windows, please consider the following points before building and running:

  • Npcap or WinPcap Installation:
    • Ensure that you have Npcap or WinPcap installed on your system.
    • If using Npcap, make sure to install it with the "Install Npcap in WinPcap API-compatible Mode" option.
  • Build Dependencies:
    • Place the Packet.lib file from the Npcap SDK or WinPcap Developers pack in a directory named lib at the root of this repository.
    • You can use any of the locations listed in the %LIB% or $Env:LIB environment variables.
    • For the 64-bit toolchain, the Packet.lib is located in /Lib/x64/Packet.lib.
    • For the 32-bit toolchain, the Packet.lib is located in /Lib/Packet.lib.
Commit count: 326

cargo fmt