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 CScannerWith GCC:
gcc -o main main.cWith Clang (optional):
clang -o main main.cAfter 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 80To scan a different port, simply replace the port number:
./main 192.168.1.1 443Ensure 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.