OpenVAS Scanner 21.4.1
|
Remote host helper functions. More...
#include "nasl_host.h"
#include "../misc/network.h"
#include "../misc/pcap_openvas.h"
#include "../misc/plugutils.h"
#include "nasl_debug.h"
#include "nasl_func.h"
#include "nasl_global_ctxt.h"
#include "nasl_lex_ctxt.h"
#include "nasl_tree.h"
#include "nasl_var.h"
#include <arpa/inet.h>
#include <gvm/base/networking.h>
#include <gvm/util/kb.h>
#include <netdb.h>
#include <netinet/in.h>
#include <string.h>
#include <unistd.h>
Functions | |
tree_cell * | get_hostnames (lex_ctxt *lexic) |
tree_cell * | get_hostname (lex_ctxt *lexic) |
tree_cell * | get_hostname_source (lex_ctxt *lexic) |
tree_cell * | add_hostname (lex_ctxt *lexic) |
tree_cell * | resolve_hostname_to_multiple_ips (lex_ctxt *lexic) |
Resolve a hostname and return all ip addresses as nasl array. More... | |
tree_cell * | resolve_hostname (lex_ctxt *lexic) |
tree_cell * | get_host_ip (lex_ctxt *lexic) |
tree_cell * | get_host_open_port (lex_ctxt *lexic) |
tree_cell * | get_port_state (lex_ctxt *lexic) |
tree_cell * | get_udp_port_state (lex_ctxt *lexic) |
tree_cell * | nasl_islocalhost (lex_ctxt *lexic) |
tree_cell * | nasl_islocalnet (lex_ctxt *lexic) |
tree_cell * | nasl_this_host (lex_ctxt *lexic) |
tree_cell * | nasl_this_host_name (lex_ctxt *lexic) |
tree_cell * | get_port_transport (lex_ctxt *lexic) |
Return the encapsulation mode of a port. More... | |
tree_cell * | nasl_same_host (lex_ctxt *lexic) |
tree_cell * | nasl_target_is_ipv6 (lex_ctxt *lexic) |
Remote host helper functions.
This file contains all the functions which deal with the remote host: which ports are open, what is its IP, what is our IP, what transport is on the remote port, and so on...
Return the encapsulation mode of a port.
Takes a port number and returns its encapsulation mode (ENCAPS_*) The defined encapsulation modes are:
-asstring If not 0 return a human readabale string instead of an integer.
[in] | lexic | Lexical context of the NASL interpreter. |