Skip to content

Commit

Permalink
analyzer: quieten noisy debug output in pids_from_image_names()
Browse files Browse the repository at this point in the history
  • Loading branch information
kevoreilly committed Mar 19, 2024
1 parent 90ecacc commit 0037219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analyzer/windows/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ def pids_from_image_names(suffixlist):
for pid in pids:
h_process = KERNEL32.OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, False, pid)
if not h_process:
log.debug("kernel.OpenProcess failed for PID: %d", pid)
#log.debug("kernel32.OpenProcess failed for pid: %d", pid)
continue
n = PSAPI.GetProcessImageFileNameA(h_process, image_name, MAX_PATH)
KERNEL32.CloseHandle(h_process)
if not n:
log.debug("psapi.GetProcessImageFileNameA failed for PID: %d", pid)
#log.debug("psapi.GetProcessImageFileNameA failed for pid: %d", pid)
continue
image_name_pystr = image_name.value.decode().lower()
# e.g., image name: "\device\harddiskvolume4\windows\system32\services.exe"
Expand Down

0 comments on commit 0037219

Please sign in to comment.