/

Quick Start

The ByteHide.ToolBox SDK provides tools for automatic StackTrace deobfuscation and facilitates the execution of various operations using a single entry point.

The ByteHide.ToolBox SDK is available as a NuGet package. You can install it using the NuGet Package Manager in Visual Studio or via the command line with the following command:

Usage

Once the package is installed, you can use the ByteHide.ToolBox SDK in your application as follows:

Example using SubscribeToExceptionEvents

namespace Sample;

internal class Program
{
    internal static void Main()
    {
        try
        {
            var toolbox = Bytehide.ToolBox.Products.Shield;
            toolbox.SubscribeToExceptionEvents();

            throw new Exception("This is a test exception");
        }
        catch (Exception ex)
        {
            Console.WriteLine("Caught Exception [Message]: " + ex.Message);
            Console.WriteLine("Caught Exception [StackTrace]: " + ex.StackTrace);

            Console.ReadLine();
        }
    }
}

In the example above, the Deobfuscate method is used to deobfuscate the exception and display the original stack trace. Only need to call SubscribeToExceptionEvents once in the application.

Also, you can use the ByteHide.ToolBox SDK to execute manually the operations that you need.

Example using Deobfuscate

using Bytehide.ToolBox.Shield.Core;

namespace Sample;

internal class Program
{
    internal static void Main()
    {
        try
        {
            throw new Exception("This is a test exception");
        }
        catch (Exception ex)
        {
            ex = ex.Deobfuscate();

            Console.WriteLine("Caught Exception [Message]: " + ex.Message);
            Console.WriteLine("Caught Exception [StackTrace]: " + ex.StackTrace);

            Console.ReadLine();
        }
    }
}

But remember that this mode, you have to call Deobfuscate() method in each catch block.

Remember that you must put your magic file in the assembly directory (next to the assembly) to use the ByteHide.ToolBox SDK.

Additionally, you can find detailed logs of the protection process in the logs folder located in your assembly directory.

Previous
Install