# Enumeración de recursos compartidos

## Linux/Unix

### CrackMapExec

```shell
crackmapexec smb <target> -u <user> -p <password> --shares
crackmapexec smb <target> -u <user> -p <password> -M spider_plus --share "<path\sharename>"
```

### SMBMap

```shell
smbmap -H <target> -d <ACME.LOCAL> -u <user> -p <password>
smbmap -H <target> -d <ACME.LOCAL> -u <user> -p <password> -R --dir-only
smbmap -H <target> -d <ACME.LOCAL> -u <user> -p <password> -R "<path\sharename>"
```

## Windows

### PowerView

Recursos compartidos en hosts en el dominio actual.

```powershell
Invoke-ShareFinder -ExcludeStandard -ExcludePrint -ExcludeIPC
```

Archivos compartidos en hosts en el dominio actual.

```powershell
Invoke-FileFinder –Verbose
```

Obtener servidores de archivos en el dominio actual.

```powershell
Get-NetFileServer
```

### Snaffler

```shell
.\Snaffler.exe -s -d <ACME.LOCAL> -o snaffler.log -v data
```
