Generated Netcat Command
{{ shellLabel }}
{{ summaryLine }}
{{ implementationLabel }} {{ modeLabel }} {{ protocolLabel }} {{ hostBadge }} {{ portBadge }} {{ flagCount }} flags TLS fallback
This mirrors the command tab and keeps the primary artifact copyable from the summary.
{{ commandCopyStatus }}
Netcat command inputs
Pick one scenario, then edit host, port, shell, and implementation.
Choose the shell you will paste into; quoting, executable prefix, and continuation syntax follow this target.
Select OpenBSD nc, traditional netcat, Nmap ncat, or BusyBox nc.
Connect uses a remote host and port; Listen uses a local bind port.
Use a DNS name, IPv4/IPv6 address, or internal host you may test.
Enter one destination port, 1-65535, such as 80, 443, or 5432.
Enter the first port in the scan range, 1-65535.
Enter the last port in the scan range, 1-65535.
Choose an unused local listener port, for example 9000.
Turn on for datagrams such as DNS, syslog, or UDP reachability checks.
{{ udp ? 'On' : 'Off' }}
Short flags maximize compatibility; long flags are mainly for ncat.
Applies only to short flags; disabled automatically for long-flag output.
{{ combine_short_flags ? 'On' : 'Off' }}
Use for long POSIX, Bash/Zsh, fish, or PowerShell commands; CMD and Nushell stay single line.
{{ multiline && supportsMultilineShell ? 'On' : 'Off' }}
Example: sudo -E ncat or /usr/local/bin/nc.
Use 127.0.0.1 for local-only, 0.0.0.0 for all IPv4 interfaces.
Adds an IPv6 flag when supported; keep off for ordinary IPv4 targets.
{{ ipv6 ? 'On' : 'Off' }}
Useful for listeners that should accept repeated test clients.
{{ keep_open ? 'On' : 'Off' }}
Adds status output for troubleshooting connection and scan attempts.
{{ verbose ? 'On' : 'Off' }}
Use for reachability checks where no stdin payload should be sent.
{{ zero_io ? 'On' : 'Off' }}
Use with literal IPs when reverse DNS lookups would slow testing.
{{ numeric_only ? 'On' : 'Off' }}
Enter seconds; 0 omits a timeout and leaves implementation defaults.
sec
Enter seconds after stdin closes; 0 omits the close-delay flag.
sec
Bind outbound sockets to this local IP; leave blank for OS routing.
Use 0 for an ephemeral OS-chosen source port.
Leave disabled unless you intentionally need netcat exec behavior.
Example: /bin/sh, /usr/bin/env bash, or cmd.exe.
Turn on for HTTPS-style probes or TLS listeners; warnings show unsupported flags.
{{ use_tls ? 'On' : 'Off' }}
Requires ncat TLS support and trusted CA configuration.
{{ tls_verify ? 'On' : 'Off' }}
Path to a client certificate, for example ./client.crt.
Path to the matching private key, for example ./client.key.
Use decimal seconds; 0 sends without a generated delay flag.
sec
Ncat only; 0 leaves idle timeout unset.
sec
Ncat listener only; 0 leaves the connection count unlimited.
Proxy routing applies to outbound connect mode when supported.
Enter a proxy DNS name or IP when proxy type is not No proxy.
Use the listening port for the selected proxy, such as 8080 or 1080.
Format as user:password; it will be visible in the generated command.
Path for supported output logging, such as ~/captures/session.log.
Ncat only; pair with flows that should not transmit data.
{{ recv_only ? 'On' : 'Off' }}
Ncat only; use when stdin should be sent without reading replies.
{{ send_only ? 'On' : 'Off' }}
OpenBSD nc only; sends TCP shutdown when local input ends.
{{ shutdown_on_eof ? 'On' : 'Off' }}
Append only flags you have verified for the selected netcat variant.

                
Field Value Copy
{{ row.label }} {{ row.value }}

                
Customize
Advanced
:

Netcat commands are small network probes, listeners, and raw socket sessions. They are useful when a full client is too heavy for the job: test whether a port answers, capture a short payload, send a one-off request, listen for UDP traffic, or shape a quick tunnel through a proxy.

The difficult part is portability. The command name might be nc, netcat, ncat, or a BusyBox applet, and those variants do not share one flag set. Shells add another source of mistakes because Bash, PowerShell, Windows CMD, fish, and Nushell quote paths and arguments differently.

A generated line should be treated as a reviewed draft, not as permission to touch a host. Listener, scan, proxy, TLS, and execution flags can have very different effects on a production network. Use placeholders until the host, port, proxy, certificate path, and execution string have been approved for the environment where the command will run.

