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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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