Skip to content

Instantly share code, notes, and snippets.

@extremecoders-re
Created October 29, 2022 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save extremecoders-re/0f5568b3cfb30e3cfcaf1e5822272a68 to your computer and use it in GitHub Desktop.
Save extremecoders-re/0f5568b3cfb30e3cfcaf1e5822272a68 to your computer and use it in GitHub Desktop.
Compiling TinyInst on Windows

TinyInst is a lightweight dynamic instrumentation library that can be used to instrument only selected module(s) in the process, while leaving the rest of the process to run natively. It is meant to be easy to understand, easy to hack on and easy to hack with. It is not designed to be compatible with all targets (more on that later).

https://github.com/googleprojectzero/TinyInst

git clone https://github.com/googleprojectzero/TinyInst
cd TinyInst\third_party
rmdir /s mbuild
rmdir /s xed
git clone https://github.com/intelxed/mbuild
git clone https://github.com/intelxed/xed

Open a Visual Studio Developer Command Prompt. If cmake is not available, download CMake zip from https://cmake.org/download/ and use the absolute path to cmake.exe in the below commands

cd TinyInst
mkdir build
cd build
cmake -G "Visual Studio 16 2019" -A x64 ..
cmake --build . --config Release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment