小弟刚接触ssdthook跟shadowhook~遇到点问题
看了sislcb大大的Hook Shadow SSDT文章
然后自己写的一个ssdthook
我想把两个合到一块
但是两个都定义了 ServiceDescriptorEntry
Hook Shadow SSDT的是
typedef struct ServiceDescriptorEntry {
PVOID *ServiceTableBase;
ULONG *ServiceCounterTableBase; //Used only in checked build
ULONG NumberOfServices;
PVOID *ParamTableBase;
} ServiceDescriptorTableEntry, *PServiceDescriptorTableEntry;
PServiceDescriptorTableEntry KeServiceDescriptorTableShadow;
SSDT的是
typedef struct ServiceDescriptorEntry {
unsigned int *ServiceTableBase;
unsigned int *ServiceCounterTableBase;
unsigned int NumberOfServices;
unsigned char *ParamTableBase;
} ServiceDescriptorTableEntry, *PServiceDescriptorTableEntry;
extern PServiceDescriptorTableEntry KeServiceDescriptorTable;
我改成
typedef struct ServiceDescriptorEntry {
unsigned int *ServiceTableBase;
unsigned int *ServiceCounterTableBase;
unsigned int NumberOfServices;
unsigned char *ParamTableBase;
} ServiceDescriptorTableEntry, *PServiceDescriptorTableEntry;
extern PServiceDescriptorTableEntry KeServiceDescriptorTable;
PServiceDescriptorTableEntry KeServiceDescriptorTableShadow;
编译报错提示
'KeServiceDescriptorTable' : 'ServiceDescriptorTableEntry' differs in levels of indirection from 'PServiceDescriptorTableEntry'
大牛们帮忙下
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课