🟢NetBIOS 139
sudo nmap -sT -sU -sV -p135,137,138,139,445 --open <IP>Enumerate shares
OS Discovery
Enumerate Users
All
NULL / Anonymous Login
# On some configuration omitting '-N' will grant access.
smbclient -U '' -L \\\\<IP>
smbclient -U '' -N -L \\\\<IP>
smbclient -U '%' -N -L \\\\<IP>
smbclient -U '%' -N \\\\<IP>\\<Folder>
# Enter a random username with no password and try for anonymous login.
crackmapexec smb <IP> -u 'anonymous' -p ''
crackmapexec smb <IP> -u '' -p ''
crackmapexec smb <IP> -u '' -p '' --sharesCrackmapexec
Last updated