I need to create a python script which would take a number of binaries one by one(from a file, or from command line) which would automate the process of loading the binaries into IDA Pro and dumping the reversed code related to the Control Flow Graph.
More exactly, I have a number of binaries, I want to load them automatically to IDA pro, get the CFG and dump the code related to the CFG only into a .txt file.
It is a very small printing script, just needs to print the right piece of the code. I need it to be done as soon as possible.