Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
848 views
in Technique[技术] by (71.8m points)

flash - How to automatically decompile SWF file on my server?

What language would I need to use?

A bit like http://www.showmycode.com/

And could anyone point me in the right direction to get started?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
  • 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:sourcesmyfile.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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...