Index of /~silvio/coding/graphing
Name Last modified Size Description
Parent Directory 30-Oct-2002 12:59 -
cfg/ 08-Oct-2002 13:18 -
flowgraph.tgz 19-Oct-2002 17:09 -
grapher_trace.sh 07-Oct-2002 20:42 1k
include_graph.py 07-Oct-2002 20:42 1k
cfg/
control flow graph of a binary given start/stop address.
scripted in python
flowgraph/
check it out. flowgraph-0.03 is the latest.
flowgraph-0.01/
call graph (cg) + control flow graph (cfg), for binaries.
clustering (bounded boxes) of procedures.
red edges are inter procedural control flow.
black lines are intra procedural control flow.
green lines are for information nodes (ie, procedures, entry point)
scripted in python.
twice the size of the earlier code tonight, but still trivial
size at ~160 lines.
python for rapid prototyping? seems that way, since my
python is shit :) in c, which admitidally, i was doing alot
more analysis with of binaries, this was taking multiple
thousands of lines. the python results are more visual though.
Nb. 15 minutes later.. I've forgotten that main() is
actually a function pointer passed to __libc_start_main, and
the flowgrapher does not follow indirect jumps. Thus, you have
a nice graph of the initialization code (crt*) of /bin/echo, but
not _most_ of /bin/echo.
oh well.. everyone's human ;-)
flowgraph-0.02/
check out the README in this directory. does what the above
code fails at. ie, static code recognition. solves the
above by recognizing _start and having configured that "main"
symbol is a function pointer that represents control
flow.
flowgraph-0.03/
adds some simple symbol resolution for plt entries