Skip to content

Commit

Permalink
Adds support for REG_MULTI_SZ vtype in custom module
Browse files Browse the repository at this point in the history
  • Loading branch information
eemperor committed Aug 2, 2024
1 parent 9890433 commit f3ebed8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _modules/win_lgpo_ash.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def __init__(self):
"REG_DWORD": "REG_DWORD",
"SZ": "REG_SZ",
"REG_SZ": "REG_SZ",
"MULTISZ": "REG_MULTI_SZ",
"REG_MULTI_SZ": "REG_MULTI_SZ",
},
"hives": {
"COMPUTER": "Machine",
Expand Down Expand Up @@ -512,6 +514,8 @@ def _buildKnownDataSearchString(
this_element_value = struct.pack(b"Q", int(reg_data))
elif reg_vtype == "REG_SZ":
this_element_value = _encode_string(reg_data)
elif reg_vtype == "REG_MULTI_SZ":
this_element_value = _encode_string(reg_data)
return b"".join(
[
"[".encode("utf-16-le"),
Expand Down

0 comments on commit f3ebed8

Please sign in to comment.