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


smbcacls

Read and modify Windows DACLs on SMB shares from Linux. Useful for confirming write permissions before attempting ACL abuse or privilege escalation through share ACEs.

Syntax

The path is relative to the share root using backslashes. Use an empty string "" for the share root itself.

Flags

Reading ACLs

Reading the Output

ACE format: PRINCIPAL:TYPE/INHERITANCE_FLAGS/RIGHTS

What to Look for in Recon

IO on CREATOR OWNER is normal. It means the creator-owner ACE applies only to children they create, not the folder itself. Writing a file there does not grant you rights on the folder.