
PrintNightmare, Escalada de Privilegios Local de CVE-2021-1675 o CVE-2021-34527
Exploit LPE simple de CVE-2021-1675
CVE-2021-1675-LPE.exe C:\test\MyPigDLL.dll
MyPigDLL.dll,es un DLL de prueba que creará C:\test.txt si tiene éxito.
EnumPrinterDriversW para obtener pDriverPath, así que no necesitamos cambiar la "ruta del controlador hardcodeada" cada vezpDriverPath en Windows Server 2008 esinfo.pDriverPath = (LPWSTR)L"C:\\Windows\\System32\\DriverStore\\FileRepository\\ntprint.inf_amd64_neutral_4616c3de1949be6d\\Amd64\\UNIDRV.DLL";
No puedo obtener esta ruta mediante EnumPrinterDriversW, por lo tanto cambie info.pDriverPath en el código fuente si desea probar este exploit en Windows Server 2008
En algunas situaciones también tiene algunos errores... por favor depure con el código fuente aproximado : )
Prueba exitosa en :
Microsoft Windows Server 2012 R2 Datacenter [版本 6.3.9600]
Microsoft Windows 10 专业版 [版本 10.0.19041.685]
Microsoft Windows Server 2008 R2 Enterprise [版本 6.1.7601]