|
OpenVAS Scanner 23.32.3
|
The nasl - plugin class. Loads or launches nasl- plugins. More...
#include "../misc/kb_cache.h"#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 <bsd/unistd.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/util/nvticache.h>#include <stdio.h>#include <string.h>#include <sys/stat.h>#include <sys/types.h>#include <unistd.h>#include <utime.h>
Go to the source code of this file.
Macros | |
| #define | G_LOG_DOMAIN "sd main" |
| GLib log domain. | |
Functions | |
| static int | check_nvti (const char *filename, nvti_t *nvt) |
| Check that the nvt's data is valid. | |
| int | nasl_file_check (const char *folder, const char *filename) |
| Check a single .nasl/.inc file. | |
| int | nasl_plugin_add (const char *folder, char *filename) |
| Add one .nasl plugin to the plugin list. | |
| static void | nasl_thread (struct ipc_context *, struct script_infos *) |
| int | nasl_plugin_launch (struct scan_globals *globals, struct in6_addr *ip, GSList *vhosts, kb_t kb, const char *oid) |
| Launch a NASL plugin. | |
The nasl - plugin class. Loads or launches nasl- plugins.
Definition in file nasl_plugins.c.
| #define G_LOG_DOMAIN "sd main" |
GLib log domain.
Definition at line 40 of file nasl_plugins.c.
|
static |
Check that the nvt's data is valid.
| filename | Filename of the NVT. |
| nvt | NVT to check. |
Definition at line 51 of file nasl_plugins.c.
Referenced by nasl_plugin_add().

| int nasl_file_check | ( | const char * | folder, |
| const char * | filename ) |
Check a single .nasl/.inc file.
| folder | Path to the plugin folder. |
| filename | File-name of the plugin |
Definition at line 83 of file nasl_plugins.c.
References exec_nasl_script(), script_infos::key, script_infos::name, NASL_ALWAYS_SIGNED, NASL_EXEC_DESCR, and script_infos::nvti.
Referenced by plugins_cache_init().


| int nasl_plugin_add | ( | const char * | folder, |
| char * | filename ) |
Add one .nasl plugin to the plugin list.
It is parsed (via exec_nasl_script) and added to the cache
| folder | Path to the plugin folder. |
| filename | File-name of the plugin |
Definition at line 120 of file nasl_plugins.c.
References check_nvti(), exec_nasl_script(), script_infos::key, script_infos::name, NASL_ALWAYS_SIGNED, NASL_EXEC_DESCR, and script_infos::nvti.
Referenced by plugins_reload_from_dir().


| int nasl_plugin_launch | ( | struct scan_globals * | globals, |
| struct in6_addr * | ip, | ||
| GSList * | vhosts, | ||
| kb_t | kb, | ||
| const char * | oid ) |
Launch a NASL plugin.
Definition at line 166 of file nasl_plugins.c.
References script_infos::globals, script_infos::ip, script_infos::ipc_context, script_infos::key, script_infos::name, oid, script_infos::oid, and script_infos::vhosts.
Referenced by plugin_launch().

|
static |
Definition at line 188 of file nasl_plugins.c.
References exec_nasl_script(), get_main_kb(), script_infos::ip, script_infos::ipc_context, ipcc, script_infos::key, script_infos::name, and NASL_ALWAYS_SIGNED.
