nmap_xml_scan
Run port scans with Nmap and get structured XML results containing hosts, ports, services, and OS guesses—ready for direct use in penetration testing without regex parsing.
Instructions
Port scan with XML output — returns fully structured host/port/service data. Unlike nmap_port_scan (raw text), this parses XML into structured dicts so findings, services, and OS guesses are immediately usable without regex. targets: IPs/ranges/hostnames (space-separated) ports: '1-65535', '22,80,443', or 'top100' scan_type: 'auto' (sS if root else sT), 'sS', 'sT' timing: T0-T5 service_detection: include -sV service version probing (default True) Returns: structured dict with hosts[], each containing ports[], services, os[]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ports | No | 1-1000 | |
| timing | No | T4 | |
| targets | Yes | ||
| scan_type | No | auto | |
| service_detection | No |