LinuxCommandLibrary

nxc-smb

performs SMB protocol operations for security testing

TLDR

Check SMB access

$ nxc smb [192.168.1.0/24] -u [user] -p [password]
copy
Enumerate shares
$ nxc smb [target] -u [user] -p [password] --shares
copy
Enumerate users
$ nxc smb [target] -u [user] -p [password] --users
copy
Execute command
$ nxc smb [target] -u [admin] -p [password] -x [whoami]
copy
Pass the hash
$ nxc smb [target] -u [user] -H [NTLM_hash]
copy

SYNOPSIS

nxc smb target [options]

DESCRIPTION

nxc smb performs SMB protocol operations for security testing. Part of NetExec (formerly CrackMapExec). Enumerates shares, users, and tests credentials across networks.

PARAMETERS

-u user

Username.
-p pass
Password.
-H hash
NTLM hash.
--shares
Enumerate shares.
--users
Enumerate users.
-x cmd
Execute command.
--sam
Dump SAM database.
--lsa
Dump LSA secrets.

CAVEATS

For authorized security assessments only. Requires proper authorization.

SEE ALSO

nxc(1), smbclient(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community