影子服务器-二进制白名单和MD5/SHA1 AV服务API

shadow-server-api的Python项目详细描述


https://raw.githubusercontent.com/blacktop/shadow-server-api/master/doc/logo.png

影子服务器API

travisciversiondownloadstip

影子服务器-二进制白名单和MD5/SHA1 AV服务API

https://www.shadowserver.org

安装

$ pip install shadow-server-api

使用量

md5/sha1 AV服务

importjsonfromshadow_server_apiimportShadowServerApiss=ShadowServerApi()response=ss.get_av('039ea049f6d0f36f55ec064b3b371c46')printjson.dumps(response,sort_keys=False,indent=4)

输出:

{"sha1":"ada0f47d8a52d664a5548bf67aa4a28c1d7dbf15","last_seen_date_utc":"2013-12-12 15:11:38","file_type":"exe","response_code":200,"av":{"DrWeb":"BackDoor.Kuluoz.4","FSecure":"Suspicious:W32/Malware!Online","Clam":"PUA.Win32.Packer.Upx-53","Symantec":"Trojan.Fakeavlock","TrendMicro":"TROJ_SPNR.11LC13","Avast":"Win32:Malware-gen","GData":"Trojan.GenericKD.1449455","Kaspersky":"Trojan-Downloader.Win32.Dofoil.rmy","BitDefender":"Trojan.GenericKD.1449455","McAfee":"RDN/Downloader.a!og","Eset":"Win32/Kryptik.BQYU","Avira":"TR/Crypt.ZPACK.Gen8","Sunbelt":"Trojan.Win32.Dofoil.qtz","K7":"Trojan ( 004912141 )","Fortinet":"W32/DOFOIL.LF!tr","Microsoft":"TrojanDownloader:Win32/Kuluoz.D","AVG":"Generic_r.DHD","K7GW":"Trojan ( 004912141 )","Emsisoft":"Trojan.GenericKD.1449455","QuickHeal":"TrojanDownloader.Kuluoz.aob","Comodo":"UnclassifiedMalware"},"ssdeep":"","first_seen_date_utc":"2013-12-12 15:11:38","md5":"039ea049f6d0f36f55ec064b3b371c46"}

二进制白名单

importjsonfromshadowserver.shadow_server_apiimportShadowServerApiss=ShadowServerApi()response=ss.get_bintest('5e28284f9b5f9097640d58a73d38ad4c')printjson.dumps(response,sort_keys=False,indent=4)

输出:

{"response_code":200,"results":{"os_mfg":"Microsoft Corporation","fileversion":"5.1.2600.5512","reference":"os_patches_all","application_type":"exe","filetimestamp":"04/14/2008 12:00:00","sig_timestamp":"04/14/2008 02:07:47","language_code":"1033","source_version":"1.6","dirname":"c:\\WINDOWS\\system32","binary":"1","source":"AppInfo","product_version":"5.1.2600.5512","mfg_name":"Microsoft Corporation","filename":"notepad.exe","os_version":"5.1","sig_trustfile":"C:\\WINDOWS\\system32\\CatRoot\\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\\NT5.CAT","filesize":"69120","sha256":"865F34FE7BA81E9622DDBDFC511547D190367BBF3DAD21CEB6DA3EEC621044F5","sha512":"CB7218CFEA8813AE8C7ACF6F7511AECBEB9D697986E0EB8538065BF9E3E9C6CED9C29270EB677F5ACF08D2E94B21018D8C4A376AA646FA73CE831FC87D448934","product_name":"Microsoft Windows Operating System","os_name":"Microsoft Windows XP Professional Service Pack 3 (build 2600)","description":"Notepad","trusted_signature":"1","crc32":"877EA041","bit":"32","md5":"5E28284F9B5F9097640D58A73D38AD4C","sha1":"7A90F8B051BC82CC9CADBCC9BA345CED02891A6C","language":"English","signer":"Microsoft Windows Component Publisher","strongname_signed":"0"}}

测试

运行测试:

$ ./tests

贡献

  1. 用叉子叉。
  2. 创建分支(git checkout-b my_shadow_server_api
  3. 提交更改(git commit-am“添加了一些很酷的东西”
  4. 推到分支(git push origin my_shadow_server_api
  5. 打开[拉取请求](https://github.com/blacktop/shadow-server-api/pulls
  6. 等我弄清楚什么是拉请求…

发布历史记录

1.0.4(2014-05-18)

修复

    Read Me/LI>中的安装错误

1.0.2(2014-05-18)

api更改

  • 更改文件夹结构,这样当人们导入时它就不会是哑的:(

1.0.1(2014-04-14)

错误修复

  • 正在尝试修复setup.py以部署到pypi。

欢迎加入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如何从文本中输出的数组中放入随机图像