Neet User Guide

The Global Service Monitors (GSMs)

The Global Service Monitors are the modules which test each service as it is recorded (provided there is enough spare budget; if there isn't then the service is queued). They are Perl modules and loaded into memory when neet starts by the GlobalServiceMonitor.pm core neet module. They are run in a strict environment, and any modules which fail to parse properly are not loaded; the failure is logged, although neet will function as normal without the broken module. Obviously whichever functionality the module was meant to provide will be missing from the scans.

The simplest way to add a new module is to change into the /opt/neet/modules/ directory and copy the Template.gsm.temp file, renaming it to reflect the function of the module. The Global Service Monitor handler module will attempt to load any file in this directory that has the .gsm extension, which is the reason for the template module having a .temp extension.

The template module is well commented, and it should be fairly simply to configure the options near the top of the script. There are a few rules which must be followed:

The template module contains all of the code necessary for the module to function properly within neet, including the advanced functionality such as pause/resume, multi-threading, budget control and queueing etc. All that needs to be added is the test-specific code, which should be inserted into the activate() function, where the CODE GOES HERE banner is found.

There is an API reference in the comments of that section, so you will know what information is already available to your module and how to record vulnerabilities and other messages, and log in a standard way that does not cause havoc with file locks.