Skip to main content

Python 3 Wrapper for the binary edge API https://www.binaryedge.io/

Project description

pybinaryedge

Python 3 Wrapper for the BinaryEdge API https://www.binaryedge.io/. See the APIv2 documentation for more information, or the documentation for this library on Read the Docs.

Installation

To install this tool, it is recommended to use virtual environments.

You can install it directly from pypi with pip install pybinaryedge.

You can Then you can install it directly from sources :

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

If you use pipenv, you can run instead :

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

You need to have an account on the Binary Edge platform, create an API key, and configure the CLI tool to use it with binaryedge config --key KEY

API

See the documentation on Read the Docs.

Example :

from pybinaryedge import BinaryEdge

be = BinaryEdge(API_KEY)
# Iterate over the first page of IPs having specific ssh configuration
search = 'ssh.algorithms.encryption.keyword:"aes256-cbc" ssh.banner.keyword:"SSH-2.0-OpenSSH_LeadSec"'
for ip in be.host_search(search):
    print('%s': % ip['origin']['ip'])

List of functions implemented :

CLI

This library also implements a CLI binaryedge tool :

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

Example :

$ 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]

Changelog

0.4: Add support for BinaryEdge sensors

License

This code is published under MIT license

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybinaryedge-0.4.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

pybinaryedge-0.4-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file pybinaryedge-0.4.tar.gz.

File metadata

  • Download URL: pybinaryedge-0.4.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2rc1

File hashes

Hashes for pybinaryedge-0.4.tar.gz
Algorithm Hash digest
SHA256 9cac9a22053893f88aed7f326a689b86895e1085b1fee743837419a1534822ee
MD5 094374f6e66b4dd6b7c8fbe195b3086d
BLAKE2b-256 4c5f054cfa6971052316e6d09382b41c9e9d6e3c8512a8d98c5bffae8ca9e574

See more details on using hashes here.

File details

Details for the file pybinaryedge-0.4-py3-none-any.whl.

File metadata

  • Download URL: pybinaryedge-0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2rc1

File hashes

Hashes for pybinaryedge-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dce8d50628263ce1fd678a8e2eebc7db1da54dfc0944c397386b9e6eba058ec9
MD5 7a726fc333edebb484cb4c51c739f10a
BLAKE2b-256 b60979eef2119aa7dc0b93e291878dcbfd4dbe6bf73b1f46231cce1a039371a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page