求教:Usage: xxxswf.py [options] 这个命令应该怎么用

icecream15y 2013-04-25 09:55:04
这个工具是用来扫描swf文件搜索文档标签等功能的,但是不太懂用法,求大家指导
我试了 saw_py.py -h a.swf 提示SyntaxError: invalid syntax,不明白<file.bad>是什么。


xxxswf是一款python写的小工具,它可以用于Flash SWF文件的分析、扫描,压缩和解压缩。xxxswf可以扫描单个swf文件、文档中嵌入的多个swf文件和目录下的所有文件。
使用方法:
Usage: xxxswf.py [options] <file.bad>
Options:
-h, --help show this help message and exit
-x, --extract Extracts the embedded SWF(s), names it MD5HASH.swf &
saves it in the working dir. No addition args needed
-y, --yara Scans the SWF(s) with yara. If the SWF(s) is
compressed it will be deflated. No addition args
needed
-s, --md5scan Scans the SWF(s) for MD5 signatures. Please see func
checkMD5 to define hashes. No addition args needed
-H, --header Displays the SWFs file header. No addition args needed
-d, --decompress Deflates compressed SWFS(s)
-r PATH, --recdir=PATH
Will recursively scan a directory for files that
contain SWFs. Must provide path in quotes
-c, --compress Compresses the SWF using Zlib
xssswf有几个功能:-x是从文件中提取嵌入的SWF文件,看了一下源码是扫描字节流中的CWS|FWS关键字,再解析swf文件头判断是否是swf文件,确认后再提取。
-y是使用yara扫描swf文件,yara是一个非常不错的python模块,它让python的扫描匹配变得如此简单容易。jsunpack就是使用了它来确认恶意HTML,pdf等。
-s扫描swf的md5签名
-H显示SWF文件头
-d和-c是使用python的zlib模块对swf进行解压缩和压缩。
...全文
171 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
李察德-泰森 2013-04-25
  • 打赏
  • 举报
回复
引用 2 楼 icecream15y 的回复:
引用 1 楼 selecthis 的回复:提示的 SyntaxError: invalid syntax,是 saw_py.py 文件里有语法错误 请问 saw_py.py -h a.swf 我这样写对吧?
引用 3 楼 icecream15y 的回复:
引用 1 楼 selecthis 的回复:提示的 SyntaxError: invalid syntax,是 saw_py.py 文件里有语法错误 工具是这里找的,http://www.oschina.net/p/xxxswf 能看出问题吗
我试了,没发现有你说的这个错误,你是自己修改代码了吗? 看他的说明,-h参数是帮助
angel_su 2013-04-25
  • 打赏
  • 举报
回复
贴出完整错误,才能省事知道那行语法有问题...
icecream15y 2013-04-25
  • 打赏
  • 举报
回复
引用 1 楼 selecthis 的回复:
提示的 SyntaxError: invalid syntax,是 saw_py.py 文件里有语法错误
工具是这里找的,http://www.oschina.net/p/xxxswf 能看出问题吗
icecream15y 2013-04-25
  • 打赏
  • 举报
回复
引用 1 楼 selecthis 的回复:
提示的 SyntaxError: invalid syntax,是 saw_py.py 文件里有语法错误
请问 saw_py.py -h a.swf 我这样写对吧?
李察德-泰森 2013-04-25
  • 打赏
  • 举报
回复
提示的 SyntaxError: invalid syntax,是 saw_py.py 文件里有语法错误

37,721

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