mirror of
https://github.com/wavestone-cdt/EDRSandblast.git
synced 2026-06-08 16:37:12 +00:00
Added directions when the vulnerable driver does not unload correctly
This commit is contained in:
@@ -755,7 +755,11 @@ VOID EDRSB_CleanUp(_Inout_ EDRSB_CONTEXT* ctx) {
|
||||
BOOL status = UninstallVulnerableDriver();
|
||||
if (status == FALSE) {
|
||||
_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