键状态结构偏移的具体定位思路,可用于内核态输入采集与相关取证。
逆向内核windows偏移
as base i used this code from here
DMA Key Input Windows 11 24h2 fix
for windows-11 26h2 26300.9818
g_session_global_slots = win32kBase(tmp)+ 0x87d30;
gafAsyncKeyStateExport = userSessionState + 0x3BFC; -->mouse clicks lef/right/middle
gafAsyncKeyStateExport = userSessionState + 0x3C08;-->keyboards clicks starting from key 1
gafAsyncKeyStateExport = userSessionState + 0x3C0C;keyboards clicks starting from key A