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
- Password
- NT Hash
- Kerberos
- Null Session
Connecting to a Share
- Password
- NT Hash
- Kerberos
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
- Password
- NT Hash
- Kerberos
Interactive Session Commands
Key Differences vs Native smbclient
| Feature | smbclient | smbclient.py |
|---|---|---|
| NT Hash PTH | --pw-nt-hash flag | -hashes :NT |
| Kerberos | -k (system ccache) | -k -no-pass + KRB5CCNAME |
| Share selection | Path in URL (//ip/share) | use ShareName command or -share flag |
| Recursive download | recurse on; mget * | manual get per file |
| Availability | Installed by default | Requires impacket |