二进制边缘API的Python3包装https://www.binary edge.io/

pybinaryedge的Python项目详细描述


PybinaryEdge

BinaryEdge API的Python3包装器https://www.binaryedge.io/。有关详细信息,请参阅APIv2 documentation,或Read the Docs上此库的文档。

安装

要安装此工具,建议使用virtual environments

您可以使用pip install pybinaryedgepypi直接安装它。

然后您可以直接从以下来源安装:

git clone https://github.com/Te-k/pybinaryedge.git
cd pybinaryedge
pip install .

如果使用pipenv,则可以运行:

git clone https://github.com/Te-k/pybinaryedge.git
cd pybinaryedge
pipenv install

您需要在Binary Edge platform上拥有一个帐户,创建一个api密钥,并将cli工具配置为与binaryedge config --key KEY

API

请参阅Read the Docs上的文档。

示例:

frompybinaryedgeimportBinaryEdgebe=BinaryEdge(API_KEY)# Iterate over the first page of IPs having specific ssh configurationsearch='ssh.algorithms.encryption.keyword:"aes256-cbc" ssh.banner.keyword:"SSH-2.0-OpenSSH_LeadSec"'results=be.host_search(search)foripinresults['events']:print("%s"%(ip['target']['ip']))

实现的功能列表:

cli

此库还实现了一个cli binaryedge工具:

usage: binaryedge [-h] {config,ip,search,dataleaks} ...

Request BinaryEdge API

positional arguments:
  {config,ip,search,dataleaks}
                        Commands
    config              Configure pybinary edge
    ip                  Query an IP address
    search              Search in the database
    dataleaks           Search in the leaks database
    domains             Search information on a domain

optional arguments:
  -h, --help            show this help message and exit

示例:

$ binaryedge config --key KEY
$ binaryedge ip -i 149.202.178[.]130
{
    "events": [
        {
            "port": 27017,
            "results": [
                {
                    "origin": {
                        "country": "sg",
                        "ip": "172.104.173.35",
                        "module": "grabber",
                        "ts": 1536782325059,
                        "type": "service-simple"
[SNIP]

更改日志

  • 0.5:修复文档和代码中的错误。添加对host_vulnerabilities
  • 的支持
  • 0.4:添加对BinaryEdge sensors
  • 的支持

许可证

此代码在麻省理工学院许可下发布

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

推荐PyPI第三方库


热门话题
java如何在安卓 studio中使用调用jaxws web服务的jar文件   java双时间模拟时钟不打印两个不同的时间   java Jackson反序列化处理不带字段的生成值   多线程在java同步中读锁的目的是什么   为什么java中有这么多获取日期时间的方法?   java从listview中的TextView获取数据   java是否可以定义如何对枚举进行(反)序列化以在枚举内持久化?   Java:异常处理我的catch()有问题   VMWare java SDK:可用的PerfMetricID何时不报告数据?   exec在Java中执行命令而不重定向输出   java使用SpringXML配置实现观察者模式?   java在竹笔平板电脑中使用JPen