We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to use in kernel ZwQuerySystemInformation MmCopyVirtualMemory
code me
{ PVOID moduleBase = NULL; ULONG info = 0; NTSTATUS status = ZwQuerySystemInformation(SystemModuleInformation, 0, info, &info);
if (!info) { return moduleBase; } PRTL_PROCESS_MODULES modules = (PRTL_PROCESS_MODULES)ExAllocatePoolWithTag(NonPagedPool, info, 'cdff'); status = ZwQuerySystemInformation(SystemModuleInformation, modules, info, &info); if (!NT_SUCCESS(status)) { return moduleBase; } PRTL_PROCESS_MODULE_INFORMATION module = modules->Modules; if (modules->NumberOfModules > 0) { if (!moduleName) { moduleBase = modules->Modules[0].ImageBase; } else { for (auto i = 0; i < modules->NumberOfModules; i++) { if (!strcmp((CHAR*)module[i].FullPathName, moduleName)) { moduleBase = module[i].ImageBase; } } } } if (modules) { ExFreePoolWithTag(modules, 'cdff'); } return moduleBase;
}
thank you
The text was updated successfully, but these errors were encountered:
No branches or pull requests
how to use in kernel
ZwQuerySystemInformation
MmCopyVirtualMemory
code me
{
PVOID moduleBase = NULL;
ULONG info = 0;
NTSTATUS status = ZwQuerySystemInformation(SystemModuleInformation, 0, info, &info);
}
thank you
The text was updated successfully, but these errors were encountered: