OpenVAS Scanner
7.0.0~git
|
#include "../misc/network.h"
#include "../misc/nvt_categories.h"
#include "exec.h"
#include "nasl.h"
#include "nasl_builtin_plugins.h"
#include "nasl_cert.h"
#include "nasl_cmd_exec.h"
#include "nasl_crypto.h"
#include "nasl_crypto2.h"
#include "nasl_debug.h"
#include "nasl_func.h"
#include "nasl_global_ctxt.h"
#include "nasl_host.h"
#include "nasl_http.h"
#include "nasl_isotime.h"
#include "nasl_lex_ctxt.h"
#include "nasl_misc_funcs.h"
#include "nasl_packet_forgery.h"
#include "nasl_packet_forgery_v6.h"
#include <stdlib.h>
#include <string.h>
#include "nasl_raw.h"
#include "nasl_scanner_glue.h"
#include "nasl_smb.h"
#include "nasl_snmp.h"
#include "nasl_socket.h"
#include "nasl_ssh.h"
#include "nasl_text_utils.h"
#include "nasl_tree.h"
#include "nasl_var.h"
#include "nasl_wmi.h"
Go to the source code of this file.
Data Structures | |
struct | init_func |
Functions | |
void | init_nasl_library (lex_ctxt *lexic) |
Adds "built-in" variable and function definitions to a context. More... | |
nasl_func * | func_is_internal (const char *name) |
char * | nasl_version () |
void | add_nasl_library (GSList **list) |
Add "built-in" variables to a list. More... | |
Variables | |
static init_func | libfuncs [] |
struct { | |
const char * name | |
const char * val | |
} | libsvars [] |
struct { | |
const char * name | |
int val | |
} | libivars [] |
void add_nasl_library | ( | GSList ** | list | ) |
Add "built-in" variables to a list.
Definition at line 514 of file nasl_init.c.
References libivars, libsvars, and name.
Referenced by add_predef_varname().
nasl_func* func_is_internal | ( | const char * | name | ) |
Definition at line 486 of file nasl_init.c.
References libfuncs, and name.
Referenced by get_func(), and nasl_func_call().
void init_nasl_library | ( | lex_ctxt * | lexic | ) |
Adds "built-in" variable and function definitions to a context.
Definition at line 446 of file nasl_init.c.
References add_named_var_to_ctxt(), CONST_DATA, CONST_INT, TC::i_val, libivars, libsvars, name, nasl_perror(), TC::size, TC::str_val, TC::type, val, and TC::x.
Referenced by init_empty_lex_ctxt().
char* nasl_version | ( | ) |
Definition at line 502 of file nasl_init.c.
Referenced by main().
|
static |
Mapping of function names in NASL (eg. script_name("english")) to the C function pointers (e.g. script_name (lex_ctx**) ), argument count and argument Meta-information (names).
Definition at line 67 of file nasl_init.c.
Referenced by func_is_internal().
struct { ... } libivars[] |
Referenced by add_nasl_library(), and init_nasl_library().
struct { ... } libsvars[] |
Referenced by add_nasl_library(), and init_nasl_library().
const char* name |
Definition at line 377 of file nasl_init.c.
Referenced by __wrap_redis_push_str(), add_arg(), add_named_var_to_ctxt(), add_nasl_library(), add_var_to_array(), build_encode_URL(), check_dependency_cycles(), create_named_var(), exec_nasl_script(), find_charset_functions_ntlmssp(), func_is_internal(), get_array_elem(), get_attr_value(), get_func(), get_func_ref_by_name(), get_int_var_by_name(), get_plugin_preference(), get_str_var_by_name(), get_var_ref_by_name(), get_var_size_by_name(), get_var_type_by_name(), get_variable_by_name(), getinterfaces(), getipv4routes(), getipv6routes(), hosts_get(), hosts_new(), hosts_set_pid(), init_nasl_ctx(), init_nasl_library(), init_v6_capture_device(), ipaddr2devname(), is_utf16_ntlmssp(), launch_plugin(), nasl_get_preference(), nasl_send_v6packet(), plug_get_key(), plug_replace_key(), plug_replace_key_len(), plug_set_key(), plug_set_key_len(), plugin_add(), plugins_reload_from_dir(), replace_kb_item(), routethrough(), script_add_preference(), script_tag(), script_xref(), set_kb_item(), simple_register_host_detail(), tmphost_add_nse_hostscript(), tmphost_add_nse_portscript(), update_running_processes(), v6_getinterfaces(), v6_getsourceip(), v6_ipaddr2devname(), v6_is_local_ip(), and xmltag_open_script().
int val |
Definition at line 378 of file nasl_init.c.
Referenced by add_named_var_to_ctxt(), add_numbered_var_to_ctxt(), check_alpha(), create_anon_var(), create_named_var(), get_kb_item(), init_nasl_library(), nasl_exec(), nasl_get_byte_order(), nasl_incr_variable(), nasl_insert_hexzeros(), nasl_ord(), nasl_wmi_reg_set_dword_val(), nasl_wmi_reg_set_ex_string_val(), nasl_wmi_reg_set_qword_val(), nasl_wmi_reg_set_string_val(), SamOEMhash(), timeval(), toupper_w(), wmi_reg_set_dword_val(), wmi_reg_set_ex_string_val(), wmi_reg_set_qword_val(), and wmi_reg_set_string_val().