A small Windows utility that converts a compiled driver.sys into a shellcode.h header file.
This is useful if you want to embed your driver directly into a C++ project as a static byte array.
- Open file dialog to select your
driver.sys - Converts the binary into a
uint8_t shell_driver[]array - Automatically generates
shellcode.hnext to the executable - Outputs array length as
shell_driver_len - Simple and fast – no external dependencies
#pragma once
#include <cstdint>
uint8_t shell_driver[9216] = {
0x4D, 0x5A, 0x90, 0x00, /* ... */
};
const unsigned int shell_driver_len = 9216;- Compile the project in Visual Studio (x64, Release recommended).
- Run
ShellcodeConverter.exe. - A file dialog will open – select your
driver.sys. shellcode.hwill be created in the same folder as the executable.- Include
shellcode.hin your injector project.
- Open the
.slnin Visual Studio. - Make sure you use C++17 or higher.
- Build the project (Debug or Release).
- Windows 10/11
- Visual Studio 2019/2022
- No external libraries needed
This project is released under the MIT License.
See LICENSE for details.