tcp/139 smb

> ngrep -i -d tun0 's.?a.?m.?b.?a.*[[:digit:]]'
> smbclient -L \\\\ip -N
  • new smbclient doesn’t support old protocols, to enable
# edit /etc/samba/smb.conf under `global`
client min protocol = LANMAN1

> service smbd restart
> smbclient -L \\\\{target-ip}\\ -U {user_name}
  • Recurse all content under share
> smbmap -u {user} -p {pass} -H {target-ip} -d {target.domain} -R

Exploits