Async JARM client
Project description
aiojarm
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 hashes)