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/>;。`_
====
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/>;。`_