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
))
Metadata
Release files for injectslib 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| injectslib-0.0.1.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| injectslib-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / injectslib-0.0.1.tar.gz
| Download URL | injectslib-0.0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c418f191815de218512e2eb892ff6dfed5e8ae8b6da8a4ad24db108998ef4c3
|
|
BLAKE2b-256 checksum How to use checksums |
22f56383c16632559ce5b68bb5989c7f30891f569fa8a3371315b01de8f6f821
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / injectslib-0.0.1-py3-none-any.whl
| Download URL | injectslib-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d067b527545fc9675bafddd89c60ab739c0414457dbec17ae2306dc570a639e3
|
|
BLAKE2b-256 checksum How to use checksums |
357f9228e170e63ddf8c5283822dad7e98e16dbf2d1b5103367b9d01e49c62fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|