Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Export function analysis info #18

Open
radare opened this issue Jun 15, 2019 · 2 comments
Open

Export function analysis info #18

radare opened this issue Jun 15, 2019 · 2 comments

Comments

@radare
Copy link
Owner

radare commented Jun 15, 2019

tgtEA = idaapi.askaddr(0, "Enter target address")
if tgtEA is None:
  exit

f = idaapi.get_func(tgtEA)
if not f:
  print "No function at 0x%x" % (tgtEA)
  exit

fc = idaapi.FlowChart(f)

for block in fc:
  if block.startEA <= tgtEA:
    if block.endEA > tgtEA:
      print "0x%x is part of block [0x%x - 0x%x)" % (tgtEA, block.startEA, block.endEA)
@ITAYC0HEN
Copy link
Collaborator

why? We already use function_start and function_length

@radare
Copy link
Owner Author

radare commented Jun 16, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants