Run Smbmap
run_smbmapEnumerate SMB/SAMBA shares across a domain, inspect permissions and contents, transfer files, search data, and execute remote commands using credentials, hashes, or null sessions.
Instructions
SMBMap allows users to enumerate SAMBA share drives across an entire domain. It can list share permissions, drive contents, upload/download files, and execute remote commands. Tags: network, security, pentest, enumeration, exploitation, authentication, smb
Usage Guide:
Null Session: Provide only the
target.Authenticated: Provide
username,password_or_hash, and optionallydomain.Pass-the-Hash: Provide the NTLM hash (LM:NT format) in the
password_or_hashfield.Enumeration: Use
recursiveanddepthto crawl shares. Useshareto focus on one.File Ops: Use
download_pathfor exfiltration orupload_local/upload_remotefor transfers.Searching: Use
auto_download_pattern(regex) to grab matching files orsearch_content_patternto grep inside files.Execution: Use
execute_commandwithexec_mode("wmi" or "psexec") for remote code execution.
Warnings:
This tool can perform exploitation and authentication attempts which may be logged or trigger alerts.
File deletion is destructive. Use
delete_pathwith caution.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>"
},
"name": "run_smbmap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Maximum recursion depth (default: 3). | |
| share | No | Specific share name to enumerate (e.g., "C$", "SYSVOL"). | |
| domain | No | Active Directory domain or WORKGROUP (default: WORKGROUP). | WORKGROUP |
| target | Yes | IP address or hostname of the target server. | |
| verbose | No | Enable verbose output (useful for OS versioning). | |
| username | No | Username for authentication. | |
| exec_mode | No | Execution method, either "wmi" (default) or "psexec". | wmi |
| recursive | No | Boolean to recursively list directories and files. | |
| admin_check | No | Check if the current credentials have administrative privileges. | |
| delete_path | No | Remote path of a file to delete (Caution: Destructive). | |
| search_path | No | The share/path to search within for content (default: C$). | C$ |
| upload_local | No | Local path of a file to upload. | |
| check_signing | No | Check SMB signing requirements and OS version. | |
| download_path | No | Remote path of a file to download. | |
| upload_remote | No | Remote destination path for the uploaded file. | |
| execute_command | No | Command to execute on the remote host. | |
| password_or_hash | No | Plaintext password or NTLM hash (LMHASH:NTHASH). | |
| auto_download_pattern | No | Regex pattern to find and download matching files automatically. | |
| search_content_pattern | No | String pattern to search for inside file contents. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |