def dump_file_hashes(syshive_fname, sechive_fname): sysaddr = hive.HiveFileAddressSpace(syshive_fname) secaddr = hive.HiveFileAddressSpace(sechive_fname) for (u, d, dn, hashh) in dump_hashes(sysaddr, secaddr): print("{0}:{1}:{2}:{3}".format(u.lower(), hashh.encode('hex'), d.lower(), dn.lower()))
def dump_file_hashes(syshive_fname, samhive_fname): sysaddr = hive.HiveFileAddressSpace(syshive_fname) samaddr = hive.HiveFileAddressSpace(samhive_fname) return dump_hashes(sysaddr, samaddr)
def get_file_secrets(sysfile, secfile): sysaddr = hive.HiveFileAddressSpace(sysfile) secaddr = hive.HiveFileAddressSpace(secfile) return get_secrets(sysaddr, secaddr)