-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with crypto::cng #273
Comments
If still relevant, try this again with the latest mimikatz code (binaries at https://ci.appveyor.com/project/gentilkiwi/mimikatz) Updates to make crypto::cng work on more recent versions of Win10 x64 were merged a few days ago in PR #362 |
mimikatz # privilege::debug mimikatz # crypto::cng When exporting non-exportable keys getting error : ERROR kull_m_crypto_exportPfx ; PFXExportCertStoreEx/kull_m_file_writeData (0x8009000b) mimikatz 2.2.0 (arch x64) |
@patrikcze Try with my fork of Mimikatz (there is a later PR #413 with more updates for crypto::cng that has not been merged yet) |
@hubert3 , where can I download built binaries of your fork ? There are no releases in your fork. (I'm not experinced in building from sources). Can you please? |
@hubert3 , Thank you very much!!!!!! Your version works for me - even on Windows 11 22H2 with all the latets M$ updates!!! (export of non-exportable cert was successful) |
@wwwilq glad it works for you Can you send me the output of mimikatz 'version' command and your system32\ncryptprov.dll DLL version? On my Win11 22H2 test system with build 22621 (arch x64) and DLL version is 10.0.22621.1635 an updated patch was required for crypto::cng succeed This patch is now added to my outstanding pull request and the EXE release in my fork |
@hubert3 My system32\ncryptprov.dll DLL version is 10.0.22000.1165 (sorry, I mis-informed you, - it is not from the latest April's security update, but just from February's one). |
@hubert3 , and one more correction - my system is Windows 11 21H2 (NOT 22H2) - I mixed up everything, sorry. |
Thanks for the info - When you update to Windows 11 x64 22H2 with the latest updates as of today, it should still work with the latest mimikatz release exe on my fork |
Hello, tested @hubert3 updated binary against 21H2 where version of ncryptprov.dll is 10.0.19041.2193 and got same error as in first post.
tried updating to 22H2 with no effect, hash for ncryptprov.dll :
any tips on troubleshooting this? |
Hi @vcepela, my binary works for me on Win10 22H2 with this exact version of the DLL Try disabling Defender / any other AV / Credential Guard |
Hello,
I am trying to pull a certificate needed to connect to the wifi from a unni laptop and transfer it to my phone to get access to the wifi. When trying to export the certificate with the private key I keep trying to use crypto::cng and it shows this message "ERROR kull_m_patch_genericProcessOrServiceFromBuild ; OpenProcess (0x00000005)" any ideas on how to fix it and export the certificate with the key?
And when trying to export it with "crypto::certificates /export" it gives this response: Private export : ERROR kull_m_crypto_exportPfx ; PFXExportCertStoreEx/kull_m_file_writeData (0x8009000b).
Does the crypto::cng effect the private export not working??
The text was updated successfully, but these errors were encountered: