除了通过ILDASM/ILASM黑客攻击以外,是否可以修改程序集清单? [英] Is it possible to modify assembly manifests other than by ILDASM/ILASM hacking?

查看:89
本文介绍了除了通过ILDASM/ILASM黑客攻击以外,是否可以修改程序集清单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个拥有两个.NET程序集A和B的客户:

We have a customer who have two .NET assemblies, A and B:

  • 程序集A引用程序集B.
  • 程序集A是未签名的,不会被混淆,没有可用的源代码.
  • 程序集B已签名,没有被混淆,有可用的源代码.

我想修改程序集A并更改清单,以便它引用的是未签名的版本,而不是引用B的签名版本.

I want to modify assembly A and change the manifest so that instead of referencing a signed version of B, it references an unsigned version.

我知道可以使用ILDASM转储IL,编辑引用,然后使用ILASM重新创建,但是有更好的方法吗?

I know it's possible using ILDASM to dump the IL, edit the references then recreate using ILASM, but is there a better way?

推荐答案

使用ILDASM进行反编译,编辑生成的IL以及使用ILASM重新编译似乎是阻力最小的途径.

It's seems that decompiling with ILDASM, editing the resulting IL and recompiling with ILASM was the path of least resistance.

这篇关于除了通过ILDASM/ILASM黑客攻击以外,是否可以修改程序集清单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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