mirror of
https://github.com/BlackLight/Snort_AIPreproc.git
synced 2024-11-14 20:57:15 +01:00
20 lines
537 B
Text
20 lines
537 B
Text
Python module for interfacing with SnortAI. Compile it and install it through
|
|
|
|
$ python setup.py build
|
|
$ [sudo] python setup.py install
|
|
|
|
You can then access the alerts information captured by Snort simply by writing a
|
|
code like the following (also see module.py):
|
|
|
|
import snortai
|
|
|
|
alerts = snortai.alerts()
|
|
|
|
for alert in alerts:
|
|
# Access the information
|
|
|
|
The alert class has the following members:
|
|
|
|
# id, gid, sid, rev, description, priority, classification, timestamp
|
|
# from, to, from_port, to_port, latitude, longitude, alerts_count
|
|
|