smbmap
Enumerate SMB share permissions and access
TLDR
List shares on host
$ smbmap -H [192.168.1.100]
Authenticate with credentials$ smbmap -H [192.168.1.100] -u [user] -p [password]
List share contents$ smbmap -H [192.168.1.100] -u [user] -p [password] -r [share]
Download file$ smbmap -H [192.168.1.100] -u [user] -p [password] --download '[share/file.txt]'
Execute command$ smbmap -H [192.168.1.100] -u [admin] -p [password] -x '[whoami]'
SYNOPSIS
smbmap [options]
DESCRIPTION
smbmap enumerates SMB share permissions and contents. Security tool for authorized penetration testing and share auditing. Shows read/write access levels and enables file operations.
PARAMETERS
-H host
Target host.-u user
Username.-p pass
Password.-d domain
Domain.-r share
Recursively list share.--download path
Download file.--upload src dst
Upload file.-x cmd
Execute command.-L
List drives.
CAVEATS
For authorized security assessments only. Requires proper authorization before use.
SEE ALSO
smbclient(1), enum4linux(1)
