NetExec SMB Logged-On Users

Enumerate currently logged-on users on remote hosts

Tool
nxc
Category
Enumeration / SMB
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>' --loggedon-users

Credential variants

The same attack using a different authentication material.

NTLM Hash requires NTLM hash

nxc smb '<ip>' -u '<user>' -H '<hash>' --loggedon-users

Kerberos Ticket requires Kerberos ticket

nxc smb '<ip>' -u '<user>' --use-kcache --loggedon-users

Examples

nxc smb '192.168.1.0/24' -u 'user' -p 'password' --loggedon-users

Tags

nxc smb logged-on sessions enumeration