Skip to main content
Two tools for browsing SMB shares interactively from Linux: the native Samba smbclient and the impacket smbclient.py. Both support password, NT hash, and Kerberos auth but with different syntax.

smbclient (native Samba)

The standard Samba tool. Available on every Kali/Parrot install. Use for quick share browsing, file transfer, and pass-the-hash.

Listing Shares

Connecting to a Share

Non-Interactive (Single Commands)

Interactive Session Commands

Useful Flags


smbclient.py (impacket)

The impacket equivalent. Useful when native smbclient isn’t available or when you need impacket’s Kerberos handling. Shares the same auth flags as the rest of impacket.

Connecting

Interactive Session Commands

Key Differences vs Native smbclient

Featuresmbclientsmbclient.py
NT Hash PTH--pw-nt-hash flag-hashes :NT
Kerberos-k (system ccache)-k -no-pass + KRB5CCNAME
Share selectionPath in URL (//ip/share)use ShareName command or -share flag
Recursive downloadrecurse on; mget *manual get per file
AvailabilityInstalled by defaultRequires impacket