NetExec SSH Command Exec

Spray a command across many SSH targets. Faster than scripting ssh in a loop and inherits all of nxc's threading + output formatting.

Tool
nxc
Category
Enumeration / SSH
Platform
linux
Requires
password
Protocols
SSH

Open in Command Manager

Syntax

Angle-bracket tokens are placeholders — replace them with your target's values, or open this command in the app to fill them in and copy the result.

nxc ssh <target> -u '<user>' -p '<password>' -x '<command>'

Credential variants

The same attack using a different authentication material.

Key-Based Auth requires no credentials

nxc ssh <target> -u '<user>' --key-file <private-key> -x '<command>'

Custom Port requires password

nxc ssh <target> -u '<user>' -p '<password>' --port 2222 -x '<command>'

Examples

nxc ssh 10.10.10.0/24 -u root -p 'Password123!' -x id

Tags

netexec nxc ssh exec