Is it possible to modify assembly manifests other than by ILDASM/ILASM hacking?

99封情书 提交于 2019-12-06 07:16:30

问题


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

  • Assembly A references assembly B.
  • Assembly A is unsigned, not obfuscated, no source code is available.
  • Assembly B is signed, not obfuscated, there is source code available.

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.

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


回答1:


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



来源:https://stackoverflow.com/questions/2546707/is-it-possible-to-modify-assembly-manifests-other-than-by-ildasm-ilasm-hacking

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