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第三方库


热门话题
java编辑并重新运行spring引导单元测试,无需重新加载上下文即可加快测试速度   为什么我不能做演员?   java为什么是线程。join通常用于停止安卓中的线程   java从weblogic服务器调用JSON POST REST服务时收到400:错误请求   java在DeviceAdmin模式禁用时设置身份验证?   java SortedMap的keySet()能否始终安全地强制转换到SortedSet?   安卓 java。lang.NoSuchMethodException可包裹类   java JOGL库安装   javatomcat内存管理   java使用getString()中的变量   java将最小星号设置为评级栏   Java中字符串相等的println()方法。。。它到底是如何工作的?   java如何从文本中输出的数组中放入随机图像