mirror of
https://github.com/wavestone-cdt/EDRSandblast.git
synced 2026-06-11 01:41:20 +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
|
_putts_or_not(TEXT("[+] Using the vulnerable driver to disable CI...")); // debug print
|
||||||
ULONG CiOptionsValue = 0;
|
ULONG CiOptionsValue = 0;
|
||||||
PULONG OldCiOptionsValue;
|
ULONG OldCiOptionsValue;
|
||||||
patch_gCiOptions(g_CiOptionsAddress, CiOptionsValue, &OldCiOptionsValue);
|
patch_gCiOptions(g_CiOptionsAddress, CiOptionsValue, &OldCiOptionsValue);
|
||||||
LPTSTR evilServiceNameIfAny = NULL;
|
LPTSTR evilServiceNameIfAny = NULL;
|
||||||
BOOL isEvilDriverAlreadyRunning = IsDriverServiceRunning(unsignedDriverPath, &evilServiceNameIfAny);
|
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("[!] An error occurred while installing the evil driver"));
|
||||||
}
|
}
|
||||||
_putts_or_not(TEXT("[+] Using the vulnerable driver to reset original CI status")); // debug print
|
_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 {
|
else {
|
||||||
@@ -766,7 +766,6 @@ Other options:\n\
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// END WIP
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user