xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

資源簡介

64位環(huán)境下已簽名驅(qū)動中實(shí)現(xiàn)加載未簽名驅(qū)動,程序是源代碼,可修改編譯

資源截圖

代碼片段和文件信息

#include?“precomp.h“

#include?“main.h“
#include?“MemLoadDriver.h“

//卸載例程
VOID?DriverUnload(PDRIVER_object?pDriverobject)
{
KdPrint((“-->%s?%d\n“?__FUNCTION__?__LINE__));

KdPrint((“<--%s?%d\n“?__FUNCTION__?__LINE__));
}

//入口點(diǎn)函數(shù)
NTSTATUS?DriverEntry(PDRIVER_object?pDriverobject?PUNICODE_STRING?pRegistryPath)
{
UNICODE_STRING?ustr?=?{?0?};
KdPrint((“-->%s?%d\n“?__FUNCTION__?__LINE__));

//設(shè)置卸載函數(shù)
pDriverobject->DriverUnload?=?DriverUnload;

//獲取函數(shù)地址RtlImageDirectoryEntryToData
RtlInitUnicodeString(&ustr?L“RtlImageDirectoryEntryToData“);
fun_RtlImageDirectoryEntryToData?=?(Fun_RtlImageDirectoryEntryToData)MmGetSystemRoutineAddress(&ustr);
if?(fun_RtlImageDirectoryEntryToData?==?NULL)
{
KdPrint((“%s?%d:?MmGetSystemRoutineAddress?RtlImageDirectoryEntryToData?failed\n“?__FUNCTION__?__LINE__));
goto?End;
}

//獲取函數(shù)地址IoCreateDriver
RtlInitUnicodeString(&ustr?L“IoCreateDriver“);
fun_IoCreateDriver?=?(Fun_IoCreateDriver)MmGetSystemRoutineAddress(&ustr);
if?(fun_IoCreateDriver?==?NULL)
{
KdPrint((“%s?%d:?MmGetSystemRoutineAddress?IoCreateDriver?failed\n“?__FUNCTION__?__LINE__));
goto?End;
}

//獲取函數(shù)地址RtlQueryModuleInformation
RtlInitUnicodeString(&ustr?L“RtlQueryModuleInformation“);
fun_RtlQueryModuleInformation?=?(Fun_RtlQueryModuleInformation)MmGetSystemRoutineAddress(&ustr);
if?(fun_RtlQueryModuleInformation?==?NULL)
{
KdPrint((“%s?%d:?MmGetSystemRoutineAddress?RtlQueryModuleInformation?failed\n“?__FUNCTION__?__LINE__));
goto?End;
}

//內(nèi)存加載驅(qū)動模塊,文件路徑為DRIVER_TO_MEMLOAD,驅(qū)動名為DRIVER_NAME
if?(!MemLoadDriverByFilePath(DRIVER_TO_MEMLOAD?DRIVER_NAME))
{
KdPrint((“%s?%d:?MemLoadDriverByFilePath?failed\n“?__FUNCTION__?__LINE__));
}
else
{
KdPrint((“MemLoadDriverByFilePath?Success!\n“));
}

End:
KdPrint((“<--%s?%d\n“?__FUNCTION__?__LINE__));
return?STATUS_SUCCESS;
}

評論

共有 條評論