nmap_scan
Scan a target to discover open ports, running services, and software versions with Nmap, supporting custom scan types, timing profiles, OS detection, and NSE scripts.
Instructions
Scan a target for open ports, services, and versions using Nmap.
IMPORTANT: Available parameters are: target, ports, scan_type, timing, os_detection, scripts, timeout. There is NO 'flags' parameter — use scan_type for scan technique and scripts for NSE scripts.
Args: target: IP address, hostname, CIDR range, or URL to scan. ports: Port specification (e.g. "80", "22-443", "22,80,443", "1-65535"). scan_type: Scan technique — syn (stealthy), connect (no root), udp, version (service detection), ping (host discovery), fast (top 100). timing: Nmap timing template T0 (paranoid) to T5 (insane). Default: T3. os_detection: Enable OS fingerprinting (-O). Requires root/sudo. scripts: Comma-separated nmap script names (e.g. "http-title,ssl-cert"). timeout: Override default scan timeout in seconds.
Returns: Structured scan results with hosts, ports, services, and raw nmap output.
Note: - SYN scan (-sS) requires root/sudo privileges. - OS detection (-O) requires root/sudo privileges. - Target must be in tengu.toml [targets].allowed_hosts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ports | No | 1-1024 | |
| target | Yes | ||
| timing | No | T3 | |
| scripts | No | ||
| timeout | No | ||
| scan_type | No | connect | |
| os_detection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||