Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gdatasoftwareag/typerefhasher

CLI tool to compute the TypeRefHash for .NET binaries.
https://github.com/gdatasoftwareag/typerefhasher

dotnet imphash malware reverse-engineering trh typerefhash

Last synced: 3 months ago
JSON representation

CLI tool to compute the TypeRefHash for .NET binaries.

Awesome Lists containing this project

README

        

# TypeRef Hasher

[![license](https://img.shields.io/github/license/GDATASoftwareAG/TypeRefHasher.svg)](https://raw.githubusercontent.com/GDATASoftwareAG/TypeRefHasher/master/LICENSE)
[![Build](https://img.shields.io/azure-devops/build/gdatasoftware/TypeRefHasher/6.svg)](https://dev.azure.com/gdatasoftware/TypeRefHasher/_build?definitionId=6)
[![Test](https://img.shields.io/azure-devops/tests/gdatasoftware/TypeRefHasher/6.svg)](https://dev.azure.com/gdatasoftware/TypeRefHasher/_build?definitionId=6)

CLI tool to compute the [TypeRefHash (TRH)](https://www.gdatasoftware.com/blog/2020/06/36164-introducing-the-typerefhash-trh) for .NET binaries.

## Installation

There are multiple options to obtain the *TypeRefHasher*.

### Windows

Install the tool with [winget](https://github.com/microsoft/winget-cli). The tool gets added to your `PATH` environment variable.

```powershell
winget install GDATA.TypeRefHasher
```

Another option is to just download the binary or installer from the [GitHub Releases](https://github.com/GDATASoftwareAG/TypeRefHasher/releases) tab

1. `trh.msi` -> Windows x64 Installer (Allows uninstall and adds the tool to your `PATH`)
2. `trh.exe` -> Windows x64 (Standalone binary)

### Linux

Download the binary or installer from the [GitHub Releases](https://github.com/GDATASoftwareAG/TypeRefHasher/releases) tab.

1. `trh` -> Linux x64 (Standalone binary)

## Usage

The usage is as straight forward as possible.

Windows:

```powershell
> trh.exe file
```

Linux:

```bash
> trh file
```

In both cases the output is the TRH (example: 1defec485ab3060a9201f35d69cfcdec4b70b84a2b71c83b53795ca30d1ae8be) for the given file or an error message with a description why the hash could not be computed.

## Build & Deploy

Find more information [here](BUILD.md)