Detecting Keyboard Hooks

你说的曾经没有我的故事 提交于 2019-12-17 19:19:01

问题


Is there a way to detect which programs or modules are listening to a keyboard hook? By Sysinternals maybe?


回答1:


This blog post has instructions: http://zairon.wordpress.com/2006/12/06/any-application-defined-hook-procedure-on-my-machine/




回答2:


It largely depends on what level of abstraction are you obtaining your key presses.
For maximum detection you could use hardware directly or go as low as possible (some hooks work at HW driver-level).

For security purposes, you could also use a virtual keyboard - hooks would have to be targeted specifically at your application to simulate key presses.




回答3:


Nope. You would likely have to hook into SetWindowsHookEx() itself in order to detect that.




回答4:


I don't think you can, there's no GetWindowsHook function that would return the hook(s). Also, I'm under the impression that the main keyboard processing routine is hooked through SetWindowsHookEx(), so even if there are no hooks, there's at least one, Windows itself.



来源:https://stackoverflow.com/questions/1465135/detecting-keyboard-hooks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!