2.2 KiB
How to
How to feed the AIL framework
For the moment, there are three different ways to feed AIL with data:
-
Be a collaborator of CIRCL and ask to access our feed. It will be sent to the static IP your are using for AIL.
-
You can setup pystemon and use the custom feeder provided by AIL (see below).
-
You can feed your own data using the ./bin/import_dir.py script.
Feeding AIL with pystemon
AIL is an analysis tool, not a collector! However, if you want to collect some pastes and feed them to AIL, the procedure is described below.
Nevertheless, moderate your queries!
Feed data to AIL:
-
Clone the pystemon's git repository
-
Install its python dependencies inside your virtual environment
-
Launch pystemon
./pystemon
-
Edit your configuration file
bin/packages/config.cfg
and modify the pystemonpath path accordingly -
Launch pystemon-feeder
./pystemon-feeder.py
How to create a new module
If you want to add a new processing or analysis module in AIL, follow these simple steps:
-
Add your module name in ./bin/packages/modules.cfg and subscribe to at least one module at minimum (Usually, Redis_Global).
-
Use ./bin/template.py as a sample module and create a new file in bin/ with the module name used in the modules.cfg configuration.
How to create a new webpage
If you want to add a new webpage for a module in AIL, follow these simple steps:
-
Launch ./var/www/create_new_web_module.py and enter the name to use for your webpage (Usually, your python module).
-
A template and flask skeleton has been created for your new webpage in ./var/www/modules/
-
Edit the created html files under the template folder as well as the Flask_* python script.
How to contribute a module
Feel free to fork the code, play with it, make some patches or add additional analysis modules.
To contribute your module, feel free to pull your contribution.