OpenVAS Scanner
21.4.1
|
The nasl - plugin class. Loads or launches nasl- plugins. More...
#include "../misc/network.h"
#include "../misc/plugutils.h"
#include "../nasl/nasl.h"
#include "pluginlaunch.h"
#include "pluginload.h"
#include "pluginscheduler.h"
#include "processes.h"
#include <errno.h>
#include <glib.h>
#include <gvm/base/drop_privileges.h>
#include <gvm/base/networking.h>
#include <gvm/base/prefs.h>
#include <gvm/base/proctitle.h>
#include <gvm/util/nvticache.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <utime.h>
Macros | |
#define | G_LOG_DOMAIN "sd main" |
GLib log domain. More... | |
Functions | |
static int | check_nvti (const char *filename, nvti_t *nvt) |
Check that the nvt's data is valid. More... | |
int | nasl_plugin_add (char *folder, char *filename) |
Add one .nasl plugin to the plugin list. More... | |
static void | nasl_thread (struct script_infos *) |
int | nasl_plugin_launch (struct scan_globals *globals, struct in6_addr *ip, GSList *vhosts, kb_t kb, kb_t main_kb, const char *oid) |
Launch a NASL plugin. More... | |
The nasl - plugin class. Loads or launches nasl- plugins.
#define G_LOG_DOMAIN "sd main" |
GLib log domain.
|
static |
Check that the nvt's data is valid.
filename | Filename of the NVT. |
nvt | NVT to check. |
int nasl_plugin_add | ( | char * | folder, |
char * | filename | ||
) |
Add one .nasl plugin to the plugin list.
The plugin is first attempted to be loaded from the cache. If that fails, it is parsed (via exec_nasl_script) and added to the cache.
folder | Path to the plugin folder. |
filename | File-name of the plugin |
int nasl_plugin_launch | ( | struct scan_globals * | globals, |
struct in6_addr * | ip, | ||
GSList * | vhosts, | ||
kb_t | kb, | ||
kb_t | main_kb, | ||
const char * | oid | ||
) |
Launch a NASL plugin.
|
static |