swfs
v1.2
swfs is a set of cli tools to work with swf files.
Download the latest release of swfs for your operating system of choice.
swftools (http://www.swftools.org/)swfs uses swftools under the hood, make sure you have it installed on your system and added to your PATH.
| swftools windows | swftools linux |
|---|
swfdump and swfextract should be runnable from your commandline.
Explore the different tools below by expanding the details.
./swfs [options] extract
| Argument | Explanation |
|---|---|
| input | Path to the directory where the swf files are located |
| output | Path to the directory you want the extracted files to be placed |
| [workers] | Size of worker pool. Higher number will increase the concurrent use of swfdump and swfextract. Default is 2. |
./swfs -input /swfdir -output /extracted -workers 2 extract./swfs [options] bundle
| Argument | Explanation |
|---|---|
| input | Path to the directory where the extracted files are located |
| [workers] | Size of worker pool. Higher number will increase the concurrency of the program. Default is 5. |
./swfs -input ./extracted -workers 5 bundleThe .asset file structure:
## Content of .asset files are structured as key value pairs
## separated by "=n". Multiple assets are separated with
## double newline "nn". First line is always the format version.
version=
1
some_extracted_image.png=
�PNG...
some_extracted_binary.bin=
<xml>
....
</xml>To parse .asset files, split on nn, then loop through each part. Split each part on =n to get [0]filename and [1]filedata.