如何将 flash .exe 文件反编译为 .swf 文件?
问题:
我想将 Flash 游戏的 .exe
文件反编译为 .swf
文件(Adobe Flash 文件),以便我可以对其进行修改
Problem:
I want to decompile the .exe
file of a Flash game into a .swf
file (Adobe Flash file) so I can modify it
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
供将来参考:这篇文章很可能讨论从使用 Adobe Flash 创建的“投影仪可执行文件”中提取原始 .swf 文件。
这会将 Flash Player 和 SWF 文件捆绑在一起并创建独立的可执行文件。 GitHub 上有一个简单的提取器:https://github.com/laenion/dump_projector
For future reference: This post most likely talks about extracting the original .swf file from a "projector executable" created with Adobe Flash.
This bundles both a Flash Player and an SWF file together and creates a standalone executable. There is a simple extractor for this over at GitHub: https://github.com/laenion/dump_projector
无法将
.exe
转换为.swf
。.exe
文件不是 Flash 文件,并且与.swf
不远程兼容。扩展名.exe
代表可执行文件,这意味着它由直接在处理器上运行的机器代码组成。.swf
充当一个奇特的.zip
存档,其中包含资产和一种跨平台字节码形式,它对调试器更加友好,并且包含有关其代码的大量信息编译自.由于.swf
不是可执行文件,因此您必须首先安装 Flash 可执行文件,然后它才能打开.swf
,将中间字节码转换或解释为机器代码,并运行您的程序。话虽这么说,仍然可以将
.exe
反编译为 C 或 C++ 等语言,但它要困难得多并且容易被破坏。如果您想了解更多有关其工作原理的信息,可以参考此页面: Is it possible to “decompile” a Windows .exe?或者至少查看大会?There is no way to turn a
.exe
into a.swf
.An
.exe
file is not a flash file and is not remotely compatible with.swf
. The extension.exe
stands for executable, meaning that it consists of machine code which gets run directly on the processor. A.swf
acts as a fancy.zip
archive containing assets and a form of cross-platform bytecode that is much more debugger friendly and contains lots of information about the code it was compiled from. Since a.swf
is not an executable, you have to install a flash executable first which then is able to open a.swf
, convert or interpret that intermediate bytecode into machine code, and runs your program.That being said it is still possible to decompile a
.exe
into languages like C or maybe C++, but it is much harder and prone to breaking. You can refer to this page if you want to learn more about how that works: Is it possible to "decompile" a Windows .exe? Or at least view the Assembly?