mirror of
https://github.com/wavestone-cdt/EDRSandblast.git
synced 2026-06-10 09:27:19 +00:00
Added directions when the vulnerable driver does not unload correctly
This commit is contained in:
@@ -887,7 +887,7 @@ Dump options:\n\
|
|||||||
status = UninstallVulnerableDriver();
|
status = UninstallVulnerableDriver();
|
||||||
if (status == FALSE) {
|
if (status == FALSE) {
|
||||||
_putts_or_not(TEXT("[!] An error occured while attempting to uninstall the vulnerable driver"));
|
_putts_or_not(TEXT("[!] An error occured while attempting to uninstall the vulnerable driver"));
|
||||||
_tprintf_or_not(TEXT("[*] The service should be manually deleted: cmd /c sc delete %s\n"), GetDriverServiceName());
|
_tprintf_or_not(TEXT("[*] The service should be manually deleted and the computer restarted. Use: cmd /c sc delete %s\n"), GetDriverServiceName());
|
||||||
lpExitCode = EXIT_FAILURE;
|
lpExitCode = EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -755,7 +755,11 @@ VOID EDRSB_CleanUp(_Inout_ EDRSB_CONTEXT* ctx) {
|
|||||||
BOOL status = UninstallVulnerableDriver();
|
BOOL status = UninstallVulnerableDriver();
|
||||||
if (status == FALSE) {
|
if (status == FALSE) {
|
||||||
_putts_or_not(TEXT("[!] An error occured while attempting to uninstall the vulnerable driver"));
|
_putts_or_not(TEXT("[!] An error occured while attempting to uninstall the vulnerable driver"));
|
||||||
_tprintf_or_not(TEXT("[*] The service should be manually deleted: cmd /c sc delete %s\n"), GetDriverServiceName());
|
_tprintf_or_not(TEXT("[*] Executing: cmd /c sc delete %s\n"), GetDriverServiceName());
|
||||||
|
TCHAR cmd[MAX_PATH] = { 0 };
|
||||||
|
wsprintf(cmd, TEXT("cmd /c sc delete %s"), GetDriverServiceName());
|
||||||
|
_wsystem(cmd);
|
||||||
|
_putts_or_not(TEXT("[!] Please restart the machine for the uninstallation to be complete"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user