Hey ppl,
Last night I needed to quickly figure out the program flow of a program I was debugging, to help myself I made this little gem
I took the stackwalker code from the code project, links and descriptions are in the source. I believe the code is licensed but I don't really care about such things.
What is this shit?
You inject this tool into another process using a dll injector, in a config file you specify the function and the corresponding module to walk the stack from. This tool will hook the function you specified and dump the functions called before it into a .txt file. You can specify multiple functions at a time. It's possible to get duplicate stackwalks if functions are recursive or if two functions you're monitoring call each other.
Sources
There are allot of em, so I'll post them in a rar and link it. inside you'll also find a compiled example that you can inject into any process.
Extract on your C drive!
Dll injector not included
The example looks for the config file in C:/asd/config/sw.txt
It'll post all it's logs as C:/asd/***.txt
The current configuration hooks and logs all calls to the Process32Next and First functions (needed to patch an executable that was scanning for debuggers...)
https://www.virustotal.com/file/8583...is/1341423369/
Stack_walk.rar - Jotti's malware scan