Created
April 28, 2020 10:58
-
-
Save RobinDavid/5c819e838efc1a042a2355ecb545a66c to your computer and use it in GitHub Desktop.
Getting all problems in IDA Pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ida_ida | |
import ida_problems | |
import ida_idaapi | |
from enum import IntEnum | |
PrType = IntEnum("PrType", {x: getattr(ida_problems, x) for x in dir(ida_problems) if x.startswith("PR_") and x!="PR_END"}) | |
problems = {} | |
for pr in PrType: | |
ea = ida_ida.inf_get_min_ea() | |
problems[pr] = [] | |
while True: | |
ea = ida_problems.get_problem(pr.value, ea+1) | |
if ea == ida_idaapi.BADADDR: | |
break | |
else: | |
problems[pr].append(ea) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment