I have a registry text dump like below
[HKLM\CurrentControlSet\somerandomthing]
[HKLM\CurrentControlSet\somerandomthing\somerandomsub]
"key1"=hex(7)"1234aa\
123451234567788\
124123412341234
1243"
"key2":C:\randomlocaltioninmydrive
"key3"-somerandomstuffwithanyoutput
this goes on for days, multiple duplicates, multiple different key value pair types.
How can i put this data into a pandas dataframe similar to the below output
Path Type Key Value
HKLM\CurrentControlSet\somerandomthing\somerandomsub hex(7) key1 1234aa1234512345677881241234123412341243
HKLM\CurrentControlSet\somerandomthing\somerandomsub N/A key2 C:\randomlocaltioninmydrive
HKLM\CurrentControlSet\somerandomthing\somerandomsub N/A key3 somerandomstuffwithanyoutput
I have attempted to use configparser.rawconfigparser to no avail. This dataset is a raw hklm.txt file from the registry dump on a windows box.