Skip to main content

A python API for ShadowTrackr

Project description

ShadowTrackr API for Python

ShadowTrackr is a service that discovers your online attack surface and displays it in a nice graph. Anything found will be monitored for security issues. You can enable notifications by email or push messages, or just ingest them in your SIEM.

All changes to your hosts, websites, certificates, dns and whois records are logged and searchable. Additionally, you can set specific traps for keywords or events that you want to monitor, for instance a username appearing in leaked data on pastebin.

The API allows you to integrate ShadowTrackr with your other security tools. This is a python package to simplify integration.

Installation::

pip install shadowtrackr

Usage::

from shadowtrackr import ShadowTrackr
from time import sleep

# first, setup the api with your API key
# you'll find it at: https://shadowtrackr.com/usr/settings?s=api

st = ShadowTrackr(api_key=API_KEY)

# add some assets as a starting point

assets = ["shadowtrackr.com", "vanschaik-ltd.com", "139.162.214.30"]
st.add_assets(assets)

# now give ST about 15 minutes for initial discovery
sleep(15*60)

# get your results
host = st.get_hosts()
websites = st.get_websites()
certificates = st.get_certificates()

# show all certificate problems found:
for c in certificates:
    if c["problems"]:
        print(c["url"] + " has problems:")
        for p in c["problems"]:
            print(p)
        print("\n")

Get a PNG version of a network graph::

from shadowtrackr import ShadowTrackr
from io import BytesIO
from PIL import Image
# note that you might have to do this first: pip install pillow

st = ShadowTrackr(api_key=API_KEY)
img = Image.open(BytesIO(st.get_graph(name="Attack surface")))
img.save("Attack Surface Graph.png", "PNG")

You can find the complete API documentation at https://shadowtrackr.com/docs/api

If you have any questions or requests, please send them here: https://shadowtrackr.com/support

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

shadowtrackr-1.4.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shadowtrackr-1.4.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file shadowtrackr-1.4.1.tar.gz.

File metadata

  • Download URL: shadowtrackr-1.4.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.9.0

File hashes

Hashes for shadowtrackr-1.4.1.tar.gz
Algorithm Hash digest
SHA256 cd42524f046609fbf825f12529cf5ab47ed6808a8b863657e0658deadf63a87c
MD5 c2a03494cd2d399a599159ec1974a53a
BLAKE2b-256 b09b903f4b8579bd4626ab9525ef32ea553f29d89c84e8c75ca98a152db8f384

See more details on using hashes here.

File details

Details for the file shadowtrackr-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: shadowtrackr-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.9.0

File hashes

Hashes for shadowtrackr-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b366e7145bf3aa4dda70aaa8d8967f604af634c94c796d260c62448a3e3892b2
MD5 eec5edb8bb6bcafc85a87a6bc86181f2
BLAKE2b-256 91da7b58e5ae6ab59d555d955f980615ff46223f1272b6e4b053dc4f5df08591

See more details on using hashes here.

Supported by

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