Win32 Instruction Tracer

A while back, I built an execution tracing / instruction tracing tool for 32-bit windows. It’s a pretty simple tool – it creates whatever process you tell it to create, and attaches to it as a debugger. Then, it reads through the executable to figure out some information about the process, and then fiddles with memory protection and single step to capture each instruction executed by the target process:

screencap-phantasm

By default, it traces only the instructions of the “main executable” that you pass it, but you can configure it to trace everything from the executable’s starting point, with “-a”:

screencap-dasha

(highlighted part is not from test.exe, works for any module not just windows stuff)

This little tool has mostly been sitting in my projects folder, gathering dust – but I’ve released it incase someone finds it useful. You can find it at:

https://github.com/CreateRemoteThread/phantasm

About Norman

Sometimes, I write code. Occasionally, it even works.
This entry was posted in Computers, Jesting. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s