pentesting, updated

SMB enumeration

Enumerate shares, users, groups and null-session access on an SMB service.

Goal

Map what an SMB service exposes to anonymous and authenticated users: shares, users, groups, and password/lockout policy.

How to test

smbclient -L //10.10.10.5 -N                    # list shares, no credentials (null session)
smbmap -H 10.10.10.5 -u anonymous                # shares plus read/write permissions per share
enum4linux-ng -A 10.10.10.5                      # full sweep: see [enum4linux-ng](/docs/pentest-cheatsheets/tools/network/enum4linux-ng)
rpcclient -U "" -N 10.10.10.5                     # interactive null session for manual queries
nmap --script smb-enum-shares,smb-enum-users -p445 10.10.10.5

What to look for

A null session that lists shares or users at all, a share writable by anonymous/guest, or a password policy with no lockout threshold.

Notes

SMB signing being disabled is a separate finding worth checking alongside this — it is what makes NTLM relay attacks against this host possible.

References

§ home
~/knubertus/home/
1,1 Top