Skip to content

Instantly share code, notes, and snippets.

@RobinDavid
Created April 28, 2020 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobinDavid/5c819e838efc1a042a2355ecb545a66c to your computer and use it in GitHub Desktop.
Save RobinDavid/5c819e838efc1a042a2355ecb545a66c to your computer and use it in GitHub Desktop.
Getting all problems in IDA Pro
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