IE BHO 浏览器扩展:如何在设置、删除等时获取 cookie
我正在为 Internet Explorer 编写一个扩展,并且想知道如何以编程方式检测会话中每个域设置、删除、修改哪些 cookie。
我知道 cookie 是在 WinInet 级别处理的,不一定是 IE BHO、扩展等。
但是是否可以按实例(IWebBrowser2)或每个进程监听 cookie?
已经研究了一些想法,异步可插拔协议等。到目前为止,我什至正在考虑 IAT 表修补,但我想我之前会要求一个更优雅的解决方案。
感谢您的任何帮助。
I'm writing an extension for Internet Explorer, and am wondering how to programmatically detect in a session what cookies get set, deleted, modified, etc. per domain.
I understand that cookies are handled on a WinInet level, and not necessarily IE BHO, extensions, etc.
But is it possible to to snoop cookies per instance (IWebBrowser2), or per process?
Have looked into a few ideas, Asynchronous Pluggable Protocols, etc. As of now I'm even considering IAT table patching, but figured I'd ask for a more elegant solution before.
Thanks for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对此没有任何优雅的解决方案,唯一可行的解决方案是为 urlmon.dll 中的多个类修补 vtbl。
我知道你问这个问题已经有一段时间了,但是我现在也面临着相当复杂的扩展。我在捕获所有 cookie 内容时也遇到问题。我们可以找个时间聊聊这个吗?
There isn't any elegant solution to this, only viable one is to patch vtbl for several classes in urlmon.dll.
I understand it has been some time since you asked the question, however I'm in the same boat right now with a fairly complicated extension. I'm having problems with capturing all cookie content as well. Can we chat about this sometime?