port_check
Check if a TCP port is open on a target host and retrieve the service banner to identify running services or firewall policies.
Instructions
Check if a TCP port is open and optionally grab service banner.
Use this tool to verify if a service is listening on a port, check firewall rules, or identify what service is running on a port.
Args: target: Hostname or IP address to check port: TCP port number to check (1-65535) timeout: Connection timeout in seconds (default: 5) grab_banner: Whether to attempt to grab service banner (default: True)
Returns: Port status (open/closed), response time, and optional service banner
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>",
"port": "<port>"
},
"name": "port_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| port | Yes | ||
| timeout | No | ||
| grab_banner | No |