在另一个应用程序中访问 AppDomain? [英] Get access to AppDomain in another app?

查看:24
本文介绍了在另一个应用程序中访问 AppDomain?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试扩展 .Net 2.0 软件的一个免费、专有的部分,这让我很伤心.我成功地注入了一个 Win32 dll 并让它成功地将 .Net dll 加载到主应用程序域中,但这样做导致他们的自定义 GUI 系统完全锁定.

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.

是否可以获取对远程 AppDomain(在另一个应用程序中运行)的引用并对其执行操作(例如加载程序集、创建类)?

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)?

我之所以这么问,是因为我确定我在使用 Win32 托管 API 时看到了一些东西,但是我再也找不到了...

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...

推荐答案

他们关于安全的说法完全正确,但是,有一些工具可以让你做你想做的事(在运行时修改应用程序?)

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?)

看看:

塞西尔 http://www.mono-project.com/Cecil

简单来说,使用 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/

一旦找到您感兴趣的对象或类型,您就可以通过编写和执行 IronPython 脚本来操作它和其他对象.

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.

干杯

这篇关于在另一个应用程序中访问 AppDomain?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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