mirror of
https://github.com/gentilkiwi/mimikatz
synced 2024-12-12 00:56:34 +00:00
Fix on normal DPAPI unprotect
This commit is contained in:
parent
10c317014e
commit
f7c4ccbe3f
@ -472,7 +472,7 @@ BOOL kuhl_m_dpapi_unprotect_raw_or_blob(LPCVOID pDataIn, DWORD dwDataInLen, LPWS
|
|||||||
|
|
||||||
if(!status && ((masterkey && masterkeyLen) || isNormalAPI))
|
if(!status && ((masterkey && masterkeyLen) || isNormalAPI))
|
||||||
{
|
{
|
||||||
status = kull_m_dpapi_unprotect_raw_or_blob(pDataIn, dwDataInLen, ppszDataDescr, (pOptionalEntropy && dwOptionalEntropyLen) ? pOptionalEntropy : entropy, (pOptionalEntropy && dwOptionalEntropyLen) ? dwOptionalEntropyLen : entropyLen, pPrompt, CRYPTPROTECT_SYSTEM | (pPrompt ? 0 : CRYPTPROTECT_UI_FORBIDDEN), pDataOut, dwDataOutLen, masterkey, masterkeyLen, szPassword);
|
status = kull_m_dpapi_unprotect_raw_or_blob(pDataIn, dwDataInLen, ppszDataDescr, (pOptionalEntropy && dwOptionalEntropyLen) ? pOptionalEntropy : entropy, (pOptionalEntropy && dwOptionalEntropyLen) ? dwOptionalEntropyLen : entropyLen, pPrompt, /*CRYPTPROTECT_SYSTEM |*/ (pPrompt ? 0 : CRYPTPROTECT_UI_FORBIDDEN), pDataOut, dwDataOutLen, masterkey, masterkeyLen, szPassword);
|
||||||
if(status && masterkey && masterkeyLen)
|
if(status && masterkey && masterkeyLen)
|
||||||
kuhl_m_dpapi_oe_masterkey_add(&blob->guidMasterKey, masterkey, masterkeyLen);
|
kuhl_m_dpapi_oe_masterkey_add(&blob->guidMasterKey, masterkey, masterkeyLen);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user