The mini-cli-nmap project provides a basic command-line tool written in C that wraps common Nmap functionalities, making network scanning tasks more accessible through a simplified interface. It's designed for users who need a quick way to perform host discovery, port scanning, and other essential Nmap operations without memorizing complex Nmap command syntax.
This tool aims to abstract away the intricate details of Nmap commands, offering a streamlined experience for common use cases.
- 🎯 Simplified Nmap Execution: Execute Nmap commands with an easier-to-remember syntax.
- 🔍 Host Discovery: Quickly identify active hosts on a network.
- ⚡ Port Scanning: Scan for open ports on target systems using various methods.
- 🛡️ OS Detection: Attempt to detect the operating system of the target host.
- 🔄 Service Version Detection: Identify the versions of services running on open ports.
- 🌐 Target Flexibility: Specify targets as IP addresses or hostnames.
Core Language:
External Dependency:
Before you begin, ensure you have the following installed on your system:
- C Compiler: A C compiler such as GCC or Clang.
- Linux/macOS: Typically installed by default or via package manager (
build-essentialon Debian/Ubuntu, Xcode Command Line Tools on macOS). - Windows: MinGW-w64 (for GCC) or MSVC (from Visual Studio).
- Linux/macOS: Typically installed by default or via package manager (
- Nmap: The Nmap network scanner must be installed and accessible in your system's PATH.
-
Clone the repository
git clone https://github.com/undercraft2206/mini-cli-nmap.git cd mini-cli-nmap -
Compile the source code
gcc -o nmap_mini_CLI nmap_mini_CLI.c chmod +x nmap_mini_CLI
gcc -o nmap_mini_CLI.exe nmap_mini_CLI.c
Note: For Windows, ensure
gccis in your PATH. You might need to add./before the executable name when running in PowerShell/CMD, e.g.,./nmap_mini_CLI.exe.
After successful compilation, you can run the CLI tool. For simplicity, you might move the compiled executable to a directory included in your system's PATH, or always run it from its compiled location.
# Example: Run from current directory
./nmap_mini_CLI [command] [target_ip_or_hostname] [options]The mini-cli-nmap tool provides several commands to perform common Nmap scans.
./nmap_mini_CLIbash``` mini-cli-nmap/ ├── nmap_mini_CStructure
mini-cli-nmap/
├── nmap_mini_CLI.c # Main C source file for the CLI tool
├── linux/ # Placeholder for Linux-specific build scripts or binaries (TODO: Populate if needed)
├── w11/ # Placeholder for Windows 11-specific build scripts or binaries (TODO: Populate if needed)
└── README.md # This documentation file
- Ensure you have a C compiler (GCC/Clang) and Nmap installed.
- The development workflow involves modifying
nmap_mini_CLI.cand recompiling.
There are no formal automated tests currently, but you can manually test by compiling your changes and running the executable with various commands and targets.
# Recompile after making changes
gcc -o nmap_mini_CLI nmap_mini_CLI.c
# Test your changes
./nmap_mini_CLI <your_test_command> <target>- Nmap: This tool is built as a wrapper around the powerful Nmap network scanner. Many thanks to the Nmap project and its contributors.
- 🐛 Issues: Feel free to report any issues or suggest features via GitHub Issues.
⭐ Star this repo if you find it helpful!
Made with ❤️ by undercraft2206
Made with https://readmestudio.zenui.net/editor