Run Nmap
run_nmapDiscover live hosts and scan open ports, service versions, OS details, and NSE vulnerabilities with configurable timing, scripts, and evasion.
Instructions
Nmap (Network Mapper) is a powerful tool for network discovery and security auditing. Tags: network, scanner, reconnaissance, security, pentest, enumeration, discovery
Usage Guide:
Host Discovery: Use mode="ping" for a fast ICMP/TCP scan to find live hosts, or mode="list" to resolve DNS names without sending packets.
Port Scanning: Default mode is "syn" (Stealth SYN scan). Use mode="udp" for UDP services.
Enumeration: Set service_version=True for version detection (adjust version_intensity 0-9) or os_detection=True for OS fingerprinting.
Aggressive Mode: Set aggressive=True to enable OS detection, version detection, script scanning, and traceroute simultaneously.
Scripting (NSE): Use the scripts parameter to run "default", "vuln" (vulnerability checks), or "brute" (password guessing).
Evasion: Use timing (0-5) to control speed/stealth, fragment=True to split packets, and decoys="IP1,IP2,ME" to mask your source.
Output: Use output_name to save results in normal, XML, and grepable formats.
Warnings: This tool contains functionality for brute-forcing and security exploitation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>"
},
"name": "run_nmap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Scan technique: "syn" (default), "udp", "ping" (host discovery), "list" (DNS resolution only). | syn |
| ports | No | Specific ports or ranges (e.g., "80,443", "1-65535"). | |
| decoys | No | Comma-separated list of decoy IP addresses to hide your identity. | |
| target | Yes | Target IP address, hostname, or network range (e.g., 192.168.1.1, 10.0.0.0/24). | |
| timing | No | Timing template (0-5) for speed/evasion. 4 is fast, 3 is default. | |
| scripts | No | NSE script categories to run (e.g., "default", "vuln", "brute"). | |
| fragment | No | Use tiny fragmented IP packets to bypass some firewalls. | |
| aggressive | No | Enables -A (OS detection, version detection, script scanning, and traceroute). | |
| output_name | No | Base filename to save results in all formats (.nmap, .xml, .gnmap). | |
| os_detection | No | Attempts to identify the target's operating system. | |
| service_version | No | Probes open ports to determine service/version info. | |
| version_intensity | No | Level of version detection (0-9). Default is 5. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |