Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8306461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:20:08+00:00 2026-06-08T18:20:08+00:00

It appears that most SWF files, if not all are actually swf archives containing

  • 0

It appears that most SWF files, if not all are actually swf “archives” containing compressed versions of themselves. I have seen that you can extract the file using a few tools

$ flasm -x player.swf
Flasm configuration file flasm.ini not found, using default values
player.swf successfully decompressed, 206239 bytes

$ 7z x player.swf

7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18

Processing archive: player.swf

Extracting  player~.swf

Everything is Ok

Size:       206239
Compressed: 106427

However I was hoping to extract from these using something a little more “conventional”, e.g. tar or gzip

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:20:09+00:00Added an answer on June 8, 2026 at 6:20 pm

    Relevant quote from http://www.adobe.com/content/dam/Adobe/en/devnet/swf/pdf/swf_file_format_spec_v10.pdf

    The header begins with a three-byte signature of either 0x46, 0x57, 0x53 (“FWS”); or 0x43, 0x57, 0x53 (“CWS”).

    • An FWS signature indicates an uncompressed SWF file;
    • CWS indicates that the entire file after the first 8 bytes (that is, after the FileLength field) was compressed by using the ZLIB open standard.
      The data format that the ZLIB library uses is described by Request for Comments (RFCs) documents 1950 to 1952. CWS file compression is permitted in SWF 6 or later only.

    Update In response to the comment, here’s a little bash script that is a literal translation of what the above seems to describe:

    #!/bin/bash
    for swf in "$@"
    do
        signature=$(dd if="$swf" bs=1 count=3 2> /dev/null)
        case "$signature" in
            FWS)
                echo -e "uncompressed\t$swf"
                ;;
            CWS)
                targetname="$(dirname "$swf")/uncompressed_$(basename "$swf")"
                echo "uncompressing to $targetname"
    
                dd if="$swf" bs=1 skip=8 2>/dev/null |
                    (echo -n 'FWS'; 
                     dd if="$swf" bs=1 skip=3 count=5 2>/dev/null;
                     zlib-flate -uncompress) > "$targetname"
                ;;
            *)
                {
                    echo -e "unrecognized\t$swf"
                    file "$swf"
                } > /dev/stderr
                ;;
        esac
    
    done
    

    Which you’d then run across a set of *.swf files (assume you saved it as uncompress_swf.sh):

    uncompress_swf.sh /some/folder/*.swf
    

    It will say stuff like

    uncompressed     /some/folder/a.swf
    uncompressed     /some/folder/b.swf
    uncompressing to /some/folder/uncompressed_c.swf
    

    If something didn’t look like a flash file, at all, it will print an error to stderr.

    DISCLAIMER This is just the way I read the quoted spec. I have just checked that using this script resulted in identical output as when I had used 7z x on the input swf.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update: It appears that changing my mapping from Cascade.All() to Cascade.AllDeleteOrphan() fixes most of
It appears that most modern languages and tools allow for extended regular expressions, and
It appears that NetBeans and Aptana/RadRails are the most common adopted IDE's for Ruby
Appears that WAS does not support the integration binding. I've tried setting it up
It appears that second windows are not closing. Here is what I am doing....
It appears that add_to_class() https://github.com/django/django/blob/master/django/db/models/base.py#L218 doesn't actually add a column, but adds a field
It appears that we will have to build/deploy one of our new JBoss apps
i have an error that i dont understand why appear, the most weird is
I have a class ( MyClass ) that inherits most of its functionality from
I have an application I'm writing which reads a docx file. It appears that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.