|
OpenVAS Scanner 22.7.9
|
#include "nasl_init.h"#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_frame_forgery.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. | |
| nasl_func * | func_is_internal (const char *name) |
| char * | nasl_version () |
| void | add_nasl_library (GSList **list) |
| Add "built-in" variables to a list. | |
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 554 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 526 of file nasl_init.c.
References libfuncs, and name.
Referenced by get_func(), nasl_func_call(), and nasl_lint_call().

| void init_nasl_library | ( | lex_ctxt * | lexic | ) |
Adds "built-in" variable and function definitions to a context.
Definition at line 486 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 | ( | void | ) |
Definition at line 542 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 58 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 411 of file nasl_init.c.
Referenced by __wrap_redis_push_str(), 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_argument_by_name(), get_array_elem(), 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_capture_device(), init_nasl_ctx(), init_nasl_library(), init_v6_capture_device(), ipaddr2devname(), is_utf16_ntlmssp(), kb_item_add_int_unique_with_main_kb_check(), kb_item_add_int_with_main_kb_check(), kb_item_add_str_unique_with_main_kb_check(), kb_item_push_str_with_main_kb_check(), kb_item_set_int_with_main_kb_check(), kb_item_set_str_with_main_kb_check(), launch_plugin(), nasl_get_preference(), nasl_pcap_next(), nasl_send_capture(), nasl_send_v6packet(), plug_get_key(), plug_replace_key(), plug_replace_key_len(), plug_set_key(), plug_set_key_len(), plug_set_key_len_volatile(), plug_set_key_volatile(), plugin_add(), plugins_reload_from_dir(), replace_kb_item(), routethrough(), script_add_preference(), script_tag(), script_xref(), set_kb_item(), set_kb_item_volatile(), simple_register_host_detail(), update_running_processes(), v6_getinterfaces(), v6_getsourceip(), v6_ipaddr2devname(), v6_is_local_ip(), validate_script_xref(), and yyparse().
| int val |
Definition at line 412 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_host_kb_index(), 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().