Yes, there are SMB (Server Message Block) clients that support "pass the hash" (PTH) authentication, where you authenticate using a hashed password (e.g., an NTLM or LM hash) instead of a plaintext password. This is commonly used in penetration testing, red teaming, or security research scenarios, but it's not a feature in most standard, everyday SMB clients (like Windows' net use or the basic Linux smbclient) due to security implications.
I'll explain the options below, including how to use them. Note: PTH can be a security risk if misused, as it often involves stolen hashes. Use these tools ethically and legally (e.g., in controlled environments or with permission). Always ensure you're complying with laws like those around unauthorized access.
Recommended SMB Clients with PTH Support
Here are some reliable tools that support PTH over SMB:
-
Impacket (smbclient.py) - Best Overall Choice
-
pth-smbclient (from PTH-Toolkit)
-
CrackMapExec (CME)
-
Metasploit Framework (via Modules)
- Description: The popular pentesting framework has modules like
auxiliary/scanner/smb/smb_login or exploit/windows/smb/psexec that support PTH for SMB authentication and interaction.
- Platforms: Linux, macOS, Windows.
- Installation: Install Metasploit (e.g., via Kali Linux or
msfconsole).
- Usage Example:
- In
msfconsole: use exploit/windows/smb/psexec, set SMBUser, SMBPass (as hash), and run.
- This can give you a shell or allow file ops over SMB.
- Why It's Great: Integrates with a full exploit framework.
- Limitations: Overkill for simple SMB access; steeper learning curve.
Important Considerations
- Hash Formats: Most tools expect NTLM hashes in the format
LMHASH:NTHASH (LM is often blank or all zeros in modern systems). Tools like Hashcat or John the Ripper can help extract/convert hashes.
- SMB Versions and Security: PTH works best on older SMBv1 (disabled by default in modern Windows for security reasons). For SMBv2/3, ensure the tool supports it (Impacket does). Also, watch for SMB signing requirements, which can block PTH.
- Alternatives if PTH Isn't Needed: If you just need a standard SMB client without hashes, use:
- Linux:
smbclient (from Samba).
- Windows:
net use or PowerShell's New-PSDrive.
- Legal/Ethical Note: PTH is often associated with attacks (e.g., after dumping hashes via Mimikatz). Only use on systems you own or have explicit permission for.
- Troubleshooting:
- Firewall issues: Ensure port 445 (SMB) is open.
- Errors: Common issues include hash mismatches or SMB version incompatibilities. Check tool logs.
- If you're on Windows, tools like Mimikatz can facilitate PTH natively for local ops, but for remote SMB, stick to the above.
If none of these fit your needs (e.g., you need something GUI-based or for a specific OS), provide more details about your setup, and I can suggest alternatives!