Spying on COM Objects

前端 未结 2 1165
广开言路
广开言路 2020-12-17 01:50

I\'ve set myself a new task which involves \"spying\" on COM objects.

Even if you don\'t do COM, you\'re probably familiar with API hooking techniques where you can

2条回答
  •  情深已故
    2020-12-17 02:28

    I'd definitely recommend using Keith Brown's 'Universal Delegator' to do the low-level interception. The ComTrace tool mentioned by Kim Grasman uses it. It lets you wrap an arbitrary com object in a 'shell' that can do interception, logging, etc. The original articles (with code) describing the universal delegator are here and here.

    If you want to spy on com objects in arbitrary processes (that you don't have the source for) then you'll also need to do code injection, using CreateRemoteThread() or something similar. There's an article here that might get you started if you've not done it before.

提交回复
热议问题