Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-1675 PoC — Microsoft Windows Print Spooler Components 安全漏洞

Source
Associated Vulnerability
Title:Microsoft Windows Print Spooler Components 安全漏洞 (CVE-2021-1675)
Description:Microsoft Windows Print Spooler Components是美国微软(Microsoft)公司的一个打印后台处理程序组件。 Microsoft Windows Print Spooler Components存在安全漏洞。以下产品和版本受到影响:Windows 10 Version 1809 for 32-bit Systems,Windows 10 Version 1809 for x64-based Systems,Windows 10 Version 1809 for AR
Description
PrintNightmare , Local Privilege Escalation of CVE-2021-1675 or CVE-2021-34527
Readme
# CVE-2021-1675-LPE-EXP
**Simple LPE Exploit of CVE-2021-1675** 

## Usage

```
CVE-2021-1675-LPE.exe C:\test\MyPigDLL.dll
```

`MyPigDLL.dll`,is a test DLL which will create `C:\test.txt` if succeed

## Notice

1. Add `EnumPrinterDriversW` for get `pDriverPath`, so We dont need change the "hardcode Driver path" everytime
2. Dont need to work with RPC or SMB and this exploit will just directly load the dll which you provided
3. The `pDriverPath` at Windows Server 2008 is

```
info.pDriverPath = (LPWSTR)L"C:\\Windows\\System32\\DriverStore\\FileRepository\\ntprint.inf_amd64_neutral_4616c3de1949be6d\\Amd64\\UNIDRV.DLL";
```

I cant get this Path via `EnumPrinterDriversW`, so change the `info.pDriverPath` in source code if you want to test this exploit at Windows Server 2008 


-----
In some situation its also has some bug... plz debug with the rough source code  : )



Test Successed in  :

```
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]
```
File Snapshot

[4.0K] /data/pocs/d05c61ce6ed7b245b88d7e3ef0d65ee7838d3697 ├── [4.0K] CVE-2021-1675-LPE │   ├── [1.3K] CVE-2021-1675-LPE.APS │   ├── [2.5K] CVE-2021-1675-LPE.cpp │   ├── [1.2K] CVE-2021-1675-LPE.rc │   ├── [7.3K] CVE-2021-1675-LPE.vcxproj │   ├── [1.2K] CVE-2021-1675-LPE.vcxproj.filters │   ├── [ 168] CVE-2021-1675-LPE.vcxproj.user │   └── [ 396] resource.h ├── [1.4K] CVE-2021-1675-LPE.sln ├── [1.1K] README.md └── [4.0K] release ├── [124K] CVE-2021-1675-LPE.exe └── [ 89K] MyPigDLL.dll 2 directories, 11 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.