GithubHelp home page GithubHelp logo

calebstewart / cve-2021-1675 Goto Github PK

View Code? Open in Web Editor NEW
969.0 969.0 232.0 132 KB

Pure PowerShell implementation of CVE-2021-1675 Print Spooler Local Privilege Escalation (PrintNightmare)

PowerShell 98.96% C++ 0.64% C 0.40%

cve-2021-1675's People

Contributors

calebstewart avatar johnhammond avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cve-2021-1675's Issues

Windows 10 Version 20H2

I ran the program on Windows 10 20H2 and I was presented with an error.

Invoke-Nightmare : [!] AddPrinterDriverEx failed.

Error

PS C:\Users\test\Desktop\CVE-2021-1675-main\CVE-2021-1675-main> Invoke-Nightmare -NewUser "Berk" -NewPassword "TestBerk"
[+] created payload at C:\Users\test\AppData\Local\Temp\103\nightmare.dll
[+] using pDriverPath = "C:\Windows\System32\DriverStore\FileRepository\ntprint.inf_amd64_3138b2c823dd1ea9\Amd64\mxdwdrv.dll"
Invoke-Nightmare : [!] AddPrinterDriverEx failed
At line:1 char:1

  • Invoke-Nightmare -NewUser "Berk" -NewPassword "TestBerk"
  •   + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Nightmare
    

win 10 19042 - not working

works perfectly on win 10 - 18363.592 domain controlled pc

but not working on Version 10.0.19042.1052 tested on 3 different pc.

Invoke-Nightmare : [!] AddPrinterDriverEx failed

Hi!
thanks for the poweshell implementation!
I have a problem with exploit which outputs the following:
Invoke-Nightmare : [!] AddPrinterDriverEx failed At line:1 char:1

  • Invoke-Nightmare -DLL "C:\CVE-2021-1675\adduser.dll" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Nightmare

trying on windows server 2016 with print spooler enabled.

Would you recommend anything I could do to resolve this? Thanks!

Creation of user fails if password complexity not respected

The log says everything is fine
image
but the user is not created, because the password was not policy compliant.
There should be a check if the user is really created or just the exploit has run (I saw that the DLL code contains no check on user creation and adding to the group).

User is created but not in AdminGroup

Hello,

user

tryed on Win10 1803 (17134) and 21H1 (19043)

If I do the script local it works , but remote via meterpreter shell it stops here:

remote_0_1
remote_0_2

remote_0

remote_1
remote_2

user_group1
user_group2

How to get it work ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.