致谢 https://github.com/TurtleARM
安装 Ubuntu-22.04.5-live-server-iso 并完整安装该版本,但不要更新系统
在安装了 Ubuntu 24.04.5 的虚拟机上安装 Linux 内核版本 6.1.6
安装以下二进制包以编译内核
build-essential libncurses-dev bison flex libssl-dev libelf-dev bc libmnl-dev libnftnl-dev
将此仓库中的 config 文件复制到内核根目录,然后使用以下命令构建内核
make oldconfig
make -j$(npoc)
sudo make modules_install
sudo make install, if kernel does not show in /boot, try again.
sudo update-grub to update boot manager
reboot, and select the vul kernel
在虚拟机中进入克隆的 POC 目录,运行以下命令:
make needle
最后,运行编译后的二进制文件,获取 root 权限!! ^