CatalogGTFOBins

GTFO · Tool

mv

5 techniquesLinuxGTFOBinsGPL-3.0

file-write

File WritePrivilege EscalationLinux
echo DATA >/path/to/temp-file
mv /path/to/temp-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
file-write
MITRE
T1565

file-write

File WritePrivilege EscalationLinux
echo DATA >/path/to/temp-file
mv /path/to/temp-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
suid
Native
file-write
MITRE
T1565

file-write

File WriteLinux
echo DATA >/path/to/temp-file
mv /path/to/temp-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
file-write
MITRE
T1565

privilege-escalation

Privilege EscalationLinux

This can be used to move and then read or write files from a restricted file systems or with elevated privileges.

mv /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
privilege-escalation
MITRE
T1548

privilege-escalation

Privilege EscalationLinux

This can be used to move and then read or write files from a restricted file systems or with elevated privileges.

mv /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
suid
Native
privilege-escalation
MITRE
T1548