The browser prepares the command text and supporting review output. It does not open a socket, perform a scan, authenticate to a proxy, or verify that the local binary really matches the selected variant. The final test still belongs in the terminal and network where the command will be used.

How to Use This Tool:

Start with the network task, then make the command match the executable and shell you will actually use.

  1. Choose the closest Preset, or use Custom when the task does not match a saved scenario. Presets fill common connect, listen, scan, TLS, proxy, DNS, syslog, SMTP, LDAP, Redis, HTTP, and file-transfer shapes.
  2. Set Shell and Implementation early. Those choices control argument quoting, line continuations, supported flags, and whether long-form options can be emitted.
  3. Pick Connect to remote, Listen, or Port scan. Outbound and scan modes need a target host. Listener mode needs a local listen port. Scan mode needs a start and end port in the right order.
  4. Choose the transport and socket behavior: TCP or UDP, IPv6, verbose output, zero-I/O probing, numeric-only mode, timeout, quit-after-EOF delay, source address, source port, and listener bind address.
  5. Open Advanced for high-impact choices such as command execution, TLS, certificate verification, proxy routing, output logging, receive-only or send-only mode, shutdown-on-EOF, a custom binary prefix, and raw extra flags.
  6. Read errors first. Missing hosts, invalid ports, negative timing values, conflicting one-way modes, missing proxy details, or execution without a command must be fixed before the command is usable.
  7. Read warnings before copying. A warning usually means a requested feature was skipped or narrowed because the selected variant does not support it. Use Summary to confirm the final mode, target, protocol, TLS state, proxy path, execution state, and emitted flags.

Interpreting Results:

The Command tab is the text to review and paste. The Summary tab is usually the faster safety check because it separates the command into mode, target, timeout, TLS, proxy, logging, data direction, and flags. The JSON view is useful when a ticket or runbook needs the entered values and derived warnings kept together.

A clean command means the inputs satisfied the generator rules for the selected variant. It does not prove that the remote service is reachable, that UDP will return a visible reply, that certificate validation will succeed, or that the local nc binary accepts the same options.

  • Stop on Errors. The generated text is withheld or replaced by review text until the blocking field is corrected.
  • Treat Warnings as behavior changes. Unsupported TLS, proxy, logging, or one-way flags can make the final command less capable than the request you entered.
  • Check Extra args manually. Free-form flags are appended as written and are not validated against every variant.
  • For execution presets, confirm the execution row and command string before use. A listener that runs a program is a security-sensitive action, even in a lab.

Technical Details:

Netcat-style tools expose a small socket model through command-line flags. A command normally combines one role, one transport, one address family, optional timing behavior, and optional session shaping such as TLS, proxying, logging, or program execution.

The important technical distinction is not just TCP versus UDP. Variant support changes the legal command shape. Nmap ncat has the broadest support for long options, TLS, proxy authentication, one-way data flow, idle timeouts, and connection limits. OpenBSD nc, traditional netcat, and BusyBox nc cover many classic connect, listen, and scan tasks, but the exact flags differ.

Transformation Core:

Command transformation stages for the netcat command generator
Stage Rule Review point
Role Connect mode emits a target host and port, listen mode emits listener flags and a bind port, and scan mode emits a port range. The role must match the direction of the test before advanced flags matter.
Variant profile Each profile allows or suppresses flags for TLS, proxying, execution, logging, one-way data, keep-open listeners, and timing. A warning means at least one requested behavior did not survive compatibility filtering.
Transport and address family UDP and IPv6 add flags only when the selected profile exposes a matching option. UDP reachability is harder to prove than TCP because no reply is required by the protocol.
Session features TLS, certificate checks, proxy host and port, proxy credentials, logging, and execution are added after the base socket role is valid. Credentials and command strings appear in the copied command when entered.
Shell rendering Arguments are quoted and continued according to the selected shell. CMD stays one line, while Unix-like shells and PowerShell can use multi-line output. Review paths and credentials again after switching shells because quoting changes.

Variant Capability Map:

