# 从 exe 中提取原 swf > 最近在和室友打死神vs火影和海贼vs妖尾,后者官方只提供了flashplayer17打包的exe,不知为何在我电脑上运行总是无响应。 > > 尝试拆 exe 失败,在 flashpoint 的 wiki 上找到了解决方法。 ## 1. Wiki链接 https://flashpointarchive.org/datahub/Extracting_Flash_Games ## 2. 脚本内容 ```python #!/usr/bin/env python3 import argparse from os.path import splitext from struct import unpack def main(): parser = argparse.ArgumentParser(description="Extract Flash application from file") parser.add_argument("file", help="Input file") args = parser.parse_args() with open(args.file, "rb") as file: file_type = file.read(4) file.seek(-8, 2) if file_type == b"Joy!": # Mac file_size, file_type = unpack(">II", file.read(8)) elif file_type[:2] == b"MZ": # Win file_type, file_size = unpack("