NimScan is a fast, dependency-free Windows-only port scanner that supports filtered scans and can be used as a C/C++ library.
🚀 Fast Port Scanner 🚀
NimScan is designed for network security professionals and system administrators who need to quickly scan large port ranges on Windows hosts to identify open, closed, or filtered ports. It is particularly useful for vulnerability assessment and network monitoring within LAN environments, offering faster scans than traditional tools without external dependencies.
NimScan is currently Windows-only and does not require external drivers, making it lightweight and easy to deploy. The raw socket scanning mode (-a) is slower and limited to 10,000 ports. When integrating as a library, ensure NimScanToC.a is present in your project directory. Benchmark results indicate superior speed compared to Nmap, especially for filtered port scans.
Download or clone the NimScan repository from GitHub
Ensure you are running on a Windows environment
Compile your C/C++ program linking against NimScanToC.a for library usage
Use gcc with the command: gcc <file>.c -L. -l:NimScanToC.a -w -o NimScan.exe
No additional dependencies or drivers are required
NimScan 10.0.0.0/24 -p:1-5000
Scan ports 1 to 5000 on all hosts in the 10.0.0.0/24 subnet
NimScan 10.0.0.1-10.0.0.10 -p:80,443,445
Scan specific ports 80, 443, and 445 on hosts from 10.0.0.1 to 10.0.0.10
NimScan.exe 10.0.0.69 -a
Perform a raw socket scan on host 10.0.0.69 to detect filtered, closed, and open ports
scan(<IP/HOST>, ports, size)
C function to scan specified ports on a given host with default settings
scanner(<IP/HOST>, NULL, 0, "<arguments>")
C function to scan all ports on a host with custom arguments