smbclient

smbclient is a command-line tool that allows you to interact with SMB (Server Message Block) file shares. Whether you’re uploading files, listing directories, or troubleshooting network shares, this tool is your go-to for SMB. Basic Usage To connect to an SMB file share, use the following syntax: smbclient //server/share [options] Replace server with the hostname or IP address of the server hosting the file share. Replace share with the name of the file share. Once connected, you will be prompted for credentials. After successful authentication, a command prompt will allow you to interact with the share. ...

December 14, 2024

SMBMap

Basic Syntax smbmap -u <username> -p <password> -H <host> [options] Common Usage Examples Connect with Null Password smbmap -u guest -p "" -d . -H 192.168.1.1 Connect as Admin with Password smbmap -u admin -p password123 -d . -H 192.168.1.1 Execute a Command smbmap -u admin -p password123 -d . -H 192.168.1.1 -x 'ipconfig' Connect to a Specific Drive smbmap -u admin -p password123 -d . -H 192.168.1.1 -r 'C$' Upload a File smbmap -u admin -p password123 -d . -H 192.168.1.1 --upload '/path/to/file.txt' 'C$\file.txt' Download a File smbmap -u admin -p password123 -d . -H 192.168.1.1 --download 'C$\file.txt' Enumerate a Specific Share smbmap -H 192.168.1.1 -s 'share_name' Enumerate Users smbmap -H 192.168.1.1 --users Key Options -u <username>: Specify the username. -p <password>: Specify the password. -H <host>: Specify the target host. -r <share>: Connect to a specific share or drive. -x <command>: Execute a command on the target. --upload <local_file> <remote_path>: Upload a file to the target. --download <remote_file>: Download a file from the target. -s <share>: Enumerate a specific share. --users: Enumerate users on the target. -R: Check for shares with full permissions. -p <port>: Specify a port. When to Use SMBMap Permission Audits: Quickly identify shares with read, write, or full access permissions. Command Execution: Execute remote commands on accessible shares. File Transfers: Upload or download files directly from SMB shares. User Enumeration: Discover user accounts configured on the target system.

December 14, 2024