Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Commit 63f31e7

Browse files
author
Michael Ligh
committed
handle cases where a service's ImagePath is REG_MULTI_SZ
in the observed case, the ImagePath was REG_MULTI_SZ but all strings except the first were blank/empty, so they should be safe to discard
1 parent 76685db commit 63f31e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

volatility/plugins/malware/svcscan.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,9 @@ def get_service_info(regapi):
530530

531531
image_path = regapi.reg_get_value(hive_name = "system", key = "", value = "ImagePath", given_root = subkey)
532532
if image_path:
533+
# this could be REG_SZ or REG_MULTI_SZ
534+
if isinstance(image_path, list):
535+
image_path = image_path[0]
533536
path_value = utils.remove_unprintable(image_path)
534537

535538
failure_path = regapi.reg_get_value(hive_name = "system", key = "", value = "FailureCommand", given_root = subkey)

0 commit comments

Comments
 (0)