如何在我的服务器上自动反编译SWF文件?

3

你正在寻找一个可以帮助你反编译的库吗?如果你打算自己进行反编译,语言不太重要,只要你可以直接访问SWF文件中的位即可... - atk
我只是在寻找最有效的方法来完成它。 - Belgin Fish
高效的定义是什么?对于开发时间而言,最有效率的方法可能是使用现有的反编译器并从命令行调用它。对于成本、无许可限制销售的能力、反编译时间或内存使用效率而言,可能需要不同的实现方式。 - atk
可能是如何反编译swf文件的重复问题。 - bummi
2个回答

5
  • SWFTools - SWF manipulation and generation utilities

    You can install SWFTools distribution (which has also a command line program), and use SWFExtract, that can decompile flash files.

    On OSX, install via: brew install swftools.

    This will install tools such as: as3compile, font2swf, jpeg2swf, pdf2swf, png2swf, swfbbox, swfc, swfcombine, swfdump, swfextract, swfrender, swfstrings, wav2swf.

    swfextracts allows to extract swf movieclips and objects out of swf files.

    Example to extract all:

    swfextract --outputformat "extract_%06d.%s" -a 1- sample.swf
    
  • FFDec (GitHub) - JPEXS Free Flash Decompiler

    Opensource flash SWF decompiler and editor. Extract resources, convert SWF to FLA, edit ActionScript, replace images, sounds, texts or fonts. Various output formats available. Works with Java on Windows, Linux or MacOS.

    Examples:

    java -jar ffdec.jar myfile.swf
    java -jar ffdec.jar -proxy
    java -jar ffdec.jar -proxy -P1234
    java -jar ffdec.jar -export script "C:\decompiled" myfile.swf
    java -jar ffdec.jar -selectclass com.example.MyClass,com.example.SecondClass -export script "C:\decompiled" myfile.swf
    java -jar ffdec.jar -format script:pcode -export script "C:\decompiled" myfile.swf
    java -jar ffdec.jar -format script:pcode,text:plain -export script,text,image "C:\decompiled" myfile.swf
    java -jar ffdec.jar -format fla:cs5.5 -export fla "C:\sources\myfile.fla" myfile.swf
    java -jar ffdec.jar -dumpSWF myfile.swf
    java -jar ffdec.jar -compress myfile.swf myfiledec.swf
    java -jar ffdec.jar -decompress myfiledec.swf myfile.swf
    java -jar ffdec.jar -onerror ignore -export script "C:\decompiled" myfile.swf
    java -jar ffdec.jar -onerror retry 5 -export script "C:\decompiled" myfile.swf
    java -jar ffdec.jar -config autoDeobfuscate=1,parallelSpeedUp=0 -export script "C:\decompiled" myfile.swf
    

    Instead of "java -jar ffdec.jar" you can use ffdec.bat on Windows, ffdec.sh on Linux/MacOs


1

SWFScan - 免费Flash反编译器

这是惟一的、惊人的、惠普公司的 SWFScan Adobe Flash 反编译工具和基本的“安全扫描仪”……请用它来造福人类,而不是为了邪恶之事。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接