与virus total.com api交互的python脚本

virustotal-api-v2的Python项目详细描述


……图片::https://virustotalcloud.appspot.com/static/img/logo small.png

==


>与virustotal.com api v2交互的python脚本:
-https://www.virustotal.com/en/documentation/public api/
-https://www.virustotal.com/en/documentation/private api/




安装代码块::bash

$pip install virustotal-api-v2


用法:bash
==
…代码块::bash
用法:vt.py[-h][-k][-sk setkey][-gf getfile][-gu geturl]
[-gi getip][-gd getdomain][-c comment comment]
[-sf scanfile][-su scanurl][-r rescan][-b behavior]
[-uf urlfeed][-nt network][-fs filesearch][-dl download]
[-o输出] [-q] [BR/>< BR/>可选参数:
-H,帮助显示此帮助消息,并退出
-K,GETKey打印您的ViuStualAPI键
-SK,SETKIK[ APIIKIKEY ]设置ViuStoTalAPI键BR/> -GF,-GETFIOL[OPTION:路径/to/file,md5]返回指定文件的结果
-gu,--geturl[url]返回指定url的结果
-gi,--getip[ip_address]返回指定ip地址的结果
-gd,--getdomain[domain]返回指定
-c的结果,--注释[资源][注释]对指定资源的注释(哈希)
-sf,--scan file[选项:路径/到/文件,md5]返回指定文件的结果
-su,--scan url[url]提交指定的扫描URL
-r,--rescan[选项:/路径/到/文件,hash]请求
-b的newscan,--行为[选项:/路径/to/file,hash]请求动态行为报告[私有api]
-uf,--urlfeed[package]请求时间窗口[私有api]的接收项
-nt,--网络[选项:/路径/to/file,hash]请求文件[私有api]的流量转储
-fs,--file search[options:/path/to/file,hash]请求文件搜索[private api]
-dl,--download[options:/path/to/file,hash]下载文件[private api]
-o,--output[options:stdout,html,json]设置结果输出类型。默认值=json
-q,--quiet设置时,不打印到stdout
-nb,--nobrowser使用“html”模式时,将禁用报表的自动打开



用法:python
===
。代码块::python

文件
----
vt.getfile('path/to/filename.ext')
vt.getfile('ee0fc30726c6dc1ef9ed15809c58d2bb438456ab')
vt.scanfile('path/to/file.ext')
vt.rescan('file.ext')
vt.rescan('ee0fc30726c6dc1ef9ed15809c58d2bb438456ab')

api调用:网络
网络<<
vt.geturl('https://github.com/nu11p0inter/')
vt.scanurl('http://github.com/nu11p0inter.com')
vt.getip('98.76.54.54.32')



网络<
网络
网络
网络<
vt.geturl('http://github.com/nu11p0inter.com/nu11p0inter.com')
vt.getip('98.76.76.54.32.32')
vt.getware@https://github.com/nu11pInter/virustotal/“
vt.comment(散列,
vt.comment('path/to/filename.extname.ext,msg)





;设置输出方法:
----
vt.out('html')
vt.out('print')
vt.out('print')






笔者
==
===

lt;lt;dev@appsec.it>;

https://github http://github.com/nu11p0ni11



使用扫描API的许可证
=
,您同意virustotal[服务条款](https://www.virustotal.com/en/about/terms of service/)
,并允许virustotal与安全社区共享此文件。参见virustotal[隐私政策](https://www.virustotal.com/en/about/privacy/)了解详细信息。



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

推荐PyPI第三方库


热门话题
java向嵌入式Jetty添加多个端点   java如何在JAXWS处理程序中区分请求和响应?   使用Scenebuilder for JAVAFx的登录应用程序的java MVC体系结构   java对话框将不显示   Windows 7上的Java系统变量   java删除动态添加的面板   java将Javadoc嵌入到HTML网站中   带有URL编码数据的java Spring RestTemplate POST请求   java JAXR只运行一次函数   HttpClient缺少java依赖项   java深层反射比较   基于javarmi和CORBA的分布式计算   如何使用当前数据库时间从Java更新MongoDB?   java通过光标保存数据调试时显示错误数据