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
Relevant quote from http://www.adobe.com/content/dam/Adobe/en/devnet/swf/pdf/swf_file_format_spec_v10.pdf
Update In response to the comment, here’s a little bash script that is a literal translation of what the above seems to describe:
Which you’d then run across a set of
*.swffiles (assume you saved it asuncompress_swf.sh):It will say stuff like
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 xon the input swf.