Modeled netcat variant capabilities and cautions
Profile Best fit Cautions in this generator
ncat TLS probes, proxy tunnels, proxy credentials, listener connection limits, idle timeout, explicit receive-only or send-only behavior, and long-form flags. STARTTLS-style protocol upgrades are represented as raw extra flags, so they need manual review.
OpenBSD nc Classic client, listener, UDP, IPv6, proxy, zero-I/O scan, keep-open listener, quit-after-EOF, and shutdown-on-EOF flows. Current OpenBSD manuals include more TLS detail than this conservative profile models.
Traditional netcat Older short-flag connect, listen, scan, timeout, numeric-only, source port, and program-execution patterns. TLS, proxy authentication, idle timeout, and one-way direction flags are not emitted.
BusyBox nc Small-system connect, listen, UDP, verbose, timeout, delay, source address, source port, hex dump, execution, and zero-I/O scan patterns. BusyBox builds are configurable, so the target device's help text remains the authority.

Validation Boundaries:

Validation boundaries used by the netcat command generator
Condition Result Why it matters
Blank outbound or scan target Blocking error The command cannot infer which host should receive a connection or probe.
Port outside 1 to 65535, or a scan end below the scan start Blocking error Socket endpoints and scan ranges must stay inside the valid TCP or UDP port space.
Negative timeout, delay, idle timeout, source port, or connection count Blocking error Timing and count values are numeric controls, not arbitrary argument text.
Both receive-only and send-only selected Blocking error A session cannot be both receive-only and send-only under the same one-way model.
Unsupported TLS, proxy, logging, or execution option Warning and skipped flag The output remains copyable, but it no longer contains every requested behavior.
Free-form extra flags Appended as written Useful for advanced flags, but portability and shell safety are left to the user.

Safety Notes:

Netcat can create listeners, send raw bytes, scan ports, route through proxies, and run programs after a connection opens. Those are normal administration and test-lab actions when authorized, but they can violate policy or expose a host when used casually.

  • Use listener bind addresses deliberately. 127.0.0.1 limits exposure to the local host, while 0.0.0.0 listens on all IPv4 interfaces.
  • Do not paste proxy credentials, certificate paths, or execution commands into shared tickets unless they are meant to be visible there.
  • Compare the generated command with the local manual or help output when the target system has a vendor-patched or minimal nc.

Worked Examples:

TLS probe through a proxy

Choose Proxy tunnel client, keep Implementation on ncat, enter the target host and port, then fill Proxy host and Proxy port. The Summary rows should show connect mode, TCP, TLS enabled, and a proxy route. If credentials are entered, the command will include them, so copy it only into a trusted terminal or note.

Small port scan with a conservative profile

Use Port scan sweep, set a narrow range such as 20 to 25, and choose the profile that exists on the target machine. The command should include zero-I/O scan behavior and the selected timeout when supported. If the Flags row omits a switch you expected, read the warning before deciding whether to switch profiles.

Listener with a blocked execution choice

A listener preset that enables execution but leaves Execute command blank triggers an error. Enter the exact program only when that behavior is approved, or set Execution to disabled. The useful result is not a half-built command. It is a review state that prevents accidental listener execution.

Raw STARTTLS flag under review

The SMTP or LDAP STARTTLS presets place protocol-specific text into Extra flags. That tail is appended after the modeled flags, so the Summary can confirm the host, port, timeout, and TLS state, but the extra protocol flag still needs to be checked against the actual ncat version before use.

FAQ:

Why does the same task produce a different command after I change the profile?

Each netcat variant accepts a different flag set. Switching between ncat, OpenBSD nc, traditional netcat, and BusyBox nc can add, remove, or rename flags for TLS, proxy routing, execution, logging, and one-way data flow.

Why is the command missing a TLS or proxy flag I selected?

The selected profile probably does not model that feature. Read Warnings; if the feature is required, switch to ncat or compare the generated line with the exact local help output.

Can I use the generated line as a production scan command?

Only after authorization and a final review. The tool can prepare a narrow scan range and timeout, but it cannot know network policy, rate limits, maintenance windows, firewall logging impact, or whether the destination owner approved the test.

Why are extra flags treated differently from other options?

Extra flags are appended exactly as typed so advanced users can add variant-specific switches. That flexibility means the generator cannot fully validate those tokens, and they should be checked manually before copying.

Does this page run netcat or contact the target host?

No. It builds command text and review output in the browser. The network action happens only if you copy the command into a terminal and run it yourself.

Glossary:

Client mode
Outbound netcat use where the command connects to a remote host and port.
Listener mode
Inbound netcat use where the command waits on a local port for a remote peer.
Zero-I/O scan
A probe that connects and closes without sending application payload data.
STARTTLS
A protocol upgrade that begins in plaintext and then switches to TLS after a service-specific command.
Proxy routing
Sending an outbound connection through an HTTP CONNECT or SOCKS proxy before reaching the target.
One-way data flow
A session mode where the command is meant to only receive bytes or only send bytes.

References: