impacket_smbclient
Enumerate available SMB shares on a target and list files within a specified share using provided credentials, including NTLM pass-the-hash support.
Instructions
Browse and interact with SMB shares using Impacket smbclient.
Enumerates available shares and optionally lists files within a specific share.
Args: target: Target IP address or hostname. domain: Domain name (use "." for local accounts). username: Username for authentication. action: Action to perform — "list_shares" (default) or "list_files". share: Share name for list_files action (e.g. "C$", "ADMIN$", "IPC$"). password: Password for authentication (redacted in logs). hashes: NTLM hash for pass-the-hash (format: LM:NT). Alternative to password. timeout: Override scan timeout in seconds.
Returns: SMB shares list or file listing within a specified share.
Note: - Target must be in tengu.toml [targets].allowed_hosts. - Requires valid credentials with appropriate share permissions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| share | No | ||
| action | No | list_shares | |
| domain | Yes | ||
| hashes | No | ||
| target | Yes | ||
| timeout | No | ||
| password | No | ||
| username | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||