SMBMap
SMBMap allows users to enumerate samba share drives across an entire domain. List share drives, drive permissions, share contents, upload/download functionality, file name auto-download pattern matching, and even execute remote commands.
Installation
Installation from https://github.com/ShawnDEvans/smbmap
Basic usage
# Enumerate network shares and access associated permissions.
smbmap -H $ip
# # Enumerate network shares and access associated permissions with recursivity
smbmap -H $ip -r
# Chack access and permissions level for a folder with recursion
smbmap -u $username -p $password -d $domain -H $ip -R $nameofFolder --dir-only
# --dir-only: provides only the output of all directories and did not list all files.
# Download a file from a specific share folder
smbmap -H $ip --download "folder\file.txt"
# Upload a file to a specific share folder
smbmap -H $ip --upload originfile.txt "targetfolder\file.txt"