3

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?

janot
  • 13,578
  • 1
  • 27
  • 57
Belgin Fish
  • 19,187
  • 41
  • 102
  • 131
  • are you looking for a library that would do the decompilation for you? If you are planning on decompiling it yourself, i'dthink that the language doesn'tmuch matter so long as you can directly access the bits in the swf file... – atk Jun 06 '10 at 14:07
  • I was just looking for the most efficient way of doing it. – Belgin Fish Jun 06 '10 at 14:12
  • efficient by what definition? efficient for dev time would prolly be to take an existing decompiler and call it from the command line. Efficient for cost, for ability to sell without licensing restriction, for time to decompile, or for memory usage might require different implementations. – atk Jun 06 '10 at 15:23
  • Possible duplicate of [How do you decompile a swf file](http://stackoverflow.com/questions/97018/how-do-you-decompile-a-swf-file) – bummi Dec 07 '15 at 22:17

2 Answers2

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

kenorb
  • 155,785
  • 88
  • 678
  • 743
1

SWFScan - FREE Flash decompiler

THIS is the one, the only, HP's fantastic SWFScan Adobe Flash de-compile tool and
basic 'security scanner' ... use it for the betterment of humanity, and not for 
evil.
Zombo
  • 1
  • 62
  • 391
  • 407