How to extract text and images from a Flash module

This tutorial will explain how to take a Flash file (.swf, Small Web Format) and extract its text and images.

Required Installations:

  1. JDK 8
    1. Since our decompiling program, FFdec is relatively old (last updated in 2018), it only lets us use JDK 8. JDK stands for Java Development Kit, which essentially allows us to not only run Java programs, but also compile and create new programs.
    2. Make sure you have JDK 8 set up BEFORE you install the decompiler!
      1. To check what version of JDK you’re using, open Terminal and type in the following:
        1. java -version
        2. The output should contain “1.8.0”, with any number following be acceptable. This way, you know JDK 8 is running.
          1. java version "1.8.0_221"
            
            Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
            
            Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)
        3. If you need to uninstall another version of JDK before installing JDK 8, follow the instructions here.
  2. FFdec
    1. This is our decompiler program. Essentially, it will take in a SWF file and parse + categorize out all the information it can (text, images, sounds, scripts, etc…). This is handy because we can then easily export all the text and images and do whatever we need to on it!
    2. Use the Mac OS X Application (zipped) download.

Steps:

  1. Locate the SWF file that you want to extract.
  2. Open FFdec and click on the Settings tab on the top toolbar as follows:
  3. Click on Advanced Settings.
  4. Click on the Export tab and make sure the Export texts to single file checkbox is checked.
  5. Drag and drop your SWF file into the white box, and it should appear there with a bunch of different data formats.
  6. Right click on texts and select Export selection.
    1. Keep the Texts dropdown as Plain text and Zoom at 100%.
  7. Export it to your Desktop. Your exports should be located in a folder called texts.
  8. To extract the images (some SWF files might not have images, that’s okay), do step 6 but right click on images instead. Your exported results for images will be in a folder called images.

 

This entry was posted in Coding. Bookmark the permalink.

Comments are closed.