二进制边缘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 Libgdx管理单个Clicklistener的问题   编译Java反编译>重新编译过程,安全吗?   将java RGB值转换为颜色。价值   swing java AWT本机操作系统库?   java将HTTPS添加到Google App Engine上的自定义域(并保持HTTP工作)   windows Java swing应用程序即服务   JavaSpring身份验证提供程序忽略我的详细信息   java在usb 安卓非根设备中创建文件夹?   java如何操作粘贴到JTextField中的文本,而不是键入的输入?   java jinterop无法通过WMI监视Win7   java文件解密:IllegalBlockSizeException:解密中的最后一个块未完成   运行Java时出现问题。对雄猫的战争   java在Harmony OS中,可为空和非空注释的替代方案是什么?   swagger ui删除SpringFox swagger ui中的基本错误控制器   java Spring引导自定义外部配置加载顺序   尝试连接到RMI注册表但获取java时出现异常。网连接异常:连接被拒绝:连接   png Java webapp图像文件上传最佳实践   java如何降级JDK?   带有两个标签的java JOptionPane