CScanner is a simple yet efficient port scanner written in C. This tool allows users to check if specific ports are open on a target IP address, which is useful for network security audits and troubleshooting.
- Fast scanning for open ports
- Lightweight and minimal dependencies
- Easy-to-use command-line interface
- C compiler: You’ll need a C compiler (e.g., GCC or Clang) installed on your system.
- Make (optional but recommended): To streamline the build process, especially for larger projects.
- Clone the Repository:
git clone https://github.com/yourusername/CScanner.git
cd CScanner
With GCC:
gcc -o main main.c
With Clang (optional):
clang -o main main.c
After compilation, you should have an executable named main.exe
(or simply main
on Unix-based systems).
To run the CScanner, use the following syntax:
./main <ip> <port>
- : The IP address of the target you want to scan.
- : The specific port number you want to check. If the port is open, CScanner will output a success message; otherwise, it will indicate the port is closed or unreachable.
To scan port 80 on 192.168.1.1:
./main 192.168.1.1 80
To scan a different port, simply replace the port number:
./main 192.168.1.1 443
Ensure you have the necessary permissions to scan ports on the network you are analyzing. Running this tool on public networks may require authorization to avoid breaching security policies.
This project is licensed under the MIT License. See the LICENSE file for details.
Happy scanning!
Let me know if you'd like any additional customization.