Skip to content

bfosterjr/ufgraph

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

ufgraph.py


ufgraph.py is a simple script which parses the output of the uf (un-assemble function) command in windbg and uses graphviz to generate a control flow graph as a PNG/SVG/PDF/GIF (see -of option) and displays it

Please note, that some additional options (eg: /c) to the uf command are not supported and will likely break the output parsing or graph rendering.

Requirements


Usage


From within windbg, simply run the script using the .shell command as follows:

.shell -ci "uf ntdll!rtlinsertentryhashtable" c:\python27\python.exe ufgraph.py

It is also possible to build a call graph at your current instruction pointer (EIP/RIP) and have ufgraph highlight the this basic block as follows:

.shell -ci "r $ip; uf $ip" c:\python27\python.exe ufgraph.py

It is also possible to output multiple call graphs for each frame in the call stack as follows:

.shell -ci "!for_each_frame \"r $scopeip; uf $scopeip\"" python.exe ufgraph.py -sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages