Snortunsock
A Python listener to capture Snort event via the UNIX Socket output.
Snortunsock can parse and show the alert message.
Installation
Install Snortunsock from PyPI:
$ pip install snortunsock
Usage
The basic usage
import dpkt
from snortunsock import snort_listener
for msg in snort_listener.start_recv("/tmp/snort_alert"):
print('alertmsg: %s' % ''.join(msg.alertmsg))
buf = msg.pkt
# buf is a raw packet which can use dpkt library to parsing it
# Unpack the Ethernet frame (mac src/dst, ethertype)
eth = dpkt.ethernet.Ethernet(buf)
The complicated examples are in the examples folder
LICENSE
Apache License, Version 2.0
Metadata
Release files for snortunsock 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| snortunsock-0.0.5.tar.gz | 7.8 kB | Without provenance | Details for snortunsock-0.0.5.tar.gz |
Release files / snortunsock-0.0.5.tar.gz
| Download URL | snortunsock-0.0.5.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58feaaf05dee7a85eb203ebdf78860b78fdf59037de678fcd7f243fda01eabc2
|
|
BLAKE2b-256 checksum How to use checksums |
5628aa43b16088385cc585b901eb96322d962e88487a9214890f289925776425
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for snortunsock 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.