header only library for NtLoadDriver/NtUnloadDriver.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xerox 8dd45f5915
importing NtLoadDriver & NtUnloadDriver
4 years ago
LICENSE Add LICENSE 5 years ago
README.md Update README.md 4 years ago
loadup.hpp importing NtLoadDriver & NtUnloadDriver 4 years ago

README.md

loadup

Header only library for NtLoadDriver and NtUnloadDriver. Registry entries and temp files that may be created are deleted when driver::unload(...) is called.

examples

loading driver from buffer. warning please ensure ALL handles are closed to the driver before unloading the driver! CloseHandle!

std::vector<std::uint8_t> drv_buffer(...);
const auto[result, reg_key] = driver::load(drv_buffer.data(), drv_buffer.size());

load driver from path on disk.

auto result = driver::load("image.sys", "service_name");

unloading driver.

auto result = driver::unload("service_name");