Fix up the dtbfinder output a little.

This commit is contained in:
Mike Auty
2016-02-22 01:54:19 +00:00
parent 7ba06d0448
commit 644a028ee4
+1 -2
View File
@@ -163,11 +163,10 @@ if __name__ == '__main__':
print("[*] Scanning...")
hits = scan(ctx, "data", tests)
print("[*] Results")
print(hits)
for key in tests:
arch_hits = hits.get(key.layer_type, [])
if arch_hits:
print(key.layer_type.__name__ + ": " + hex(min(arch_hits)[1]))
print(key.layer_type.__name__ + ": " + repr([hex(x[1]) for x in sorted(arch_hits)]))
print("[*] OS Guess")
guesses = []
for key in hits: