Get access to AppDomain in another app?

放肆的年华 提交于 2019-12-11 04:29:27

问题


I'm trying to extend a freeware, proprietary piece of .Net 2.0 software, and it's been giving me grief. I successfully managed to inject a Win32 dll and get it to successfully load in the .Net dll into the primary app domain, but doing so caused their custom GUI system to lock up completely.

Is it possible to get a reference to a remote AppDomain (running in another app) and perform operations on it (e.g. load an assembly, create a class)?

The reason I'm asking is that I'm sure I saw something when I was poking around with the Win32 hosting API, but I can't find it again...


回答1:


What they say about security is totally true, however, there are some tools that can let you do what you want to (modify the app on runtime?)

Have a look at:

Cecil http://www.mono-project.com/Cecil

In simple English, with Cecil, you can load existing managed assemblies, browse all the contained types, modify them on the fly and save back to the disk the modified assembly.

Crack.NET http://cracknetproject.codeplex.com/

Once you find an object or type that you're interested in, you can manipulate it, and others, by writing and executing an IronPython script.

Cheers




回答2:


No, you won't get a reference to another AppDomain. AppDomains are isolated. Otherwise all the .NET code would be completely unsecured.



来源:https://stackoverflow.com/questions/6529249/get-access-to-appdomain-in-another-app

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