可以将资源文件注入.net程序集吗?
我一直在 Reflector 和 Reflexil 中摆弄一个供学生使用的 .net 程序,但看起来他们不能使用资源文件。我想用自定义背景替换默认背景。这有多可行?
我尝试将程序集导出为 C# 项目,并可能使用交换的资源文件进行重建,但在导出时,一些类不会正确反编译,并且当我尝试查看反射器内的完整源代码时(单击“展开”后),反射器会崩溃方法')
There's a .net program for students that I've been messing around with in Reflector and Reflexil, but it doesn't look like they can work with resource files. I want to replace the default background with a custom one. How feasible is this?
I've tried exporting the assembly as a C# project and maybe rebuilding with the resource files swapped, but a few classes won't decompile right when exporting and crashes Reflector when I try to view the full source code inside reflector (after clicking 'expand methods')
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
它是什么类型的应用程序? WinForms、WPF、Silverlight、Web?您可以使用 ILDasm 往返来完成此操作。如果您让我知道它是什么类型的应用程序,我将发布您需要采取的步骤。
What type of applicaiton is it? WinForms, WPF, Silverlight, Web? You can do it with ILDasm round triping. If you let me know what type of app it is I'll post the steps you need to take.
Reflexil 1.3 现在能够处理资源。
Reflexil 1.3 is now able to handle resources.
相当困难,也许十六进制编辑器可以提供帮助。
Quite difficult, probably Hex Editor can help.
资源黑客可以做到。跟随; 行动>添加新资源
delphi.icm.edu.pl/ftp/tools /ResHack.zip
Resource Hacker can do it. Follow; Action > Add a new Resource
delphi.icm.edu.pl/ftp/tools/ResHack.zip
我刚刚推出 GrayWolf 来编辑程序,我还没有能力编辑资源(如果您捐赠 $:),
但我认为简单的更改是编辑程序以从磁盘加载背景(. /back1.jpg)
我还有其他工具可以轻松更改正在运行的程序的背景,请参阅
DefCon18 上的“Hacking .NET”
其他工具“GrayDragon”
我有一个有效负载可以做到这一点,它是用于 DefCon19,但如果你给我发一封电子邮件......
快乐狩猎
I just put out GrayWolf to edit programs, I don't have the ability to edit resource(s) (if you donate$:) yet
but I would think the easy change is to edit the program to load the background from disk (./back1.jpg)
I have others tools that would make it easy to change the background of the running program see
"Hacking .NET" at DefCon18
other tools "GrayDragon"
I have a payload that does just this, it is for DefCon19, but if you send me an e-mail...
Happy hunting