Run Netcat Client
run_netcat_clientConnect to a target host and port to scan open ports, grab service banners, send local files, or establish reverse-shell connections.
Instructions
Netcat (nc/ncat) is a versatile networking tool used for port scanning, banner grabbing, and establishing client connections for data transfer or remote shells. Tags: network, security, pentest, shell, transfer, enumeration, scanning
Usage Guide:
Port Scanning: Set
scan=Trueto check if ports are open without sending data.Banner Grabbing: Connect to a
targetandportwithverbose=Trueto identify services.Reverse Shell: Provide
target(attacker IP) andport(attacker listener) along withexec_shell(e.g., '/bin/bash' or 'cmd.exe') to initiate a reverse connection.File Transfer (Send): Provide
file_to_sendto transmit a local file to a remote listener.Secure Connection: Set
use_ssl=Trueto connect to an Ncat SSL-enabled listener.
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": "run_netcat_client"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Destination port or port range (e.g., "80", "1-1000"). | |
| scan | No | If True, uses -z for zero-I/O mode (useful for scanning). | |
| target | Yes | Target IP address or hostname. | |
| use_ssl | No | If True, uses 'ncat' with SSL encryption. | |
| verbose | No | Enables verbose output. | |
| exec_shell | No | Path to executable for bind/reverse shell (e.g., /bin/bash). | |
| file_to_send | No | Path to a local file to send to the target. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |