
Exploit for CVE-2022-30206
This is the PoC for CVE-2022-30206.
Perform the following operations to arbitrary file deletion:
addprinter.exe to create a printer and set the SpoolDirectory in C:\Users\Public\tmp\1.FileLock.exe TargetFile to redirect .SHD file to TargetFile and set a oplock on TargetFile.openprinter.exe to make the printer work, which will trigger the oplock, then release the oplock, the TargetFile will be deleted.