27 lines
733 B
C++
27 lines
733 B
C++
#include "ob_reg_callback.h"
|
|
#include "create_thread_callback.h"
|
|
#include "protect_filter.h"
|
|
#include "comm.h"
|
|
|
|
|
|
EXTERN_C NTSTATUS DriverEntry(PDRIVER_OBJECT drv_obj, PUNICODE_STRING)
|
|
{
|
|
if (drv_obj)
|
|
{
|
|
drv_obj->DriverUnload = [](PDRIVER_OBJECT)
|
|
{
|
|
kernel_comm_create::remove();
|
|
ob_call_back::uninstall_ob_callback();
|
|
//DbgPrintEx(77,0,"%x\n", thread_notify_routine::unload_thread_routine());
|
|
};
|
|
}
|
|
|
|
kernel_api::kernel_api_init();
|
|
protect_filter::Init();
|
|
kernel_comm_create::Init();
|
|
|
|
DbgPrintEx(77, 0, "[+]ob_reg_callback status:%x\n", ob_call_back::register_ob_reg_callback());
|
|
//DbgPrintEx(77, 0, "[+]create_thread_routine status:%x\n", thread_notify_routine::create_thread_routine());
|
|
|
|
return STATUS_SUCCESS;
|
|
} |