Skip to content

Long RegBinary value cause str(bytearray) #89

Description

@Tiaonmmn

When I use library to parse Windows AppCompatCache which is a RegBinary item in Python 3.7 environemnt,it returns a strd bytearray.
For example:

reg = open=Registry.Registry("/tmp/tempfile/im_3_k5cdo_p4_/Windows/System32/config/SYSTEM").open("ControlSet001\\Control\\Session Manager\\AppCompatCache")
value1=open.value("AppCompatCache")
print("AppCompatCache is %s" % value1.value())
print("type is %s"%open.value("AppCompatCache").value_type_str())

value1 is "bytearray(b'\xee)".... it's a string not a true bytearray object.
And it appears on all long RegBinary values.Short values are returning bytes objects well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions