pyshadowserver 0.1

Last updated:

0 purchases

pyshadowserver 0.1 Image
pyshadowserver 0.1 Images
Add to Cart

Description:

pyshadowserver 0.1

Pyshadowserver

Python library to interact with the Shadow Server Report API.
So far it only implements the ASN, malware, Trusted Programs and report queries.
API
See the documentation and the source code for more information.
Unauthenticated queries
from pyshadowserver import ShadowServer, ShadowServerException

ss = ShadowServer()

ss.asn(origin="8.8.8.8")
ss.trusted_program("7fe2248de77813ce850053ed0ce8a474")

Querying reports
from pyshadowserver import ShadowServer, ShadowServerException

ss = ShadowServer(APIKEY, APISECRET)

# Find all reports and save them
reports = ss.reports_list()
for r in reports:
data = ss.reports_download_raw(r["id"])
with open(r["file"], "w+") as f:
f.write(data)

License
This code is published under MIT license: do whatever you want with it, but don't blame me if it fails (and open a PR)

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.