Shares
WINDOWS
NET
net share # Check current shares
net view /all /domain[:domainname] # Shares on the domain
net view \computer /ALL # List shares of a computer
net use x: \\computer\share # Mount the share locallySnaffler
Snaffler is a tool for finding credentials and sensitive data in Active Directory. It scans domain hosts for shared, readable directories and searches for valuable files. It must run from a domain-joined host or a domain-user context. [LINK]
Snaffler Execution
Snaffler.exe -s -d militech.local -o snaffler.log -v dataLINUX
CrackMapExec
Share Enum
sudo crackmapexec smb 13.13.13.13 -u sol -p PASSWORD123 --sharesSpider Share
sudo crackmapexec smb 13.13.13.13 -u sol -p PASSWORD123 -M spider_plus --share 'Agent Shares'SMBMap
Check Access
smbmap -u sol -p PASSWORD123 -d MILITECH.LOCAL -H 13.13.13.13Recursive List of All Dirs
smbmap -u sol -p PASSWORD123 -d MILITECH.LOCAL -H 13.13.13.13 -R 'IT Shares' --dir-onlyLast updated