LinuxCommandLibrary

smbmap

Enumerate SMB share permissions and access

TLDR

List shares on host

$ smbmap -H [192.168.1.100]
copy
Authenticate with credentials
$ smbmap -H [192.168.1.100] -u [user] -p [password]
copy
List share contents
$ smbmap -H [192.168.1.100] -u [user] -p [password] -r [share]
copy
Download file
$ smbmap -H [192.168.1.100] -u [user] -p [password] --download '[share/file.txt]'
copy
Execute command
$ smbmap -H [192.168.1.100] -u [admin] -p [password] -x '[whoami]'
copy

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community