mirror of
https://github.com/wavestone-cdt/EDRSandblast.git
synced 2026-06-10 17:31:23 +00:00
Fix lsass pid retrieval
use MAXIMUM_ALLOWED instead of PROCESS_QUERY_INFORMATION
This commit is contained in:
@@ -87,7 +87,7 @@ DWORD SandFindProcessPidByName(TCHAR* targetProcessName, DWORD* pPid) {
|
|||||||
*pPid = 0;
|
*pPid = 0;
|
||||||
|
|
||||||
while (*pPid == 0) {
|
while (*pPid == 0) {
|
||||||
status = NtGetNextProcess(hProcess, PROCESS_QUERY_INFORMATION, 0, 0, &hProcess);
|
status = NtGetNextProcess(hProcess, MAXIMUM_ALLOWED, 0, 0, &hProcess);
|
||||||
|
|
||||||
if (status == STATUS_NO_MORE_ENTRIES) {
|
if (status == STATUS_NO_MORE_ENTRIES) {
|
||||||
_tprintf_or_not(TEXT("[-] The process '%s' was not found\n"), targetProcessName);
|
_tprintf_or_not(TEXT("[-] The process '%s' was not found\n"), targetProcessName);
|
||||||
|
|||||||
Reference in New Issue
Block a user