mirror of
https://github.com/wavestone-cdt/EDRSandblast.git
synced 2026-06-08 16:37:12 +00:00
4bff81986b
Co-authored-by: Thomas Diot <thomas.diot@wavestone.com>
24 lines
742 B
C
24 lines
742 B
C
/*
|
|
|
|
--- ntoskrnl Notify Routines' offsets search functions using patterns.
|
|
--- Ultimately not used because too unreliable and too prone to BSoD.
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Windows.h>
|
|
#include <Tchar.h>
|
|
#include <stdio.h>
|
|
|
|
#include "KernelMemoryPrimitives.h"
|
|
|
|
DWORD64 PatternSearchStartingFromAddress(HANDLE Device, DWORD64 startAddress, DWORD bytesToScan, DWORD64 pattern, DWORD64 mask);
|
|
|
|
DWORD64 ExtractRelativeAddress(HANDLE Device, DWORD64 instructionStartAddress, DWORD64 instructionRelativeAddressOffset, DWORD64 nextInstructionOffset);
|
|
|
|
DWORD64 GetPspCreateProcessNotifyRoutineAddressUsingPattern(void);
|
|
|
|
DWORD64 GetPspCreateThreadNotifyRoutineAddressUsingPattern(void);
|
|
|
|
DWORD64 GetPspLoadImageNotifyRoutineAddressUsingPattern(void); |