SMBMap allows users to enumerate [samba](../web/Samba.md) 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. This tool was designed with pen testing in mind, and is intended to simplify searching for potentially sensitive data across large networks.
| `-L` | List all drives on the specified host, requires ADMIN rights. |
| `-r [PATH]` | Recursively list dirs and files (no share\path lists the root of ALL shares), ex. 'email/backup' |
| `-A PATTERN` | Define a file name pattern ([regex](../../tools/Regex.md)) that auto downloads a file on a match (requires `-r`), not case sensitive, |
| `-g FILE` | Output to a file in a grep friendly format, used with `-r` (otherwise it outputs nothing) |
| `--csv FILE` | Output to a [CSV](../../files/CSV.md) file |
| `--dir-only` | List only directories, ommit files. |
| `--no-write-check` | Skip check to see if drive grants WRITE access. |
| `-q` | Quiet verbose output. Only shows shares you have READ or WRITE on, and suppresses file listing when performing a search. |
| `--depth DEPTH` | Traverse a directory tree to a specific depth. (Default: 5) |
| `--exclude SHARE [SHARE ...]` | Exclude share(s) from searching and listing |
#### File Content Search
Options for searching the content of files (must run as root), kind of experimental