From 1b532a0b471a06402881a665e60e657cce72dff0 Mon Sep 17 00:00:00 2001 From: "Nick L. Petroni, Jr" Date: Fri, 23 Dec 2016 11:26:41 -0500 Subject: [PATCH] fix pdbscanner standalone utility -- scan() API changed --- development/pdbscanner.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/development/pdbscanner.py b/development/pdbscanner.py index a8f3d8ca8..b86730dcc 100644 --- a/development/pdbscanner.py +++ b/development/pdbscanner.py @@ -52,9 +52,14 @@ if __name__ == '__main__': print("[*] Scanning " + filename + "...") hits = scan(ctx, layername) if hits: - for (GUID, age, pdb_name, signature_offset, mz_offset) in hits: + for hit in hits: + GUID = hit["GUID"] + age = hit["age"] + pdb_name = hit["pdb_name"] + signature_offset = hit["signature_offset"] + mz_offset = hit["mz_offset"] print("[!] PDB Guess: %s/%s%d MZ=0x%x" % - (pdb_name.decode("utf-8"), GUID, age, mz_offset)) + (pdb_name, GUID, age, mz_offset)) else: print("[X] No kernel PDBs found") print()