LinuxCommandLibrary

nxc

netExec, a network service exploitation tool

TLDR

SMB authentication check

$ nxc smb [target] -u [user] -p [password]
copy
Enumerate shares
$ nxc smb [target] -u [user] -p [password] --shares
copy
Execute command
$ nxc smb [target] -u [user] -p [password] -x "[command]"
copy
Scan multiple hosts
$ nxc smb [targets.txt] -u [user] -p [password]
copy
Use hash for auth
$ nxc smb [target] -u [user] -H [hash]
copy

SYNOPSIS

nxc [protocol] [target] [options]

DESCRIPTION

nxc is NetExec, a network service exploitation tool. Successor to CrackMapExec.
The tool tests credentials across networks. Used for penetration testing.

PARAMETERS

PROTOCOL

Protocol module (smb, ssh, ldap, etc.).
TARGET
Target host or file.
-u USER
Username.
-p PASSWORD
Password.
-H HASH
NT hash for pass-the-hash.
--shares
Enumerate shares.
-x COMMAND
Execute command.
--help
Display help information.

CAVEATS

Security tool. Authorized use only. Successor to CrackMapExec.

HISTORY

NetExec was created as the successor to CrackMapExec for network penetration testing.

SEE ALSO

nmap(1), impacket(1), metasploit(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community