Skip to main content
2 of 5
added 90 characters in body
OneAndOnly
  • 518
  • 4
  • 15

Get a networkx graph from the the call-graph of the file using IDApython?

Is there any easy way to get a call graph of a binary program using IDApython then convert it to a networkx graph other than going through every function and constructing the call-graph ourselves? considering that IDA does has a nice way of generating call graph itself, the problem is i dont know how to interact with it using iDApython, for example saving it as a networkx graph or checking which nodes are library calls and which are local and such.

i remember IDA had a method to extract the call graph in a weird format and i couldn't convert it to networkx. its important for me to get a networkx graph because many python packages use this format.

OneAndOnly
  • 518
  • 4
  • 15