Enumerate Null Sessions

Check if Null Session, also known as Anonymous session, is enabled on the network. Can be very useful on a Domain Controller to enumerate users, groups, password policies, etc.

nxc smb -u '' -p ''
nxc smb -u '' -p '' --shares
nxc smb -u '' -p '' --pass-pol
nxc smb -u '' -p '' --users
nxc smb -u '' -p '' --groups

You can also reproduce this behavior with smbclient or rpcclient

smbclient -N -U "" -L \\
rpcclient -N -U "" -L \\
rpcclient $> enumdomusers
user:[bonclay] rid:[0x46e]
user:[zoro] rid:[0x46f]


Forest or Monteverde machines are good examples to test null session authentication with NetExec

Last updated