-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README. Add HOWTO for TTD trace generation
- Loading branch information
Simon Garrelou
committed
May 30, 2022
1 parent
49c4a24
commit e53ae5f
Showing
8 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# How to record a TTD trace using WinDBG | ||
|
||
This short tutorial will guide you through using WinDBG to record a Time Travel Debugging trace to be used with this plugin. | ||
|
||
You will need the following prerequisites: | ||
|
||
- A copy of WinDBG Preview [[Microsoft Store link](https://apps.microsoft.com/store/detail/windbg-preview/9PGJGD53TN86)] | ||
- A copy of the executable you are trying to debug | ||
|
||
Then, open up WinDBG Preview and go to "File -> Launch executable (advanced)". Select your executable and make sure to enable "Record with Time Travel Debugging". | ||
|
||
 | ||
|
||
 | ||
|
||
WinDBG will then ask you for a path where to store the recording. You can store them wherever you want, but be aware that the recording is made up of three different files, and can quickly become important in size. | ||
|
||
Once this is done, click "Record". | ||
|
||
 | ||
|
||
WinDBG will then record the executable's actions and give you back control after some time. Once this is done, you can safely close WinDBG! Your recording will be in a `*.run` file in the folder you chose. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,35 @@ | ||
# ttddbg | ||
Time Travel Debugging IDA plugin | ||
# ttddbg - Time Travel Debugging IDA plugin | ||
|
||
Build | ||
This plugin adds a new debugger to IDA which supports loading [Time Travel Debugging](https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/time-travel-debugging-overview) traces generated using WinDBG Preview. | ||
|
||
 | ||
|
||
This plugin supports both x86 and x64 traces, and by extension IDA and IDA64. | ||
|
||
## Installation | ||
|
||
Installing the plugin can be done using the installer from the [releases page](releases). The installer will automatically install the required dependencies, provided you have a copy of [WinDBG Preview](https://apps.microsoft.com/store/detail/windbg-preview/9PGJGD53TN86) installed. | ||
|
||
## Usage | ||
|
||
Once installed, you can use the plugin by selecting the `ttddbg` debugger in the IDA interface, and specifying your `*.run` file as the "Application". For help on generating a `.run` file, see [`HOWTO_TIME_TRAVEL.md`](HOWTO_TIME_TRAVEL.md). | ||
|
||
 | ||
|
||
 | ||
|
||
## Building the project | ||
|
||
Prerequisites: | ||
|
||
- A copy of the IDA SDK (available from the [download center](https://hex-rays.com/download-center/) using your IDA Pro credentials) | ||
- A copy of `TTDReplay.dll` (usually in `C:\Program Files\WindowsApps\[WinDBG folder]\amd64\ttd\`) | ||
- A copy of `TTDReplayCPU.dll` (usually in `C:\Program Files\WindowsApps\[WinDBG folder]\amd64\ttd\`) | ||
|
||
``` | ||
git clone [email protected]:airbus-cert/ttddbg.git --recursive | ||
mkdir build | ||
cd build | ||
cmake ..\ttddbg -DIDA_SDK_SOURCE_DIR=[PATH_TO_IDA_SDK_ROOT_FOLDER] -DCPACK_PACKAGE_INSTALL_DIRECTORY="IDA Pro 7.7" | ||
cmake --build . --target package --config release | ||
$ git clone [email protected]:airbus-cert/ttddbg.git --recursive | ||
$ mkdir build | ||
$ cd build | ||
$ cmake ..\ttddbg -DIDA_SDK_SOURCE_DIR=[PATH_TO_IDA_SDK_ROOT_FOLDER] -DCPACK_PACKAGE_INSTALL_DIRECTORY="IDA Pro 7.7" | ||
$ cmake --build . --target package --config release | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.