Skip to content

Instantly share code, notes, and snippets.

@skorokithakis
Created February 8, 2012 19:36
Show Gist options
  • Save skorokithakis/1772719 to your computer and use it in GitHub Desktop.
Save skorokithakis/1772719 to your computer and use it in GitHub Desktop.
Flash decompression
import zlib
infile = open("test.swf", "rb")
infile.seek(0, 0)
if infile.read(3) == "CWS":
data = "FWS" + infile.read(5) + zlib.decompress(infile.read())
open("decompressed.swf", "wb").write(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment