Files

890 lines
22 KiB
JSON

{
"_format": "scaffold_schema",
"_coverage": "partial: [--help, --version skipped; covers ncat (Nmap's netcat) which is the most feature-complete modern implementation]",
"tool": "ncat",
"binary": "ncat",
"description": "Ncat \u2014 concatenate and redirect sockets. Reads and writes data across network connections using TCP, UDP, or Unix domain sockets.",
"elevated": "optional",
"subcommands": null,
"arguments": [
{
"name": "Listen",
"flag": "--listen",
"short_flag": "-l",
"type": "boolean",
"description": "Listen for incoming connections instead of connecting to a remote host.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Mode",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Keep Open",
"flag": "--keep-open",
"short_flag": "-k",
"type": "boolean",
"description": "Accept multiple connections in listen mode. Must be used with --listen.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": "--listen",
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Mode",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Broker",
"flag": "--broker",
"short_flag": null,
"type": "boolean",
"description": "Enable connection brokering. Connects multiple clients together.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Mode",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Chat",
"flag": "--chat",
"short_flag": null,
"type": "boolean",
"description": "Enable simple chat mode. Implies --broker.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Mode",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Port",
"flag": "-p",
"short_flag": null,
"type": "integer",
"description": "Specify source port to use.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": 1,
"max": 65535,
"deprecated": null,
"dangerous": false
},
{
"name": "Source Address",
"flag": "--source",
"short_flag": "-s",
"type": "string",
"description": "Bind to a specific source address.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "UDP",
"flag": "--udp",
"short_flag": "-u",
"type": "boolean",
"description": "Use UDP instead of TCP.",
"required": false,
"default": null,
"choices": null,
"group": "protocol",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "SCTP",
"flag": "--sctp",
"short_flag": null,
"type": "boolean",
"description": "Use SCTP instead of TCP.",
"required": false,
"default": null,
"choices": null,
"group": "protocol",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Unix Socket",
"flag": "--unixsock",
"short_flag": "-U",
"type": "boolean",
"description": "Use Unix domain sockets instead of network sockets.",
"required": false,
"default": null,
"choices": null,
"group": "protocol",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "IPv4 Only",
"flag": "-4",
"short_flag": null,
"type": "boolean",
"description": "Use IPv4 only.",
"required": false,
"default": null,
"choices": null,
"group": "ip_version",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "IPv6 Only",
"flag": "-6",
"short_flag": null,
"type": "boolean",
"description": "Use IPv6 only.",
"required": false,
"default": null,
"choices": null,
"group": "ip_version",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Wait Timeout",
"flag": "--wait",
"short_flag": "-w",
"type": "integer",
"description": "Connection timeout in seconds. Also sets idle timeout with --idle-timeout.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": 0,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Idle Timeout",
"flag": "--idle-timeout",
"short_flag": null,
"type": "integer",
"description": "Idle read/write timeout in seconds.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": 0,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Proxy",
"flag": "--proxy",
"short_flag": null,
"type": "string",
"description": "Connect through a proxy. Format: host:port",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"proxy.example.com:8080"
],
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Proxy Type",
"flag": "--proxy-type",
"short_flag": null,
"type": "string",
"description": "Specify proxy type.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"http",
"socks4",
"socks5"
],
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Proxy Auth",
"flag": "--proxy-auth",
"short_flag": null,
"type": "string",
"description": "Proxy authentication credentials. Format: user:pass",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Execute",
"flag": "--exec",
"short_flag": "-e",
"type": "string",
"description": "Execute command and connect its stdin/stdout to the network.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"/bin/bash",
"/bin/sh",
"cmd.exe"
],
"display_group": "Execution",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Shell Execute",
"flag": "--sh-exec",
"short_flag": "-c",
"type": "string",
"description": "Execute command via /bin/sh and connect to network.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"echo hello",
"cat /etc/hostname"
],
"display_group": "Execution",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Lua Exec",
"flag": "--lua-exec",
"short_flag": null,
"type": "file",
"description": "Execute a Lua script.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Execution",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Max Connections",
"flag": "--max-conns",
"short_flag": "-m",
"type": "integer",
"description": "Maximum simultaneous connections in listen mode.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": "--listen",
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Mode",
"min": 1,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Zero IO",
"flag": "--send-only",
"short_flag": null,
"type": "boolean",
"description": "Only send data, don't receive. EOF on stdin causes the program to exit.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Data",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Receive Only",
"flag": "--recv-only",
"short_flag": null,
"type": "boolean",
"description": "Only receive data, don't send.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Data",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "No Shutdown",
"flag": "--no-shutdown",
"short_flag": null,
"type": "boolean",
"description": "Don't shutdown the socket after EOF on stdin.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Data",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "CRLF",
"flag": "--crlf",
"short_flag": "-C",
"type": "boolean",
"description": "Convert LF line endings to CRLF.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Data",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Output File",
"flag": "--output",
"short_flag": "-o",
"type": "file",
"description": "Dump session data to FILE.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Data",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Hex Dump",
"flag": "--hex-dump",
"short_flag": "-x",
"type": "file",
"description": "Dump session data to FILE in hex format.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Data",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Append Output",
"flag": "--append-output",
"short_flag": null,
"type": "boolean",
"description": "Append to output files rather than overwriting.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Data",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "SSL",
"flag": "--ssl",
"short_flag": null,
"type": "boolean",
"description": "Use SSL/TLS for the connection.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "SSL",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "SSL Certificate",
"flag": "--ssl-cert",
"short_flag": null,
"type": "file",
"description": "SSL certificate file.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "SSL",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "SSL Key",
"flag": "--ssl-key",
"short_flag": null,
"type": "file",
"description": "SSL private key file.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "SSL",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "SSL Verify",
"flag": "--ssl-verify",
"short_flag": null,
"type": "boolean",
"description": "Verify server SSL certificate.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "SSL",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "SSL Trust File",
"flag": "--ssl-trustfile",
"short_flag": null,
"type": "file",
"description": "CA certificate file for SSL verification.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "SSL",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Verbose",
"flag": "--verbose",
"short_flag": "-v",
"type": "boolean",
"description": "Verbose output.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": true,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Verbosity",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Allow",
"flag": "--allow",
"short_flag": null,
"type": "string",
"description": "Allow only connections from specified hosts/networks.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"192.168.1.0/24",
"10.0.0.1"
],
"display_group": "Access Control",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Deny",
"flag": "--deny",
"short_flag": null,
"type": "string",
"description": "Deny connections from specified hosts/networks.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Access Control",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Allowfile",
"flag": "--allowfile",
"short_flag": null,
"type": "file",
"description": "File of hosts/networks to allow.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Access Control",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Denyfile",
"flag": "--denyfile",
"short_flag": null,
"type": "file",
"description": "File of hosts/networks to deny.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Access Control",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Host",
"flag": "HOST",
"short_flag": null,
"type": "string",
"description": "Target hostname or IP address.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": [
"192.168.1.1",
"example.com",
"10.0.0.1",
"::1"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Port Arg",
"flag": "PORT",
"short_flag": null,
"type": "integer",
"description": "Target port number.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": null,
"display_group": null,
"min": 1,
"max": 65535,
"deprecated": null,
"dangerous": false
}
]
}