Skip to main content

Async JARM client

Project description

aiojarm

CI Python versions PyPI version

Async version of JARM.

Installation

pip install aiojarm

Usage

import asyncio
import aiojarm

loop = asyncio.get_event_loop()
fingerprints = loop.run_until_complete(
    asyncio.gather(
        aiojarm.scan("www.salesforce.com"),
        aiojarm.scan("www.google.com"),
        aiojarm.scan("www.facebook.com"),
        aiojarm.scan("github.com"),
    )
)
print(fingerprints)
# [
#     (
#         "www.salesforce.com",
#         443,
#         "23.42.156.194",
#         "2ad2ad0002ad2ad00042d42d00000069d641f34fe76acdc05c40262f8815e5",
#     ),
#     (
#         "www.google.com",
#         443,
#         "172.217.25.228",
#         "27d40d40d29d40d1dc42d43d00041d4689ee210389f4f6b4b5b1b93f92252d",
#     ),
#     (
#         "www.facebook.com",
#         443,
#         "31.13.82.36",
#         "27d27d27d29d27d1dc41d43d00041d741011a7be03d7498e0df05581db08a9",
#     ),
#     (
#         "github.com",
#         443,
#         "52.192.72.89",
#         "29d29d00029d29d00041d41d0000008aec5bb03750a1d7eddfa29fb2d1deea",
#     ),
# ]

CLI usage

$ aiojarm --help
Usage: aiojarm [OPTIONS] HOSTNAMES...

Arguments:
  HOSTNAMES...  IPs/domains or a file which contains a list of IPs/domains per
                line  [required]


Options:
  --port INTEGER         [default: 443]
  --max-at-once INTEGER  [default: 8]
  --install-completion   Install completion for the current shell.
  --show-completion      Show completion for the current shell, to copy it or
                         customize the installation.

  --help                 Show this message and exit.

$ aiojarm 1.1.1.1
1.1.1.1,443,1.1.1.1,27d3ed3ed0003ed1dc42d43d00041d6183ff1bfae51ebd88d70384363d525c

$ aiojarm google.com.ua google.gr
google.com.ua,443,172.217.25.195,27d40d40d29d40d1dc42d43d00041d4689ee210389f4f6b4b5b1b93f92252d
google.gr,443,216.58.220.131,27d40d40d29d40d1dc42d43d00041d4689ee210389f4f6b4b5b1b93f92252d

# or you can input hostnames via a file
$ aiojarm list.txt

License

JARM is created by Salesforce's JARM team and it is licensed with 3-Clause "New" or "Revised" 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

aiojarm-0.2.2.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

aiojarm-0.2.2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file aiojarm-0.2.2.tar.gz.

File metadata

  • Download URL: aiojarm-0.2.2.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.2 Darwin/20.6.0

File hashes

Hashes for aiojarm-0.2.2.tar.gz
Algorithm Hash digest
SHA256 3e297f6a2c0dcb87d5a76cc0549531b5ea299fe25fb3880177364ac23d5957ff
MD5 2ba5cda481577b661db21531ce26e4c9
BLAKE2b-256 01f904652a01c701d3a6085801ff63c81434b8df435227c9fc76c4580c1fed20

See more details on using hashes here.

File details

Details for the file aiojarm-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: aiojarm-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.2 Darwin/20.6.0

File hashes

Hashes for aiojarm-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f0cc2b537666a2a67164e020a8985a0c112d79a72670dcda8c785cf5b9fe9902
MD5 c8872ab965a073ff4524557cf0d1a2fa
BLAKE2b-256 1818a196277bfc0af3ed503c51dd59c58209298f3334c3d43be87ec4972c529e

See more details on using hashes here.

Supported by

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