Skip to main content

Official API package for https://injects.cert.pl

Project description

injectslib

Python APi for https://injects.cert.pl. Compatible with python2 and python3.

Info

Contact email: msm@cert.pl

Example

import sys
from injectslib import InjectsApi


if len(sys.argv) == 1:
    print("Usage: example.py api_token")
api = InjectsApi(sys.argv[1])

print("Attacks on {}:".format(api.organisation().name))
for attack in api.attacks():
    print(" - attack by {}, first observed at {}".format(
        attack.family,
        attack.first_seen_iso
    ))
    for inject in attack.injects:
        print("   - inject when url like {}".format(inject.url_pattern))
    for action in attack.actions:
        print("   - {} when url like {}".format(
            action.act_type, action.url_pattern
        ))

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

injectslib-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

injectslib-0.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file injectslib-0.0.1.tar.gz.

File metadata

  • Download URL: injectslib-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for injectslib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1c418f191815de218512e2eb892ff6dfed5e8ae8b6da8a4ad24db108998ef4c3
MD5 ec7b67dc6d2de2baf7bdcdfe3f9a9f85
BLAKE2b-256 22f56383c16632559ce5b68bb5989c7f30891f569fa8a3371315b01de8f6f821

See more details on using hashes here.

File details

Details for the file injectslib-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: injectslib-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for injectslib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d067b527545fc9675bafddd89c60ab739c0414457dbec17ae2306dc570a639e3
MD5 108bd0f3e74c5c7c2c957c7bbfcf637e
BLAKE2b-256 357f9228e170e63ddf8c5283822dad7e98e16dbf2d1b5103367b9d01e49c62fb

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