Exploring KAPE’s Graphical User Interface in v0.8.2.0

The latest version of KAPE (0.8.2.0) includes several updates, including improvements to the ConsoleLog, automatic sync options with the KapeFiles GitHub repository, and much more. 

One of the most exciting enhancements is in the graphical user interface, which can be accessed via gkape.exe included in the KAPE download package. This post will provide you with an overview as well as instructions to get started today.

(The full changelog is included in the KAPE package, which you can download here. If you’ve already downloaded KAPE, use the same download link included in the confirmation email.)

Wrapping KAPE in a graphical interface

Gkape.exe starts a graphical interface that wraps the command line version of KAPE. It expects to be:

  1. executed from the same directory as the main KAPE executable (kape.exe) and
  2. run with administrator privileges.

Beyond running KAPE, gkape.exe contains an editor for Target and Module configurations, including automatic validation of configuration files. This enables you to start with an existing template, make some adjustments and then save the updated configuration to a new name.

Gkape.exe looks like this when launched:

Exploring KAPE’s Graphical User Interface in v0.8.2.0

The interface consists of several sections, which are explained in greater detail below. At the top of each main section are checkboxes for Use Target options and Use Module options. Checking one or both of these unlocks the section below.

Note that while interacting with the various sections in gkape.exe, the current command line box at the bottom will display the equivalent command line. In fact, this is the exact command that will be executed when all minimum requirements are met. As options are selected, gkape.exe determines if all required properties are set. When this is true, the Execute and Copy command buttons are enabled.

Clicking the Execute button launches kape.exe with the displayed command line. A new window is displayed, showing what KAPE is doing. When KAPE is finished, press any key to close the window and return to gkape.exe.

Clicking the Copy command button copies the entire displayed command line to the clipboard. This enables you to then paste the command into PowerShell or CMD to execute.

NOTE: Gkape.exe adds the “--gui” switch to the command line, which displays the "Press any key to exit" dialog when KAPE is done running. If you plan to use gkape.exe to build the command line for use in a batch file, remove “--gui” or KAPE will not exit without a key press.

Finally, at the bottom middle of the gkape.exe window is a Sync with GitHub button. Clicking this button enables you to update the local Target and Module configurations with what is available at https://github.com/EricZimmerman/KapeFiles.

Clicking this button prompts for whether or not to overwrite any existing configuration files that exist locally. Selecting Yes overwrites local files, which is designed to make sure you have the most current versions of all configurations. Selecting No will skip any configuration files that exist locally. In most cases, Yes is the correct choice to ensure your configurations are the most accurate and complete.

Exploring KAPE’s Graphical User Interface in v0.8.2.0

Once gkape.exe updates (and also when overwriting local data), any new Targets and Modules will appear as shown in the screen below:

Exploring KAPE’s Graphical User Interface in v0.8.2.0

Target options

The Target options section will look like the screen below. Anything indicated in red is a required field. For Target source and Target destination, type a path, or use the “…” button next to the box to select a path. Gkape.exe remembers the paths that have been previously entered, so typing in the box will show matches. The dropdown can also be used to view and select previous entries.

Exploring KAPE’s Graphical User Interface in v0.8.2.0

To remove an entry, click the X to the right of the entry when the dropdown is showing.

Exploring KAPE’s Graphical User Interface in v0.8.2.0

In the Targets grid, the checkbox to the left allows for selecting one or more Target configurations from the list. The columns at the top can also be used to sort and filter the list. As options are selected, the command line is shown at the bottom of the interface:

Exploring KAPE’s Graphical User Interface in v0.8.2.0

Module options

Once again, areas shown in red in the Module options are required fields. When using the Target options at the same time as the Module options, note that in almost every situation leaving the Module source path empty is correct because KAPE will then use the Target destination value for Module source.

Exploring KAPE’s Graphical User Interface in v0.8.2.0

Other options

These options shown below allow for displaying debug and trace messages, as well as aborting when KAPE encounters an error while copying:

Exploring KAPE’s Graphical User Interface in v0.8.2.0

Editing Target and Module configurations in the graphical interface

To edit a Target or Module configuration, double-click on a Target or Module's name in the grid. The Editor is then displayed. Here we see an example for the Amcache Target:

Exploring KAPE’s Graphical User Interface in v0.8.2.0

From here you can adjust the configuration as needed. Any time the data has changed, the Save button will be enabled. Clicking the Save button validates the configuration. Any errors must be corrected before you will be able to save the configuration. 

In the example below, there is an extra space after the Name column. Clicking Save shows this validation error:

Exploring KAPE’s Graphical User Interface in v0.8.2.0

Once the OK button is clicked, the Editor will do its best to highlight the invalid data as shown below. After the issue is corrected, the Save button will overwrite the existing configuration with the new data.

Exploring KAPE’s Graphical User Interface in v0.8.2.0

Use the Save As button to save to a new file. Be sure to update the GUID when using Save As. The Generate GUID button will generate a new, random GUID and copy it to the clipboard.

Exploring KAPE’s Graphical User Interface in v0.8.2.0

Get started

Download the latest version of KAPE here; if you’ve already downloaded KAPE, use the same download link included in the confirmation email.

Exploring KAPE’s Graphical User Interface in v0.8.2.0 2019-03-05T00:00:00.0000000 /en/insights/publications/cyber/exploring-kapes-graphical-user-interface /-/media/kroll/images/publications/featured-images/2019/kape-graphical-user-interface.ashx publication {C93B6EB0-4997-4312-946E-FEAC23A47496} {3C7B541B-9C46-4B7C-B32F-5171B3FA949B} {4109FC75-F0BD-410F-8D42-7A3E7F1E7A5B} {B6B1E0A3-F842-4166-A1FC-FABA37190FE5}

Related Services

Cyber Risk

Computer Forensics

Expert computer forensic assistance at any stage of a digital investigation or litigation.

Computer Forensics

Insights