scan_host_ports
Scans a target host to identify open ports and running services, assessing potential security vulnerabilities.
Instructions
端口扫描 - 真实检测主机开放的端口和服务
功能说明
对目标主机进行端口扫描,识别开放的端口和运行的服务。 如果系统安装了 nmap 会自动使用,否则使用 Python socket 扫描。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | 目标主机IP或域名 | |
| ports | No | 端口列表,如 [22, 80, 443];不填则扫描常见端口 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |