smbclient - Cliente SMB
Descrición
Cliente para acceder a recursos compartidos SMB/CIFS.
Sintaxe básica
Opcións principais
| Opción | Descrición |
|---|---|
-N |
Sen contrasinal (null session) |
-U <usuario> |
Usuario para autenticación |
-p <porto> |
Porto SMB (por defecto: 445) |
-L <host> |
Listar recursos compartidos |
-c <comando> |
Executar comando e saír |
Exemplos de uso
# Listar recursos compartidos sen autenticación
smbclient -L //192.168.56.100 -N
# Conectar a recurso sen autenticación
smbclient //192.168.56.100/Server -N
# Conectar con usuario
smbclient //192.168.56.100/Share -U admin
# Executar comandos e saír
smbclient //192.168.56.100/Server -N -c "ls; get file.txt"
# Subir ficheiro
smbclient //192.168.56.100/Server -N
smb: \> put shell.php