smbclient
Connect to Windows SMB shares to browse, download, and upload files, with support for anonymous sessions.
Instructions
SMB/CIFS client — connects to Windows file shares for browsing, downloading, and uploading files. Use to access SMB shares with or without credentials (anonymous/null session). For SMB vulnerability scanning, use nmap or crackmapexec. For automated share enumeration, use enum4linux. Output: directory listings, file contents, or confirmation of upload/download.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| opts | No | Additional smbclient options | |
| user | No | Username for authentication. Omit for anonymous/null session. | |
| share | No | Share name (e.g. 'C$', 'IPC$', 'shared'). Leave empty to list shares. | |
| target | Yes | Target IP or hostname | |
| command | No | SMB command to execute (e.g. 'ls' to list, 'get file.txt' to download) | |
| password | No | Password for authentication |