如何挂起MANAGED(.NET)在该进程中处理和收集信息? [英] How to hook MANAGED(.NET) Processes and collect information inside that process?

查看:213
本文介绍了如何挂起MANAGED(.NET)在该进程中处理和收集信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要钩住管理(C#,C ++ / CLI)进程,我需要查找和发送关于它有多少个窗口(其关联的控件及其属性)到使用C#管理代码编写的目标应用程序的信息。



为什么我需要做什么?
我需要浏览IAT(导入地址表)&该管理进程的EAT(导出地址表)?
我需要用C ++写入注射器DLL吗?
除了更改IAT和EAT之外,还需要什么?




我需要将受管理的运行进程附加到应用程序(其中将主持或附加其他进程)。在附加过程之后,我需要获取与该进程的窗口相关联的所有控件的属性。



我将逐个迭代附加过程的窗口,将枚举所有与该窗口相关联的控件(将获取控件的ID,名称,颜色,位置,大小等),并将此整个信息发送到其他应用程序或附加其他应用程序的应用程序(实际上该应用程序作为主机再次需要重新绘制相同的控件使用该信息,不要问为什么我需要这样做: - ))



Regards
Usman

解决方案

请参阅 http://www.codeproject.com/Articles/463508/Net-CLR-Injection-Modify-IL-Codes-on-Run-time



您可以通过在运行时修改IL代码来执行此操作



此外,Profiler界面也是您的另一种方式


I need to hook managed (C#,C++/CLI) processes, I need to find and send information about how many windows it has(its associated controls and their properties)to the target application which is written in C# managed code.

For that What I need to do? Do I need to explore IAT (Import Address Table) & EAT(Export address Table) of that managed process? Do I need to write injector DLL in C++? What else apart from changing IAT and EAT , do I need?

[EDIT] I need to attach managed running processes to application(which will host or attach other process). After attaching process I need to get the properties of all the controls associated with that process's windows.

One by one I will iterate the windows of that attached process ,will enumerate all the controls associated with that window(will get control's id,name,color,position,size etc), and will send this whole info to other app or the app which attached other apps(actually that app as host again need to redraw same controls with the usage of that information, Dont ask why I need to do this:-))

Regards Usman

解决方案

Please see this http://www.codeproject.com/Articles/463508/Net-CLR-Injection-Modify-IL-Codes-on-Run-time

You can do that by modifying the IL code on runtime

Also, Profiler interface is another way for you

这篇关于如何挂起MANAGED(.NET)在该进程中处理和收集信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