nmblookup

Discover SMB shares. More information: <https://www.samba.org/samba/docs/current/man-html/nmblookup.1.html>.

Install

All systems
curl cmd.cat/nmblookup.sh
Debian Debian
apt-get install samba-common-bin
Ubuntu
apt-get install samba-common-bin
Arch Arch Linux
pacman -S smbclient
image/svg+xml Kali Linux
apt-get install samba-common-bin
CentOS
yum install samba4-client
Fedora
dnf install samba-client-2
Windows (WSL2)
sudo apt-get update sudo apt-get install samba-common-bin
Raspbian
apt-get install samba-common-bin

Discover SMB shares. More information: <https://www.samba.org/samba/docs/current/man-html/nmblookup.1.html>.

  • Find hosts in the local network with SMB shares:
    nmblookup -S '*'
  • Find hosts in the local network with SMB shares run by SAMBA:
    nmblookup --status __SAMBA__

© tl;dr; authors and contributors