the_open_door
coffee
ESEN
← Tools

smbclient

SMB client to list and access shares.

The Samba suite's SMB client. It lists shares and browses them like an FTP (ls, get, put, mget). It is the direct way to read and write shares once you have credentials, or to test anonymous/guest access.

Family SMB, NetBIOS & RPC

Flags -N -L //<ip>/

Concepts Credential reuse

Cheatsheet SMB · 139 / 445

Installation

sudo apt install -y smbclient

Useful commands5 commands

When it fails

  • Unable to connect with SMB1 -- no workgroup availableIt is the workgroup listing, which smbclient retries over SMB1 when the server no longer speaks it. It does not mean the null session failed: the anonymous login can be accepted (Anonymous login successful) while listing shares is denied. They are two different permissions.seen in Forest

Appears in

Some machines where its use is documented; not an exhaustive list.