smbmap

SMB enumeration tool.

TLDR

Display SMB shares and permissions on a host, prompting for user's password or NTLM hash

$ smbmap -u [username] --prompt -H [ip]
copy

Display SMB shares and permissions on a host, specifying the domain and passing the password NTLM hash

$ smbmap -u [username] --prompt -d [domain] -H [ip]
copy

Display SMB shares and list a single level of directories and files

$ smbmap -u [username] --prompt -H [ip] -r
copy

Display SMB shares and recursively list a defined number of levels of directories and files

$ smbmap -u [username] --prompt -H [ip] -R --depth [3]
copy

Display SMB shares and recursively list directories and files, downloading the files matching a regular expression

$ smbmap -u [username] --prompt -H [ip] -R -A [pattern]
copy

Display SMB shares and recursively list directories and files, searching for file content matching a regular expression

$ smbmap -u [username] --prompt -H [ip] -R -F [pattern]
copy

Execute a shell command on a remote system

$ smbmap -u [username] --prompt -H [ip] -x [command]
copy

Upload a file to a remote system

$ smbmap -u [username] --prompt -H [ip] --upload [source] [destination]
copy

Copied to clipboard
free 100$ digital ocean credit