python virustotal私有api 2.0实现。

pyvt的Python项目详细描述


pyvt
====

`virustotal<;https://www.virustotal.com/>;``私有
api<;https://www.virustotal.com/en/documentation/private api/>;``私有。在
其当前形式中,它只实现api的一个子集,并且
不完整。


此模块从
`virustotal2<;https://github.com/phillipmartin/virustotal2>;``模块中借用代码。
它使用与virustotal2相同的速率限制逻辑。此外,它还将api的输出统一为json格式,并增加了对批量查询的支持。


'66.33.221.102'])


'http://3dlight.com.ar/wp content/themes/theme1392/js/modernizr-2.0.js',
'http://3dlight.com.ar/wp content/themes/theme1392/js/custom.js',
'http://3dltaller.com.ar/wp-content/themes/theme1392/js/jquery-1.6.4.min.js']



检索域
api.retrieve('3dltaller.com.ar')


安装

-






















api


api




是的=pyvt.api('~/.virustotal.key')使用
api=pyvt.api的默认方式(''',api_key=<;vt api key>;,limit_per戋min=<;number>;)提供其他参数

3000是默认值。您也可以选择
提供一个字符串参数作为API参数。
BR/> API < BR/>==
< BR/> >使用方法检索()从ViuStoTalk获得一个已有的报告。
此方法的第一个参数可以是:

- MD5的单个或列表,sha1或sha256个文件
-一个或一个url列表
-一个或一个ip地址列表
-一个或一个域名列表

retrieve()将尝试自动检测您提供的内容。如果你想说清楚,您可以使用thing \-type参数和
值:

-ip
-domain
-hash
-file
-base64
-url

可以使用e scan()方法扫描特定的URL。扫描方法
当前仅支持URL,如果给它除URL以外的任何
对象,它都将通过异常。


下面是扫描方法的一个示例用法,该方法将阻塞直到所有扫描结果可用。




response,fail=api.scan(['http://3dlater.com.ar/',
'http://3dlight.com.ar/wp content/themes/theme1392/js/jquery.loader.js',
'http://3dlight.com.ar/wp includes/js/swfobject.js',
'http://3dlight.com.ar/wp content/themes/theme1392/js/modernizr-2.0.js',
'http://3dlight.com.ar/wp content/themes/theme1392/js/custom.js',
'http://3dlight.com.ar/wp content/themes/theme1392/js/jquery-1.6.4.min.js',blocking=true)



这里是无阻塞扫描方法的另一个使用示例。




response,fail=api.scan(['http://3dlight.com.ar/',
'http://3dlight.com.ar/wp content/themes/theme1392/js/jquery.loader.js',
'小时ttp://3dlight.com.ar/wp包含/js/swfobject.js',
'http://3dlight.com.ar/wp content/themes/theme1392/js/modernizr-2.0.js',
'http://3dlight.com.ar/wp content/themes/theme1392/js/custom.js',
'http://3dlight.com.ar/wp content/themes/theme1392/js/jquery-1.6.4.min.js'])


对于非阻塞调用,您需要使用“retrieve”方法在稍后阶段获取扫描结果。注意,“scan”
方法将返回一个元组,其中第二个元素是
的url,virustotal api返回一个失败状态响应代码,
方法将不再尝试提交。

https://www.virustotal.com/en/documentation/private api/>;。`_

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
javascript问题:通过URL用网站数据填充Textview   java TabLayout Android,如何用几个标签填充整个屏幕宽度,并用大量标签滚动?   Eclipse Java运行的文件不再存在于我的工作区中   安装两个Java版本时,使用Java的windows链接不起作用   java将多个图形添加到单个JPanel   java Kafka ConsumerFactory,带有两个Desiarizer   使用反射更改java类超类   当一致性测试失败时,java有没有办法让堆栈跟踪显示在控制台中   java映射到基元类型的HashMap的快速替代方案是什么?   java关闭一个jframe所有剩余的打开jframe都将关闭。   java为什么不推荐“使用getString()获取设备标识符”?   java值比较和值赋值之间有什么性能差异吗?   Java实体数组到JavaScript数组   java使用流将一个列表转换为另一个列表   在JTree中保存对象,但更改显示的名称(java swing)?   java“Hello world”Android应用程序,文件尽可能少,没有IDE,只有文本编辑器   java在方法之间传递值   java如何为项目数组创建ParseQuery?