Nmap service detection

From automateyournetwork/netclaw · View interactive version

Nmap service detection is an AI agent skill from the GitHub repository automateyournetwork/netclaw. Service fingerprinting, OS detection, NSE script execution, and vulnerability scanning using nmap MCP. Use when identifying services on open ports, fingerprinting OS versions, running NSE scripts for SSL or SMB checks, or scanning for known CVEs and vulnerabilities

How to use this skill

Skill file

Service Detection & Vulnerability Scanning with nmap

How to Call the nmap MCP Tools

python3 $MCP_CALL "python3 -u $NMAP_MCP_SCRIPT" TOOL_NAME '{"param":"value"}'

When to Use

Available Tools

| Tool | Purpose | Privileges |

|------|---------|-----------|

| nmap_service_detection | Service name + version on open ports (-sV) | none |

| nmap_os_detection | OS fingerprinting (-O) | cap_net_raw |

| nmap_script_scan | Run specific NSE scripts | none |

| nmap_vuln_scan | Run the "vuln" NSE script category | none |

| nmap_full_recon | SYN + service + OS + default scripts all-in-one | cap_net_raw |

Workflow: Service Identification

When asked "what's running on this host?" or "identify the services":

Step 1: Service Version Detection

python3 $MCP_CALL "python3 -u $NMAP_MCP_SCRIPT" nmap_service_detection '{"target":"192.168.1.1","ports":"common","intensity":7}'

Returns per-port: service name, product, version, CPE identifier.

Step 2: OS Fingerprinting

python3 $MCP_CALL "python3 -u $NMAP_MCP_SCRIPT" nmap_os_detection '{"target":"192.168.1.1"}'

Works best when the target has at least one open and one closed port.

Workflow: Security Assessment

When asked "check this host for vulnerabilities" or "security scan":

Step 1: Full Recon

Run the all-in-one audit sweep:

python3 $MCP_CALL "python3 -u $NMAP_MCP_SCRIPT" nmap_full_recon '{"target":"192.168.1.1","ports":"common"}'

This combines SYN scan + service detection + OS fingerprinting + default NSE scripts.

Step 2: Vulnerability Scan

Run the vuln NSE category for known CVEs:

python3 $MCP_CALL "python3 -u $NMAP_MCP_SCRIPT" nmap_vuln_scan '{"target":"192.168.1.1","ports":"common"}'

This is slow — use on specific targets, not wide ranges.

Step 3: Targeted Script Scans

Run specific NSE scripts for focused checks:

# SSL certificate inspection
python3 $MCP_CALL "python3 -u $NMAP_MCP_SCRIPT" nmap_script_scan '{"target":"192.168.1.1","scripts":"ssl-cert,ssl-enum-ciphers","ports":"443"}'

# HTTP title + headers
python3 $MCP_CALL "python3 -u $NMAP_MCP_SCRIPT" nmap_script_scan '{"target":"192.168.1.1","scripts":"http-title,http-headers","ports":"80,443,8080"}'

# Banner grabbing
python3 $MCP_CALL "python3 -u $NMAP_MCP_SCRIPT" nmap_script_scan '{"target":"192.168.1.1","scripts":"banner","ports":"1-1024"}'

# SMB enumeration
python3 $MCP_CALL "python3 -u $NMAP_MCP_SCRIPT" nmap_script_scan '{"target":"192.168.1.1","scripts":"smb-enum-shares,smb-os-discovery","ports":"445"}'

Tool Parameters

nmap_service_detection

nmap_os_detection

nmap_script_scan

nmap_vuln_scan

nmap_full_recon

Common NSE Script Names

| Script | Purpose |

|--------|---------|

| ssl-cert | Display SSL certificate details |

| ssl-enum-ciphers | List supported SSL/TLS ciphers |

| http-title | Grab HTML page title |

| http-headers | Dump HTTP response headers |

| http-methods | Check supported HTTP methods |

| banner | Grab service banners |

| smb-enum-shares | Enumerate SMB shares |

| smb-os-discovery | Discover OS via SMB |

| ssh-hostkey | Show SSH host keys |

| dns-brute | DNS subdomain brute force |

| ftp-anon | Check for anonymous FTP |

Output Format

All tools return structured JSON:

Important Rules

Failure Behavior

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.