#!/usr/bin/python import sys import os import struct import hivex h = hivex.Hivex ("windows-2003-server-system", write = True) assert h root = h.root () assert root # Get \WPA\PnP node node = h.node_get_child (root, "WPA") node = h.node_get_child (node, "PnP") # Get 'seed' which is a dword value. val = h.node_get_value (node, "seed") data = h.value_value (val) print "\\WPA\\PnP\\seed:" print "type =", data[0] print ("val = 0x%x" % struct.unpack ("