Can anyone let me know how we are going to output all the subroutine's graphs in batch mode suing IDC
. i.e. I have 447 subroutine's and wanna be output them all and I would like to make sure I first retrieve all the routines address automatically, cuz by knowing the address I can simply use GenFuncCall
.
P.S: Is this the only cfg that I can get from Ida Pro given a binary dis-assembled file?
相关问题
- x86 opcode encoding: sib byte
- Is it possible to decode x86-64 instructions in re
- Lua equivalent to Python dis()?
- How to enforce the assembler to emit code using us
- How to locate where an error arises in a “PackageM
相关文章
- x86 instruction encoding tables
- How to see the assembly code of a Python file? [cl
- Smashing the stack example3.c confusion
- In PHP, imagepng() accepts a filter parameter. How
- What is a good android disassember that can produc
- ILDASM and ILASM, how use them?
- Understanding disassembly of Dalvik code?
- Why can assembly instructions contain multiplicati
I needed a CFG of my whole program,the base example I started from was: https://code.google.com/p/idapython/source/browse/trunk/examples/ex_gdl_qflow_chart.py
It uses the flow chart class: https://www.hex-rays.com/products/ida/support/idapython_docs/idaapi.FlowChart-class.html
also worth noting to trigger in batch mode, you'll want something like this
Tips:
Opening of the graph processor can cause timing issues, its hacky, but something like delaying execution of the script seemed to help, e.g.
idaapi.autoWait() Timer(2, idacfg).start()
where idacfg is your python function from the example
print to stdout doesn't seem to work in batch mode, so you'll want to set stdout to a file for your debugging.
Hope that helps.
If you just want the address of all known functions in the IDB, you could use something like this using IDAPython (just an example):