-
-
[求助]拷贝内核模块内存蓝屏
-
发表于:
2014-7-29 13:59
4587
-
下面是枚举内核模块的代码,中间有一段拷贝内核模块内存
PLIST_ENTRY pEntry = pLDREntry->InLoadOrderLinks.Blink;
UNICODE_STRING wStrTmp;
LONG nCount = 0;
PVOID pNewBuffer;
pNewBuffer = ExAllocatePool(PagedPool, PAGE_SIZE);
while(TRUE)
{
PLDR_DATA_TABLE_ENTRY pTmpPLDREntry = (PLDR_DATA_TABLE_ENTRY)pEntry;
if (pTmpPLDREntry == pLDREntry)
{
break;
}
pEntry = pTmpPLDREntry->InLoadOrderLinks.Blink;
if (pTmpPLDREntry->DllBase != 0 && pTmpPLDREntry->SizeOfImage > 0)
{
DbgPrint("驱动模块:BaseName:%wZ,EntryPoint:%08X,DllBase:%08X,SizeOfImage:%08X\n",
&pTmpPLDREntry->BaseDllName, pTmpPLDREntry->EntryPoint, pTmpPLDREntry->DllBase, pTmpPLDREntry->SizeOfImage);
RtlCopyMemory(pNewBuffer, pTmpPLDREntry->DllBase, PAGE_SIZE); // 蓝屏
nCount++;
}
}
内核模块内存不允许访问吗?
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!