OpenVAS Scanner
7.0.1~git
|
#include "../misc/network.h"
#include "../misc/plugutils.h"
#include "nasl_lex_ctxt.h"
#include <ctype.h>
#include <errno.h>
#include <glib.h>
#include <gvm/util/nvticache.h>
#include <regex.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
Go to the source code of this file.
Macros | |
#define | SMART_TCP_RW |
#define | CERT_FILE "SSL certificate : " |
#define | KEY_FILE "SSL private key : " |
#define | PEM_PASS "PEM password : " |
#define | CA_FILE "CA file : " |
#define | CNX_TIMEOUT_PREF "Network connection timeout : " |
#define | RW_TIMEOUT_PREF "Network read/write timeout : " |
#define | WRAP_TIMEOUT_PREF "Wrapped service read timeout : " |
#define | TEST_SSL_PREF "Test SSL based services" |
#define | NUM_CHILDREN "Number of connections done in parallel : " |
#define | G_LOG_DOMAIN "lib nasl" |
GLib logging domain. More... | |
#define | MAX_SHIFT (3 * 365 * 86400) |
#define | DIFF_1970_1900 2208988800U |
#define | ABS(x) (((x) < 0) ? -(x) : (x)) |
#define | DIFFTV1000(t1, t2) ((t1.tv_sec - t2.tv_sec) * 1000 + (t1.tv_usec - t2.tv_usec) / 1000) |
#define | TESTSTRING "OpenVAS Wrap Test" |
#define | MAX_SONS 128 |
Functions | |
static void | register_service (struct script_infos *desc, int port, const char *proto) |
static int | regex_match (char *string, char *pattern) |
Compares string with the regular expression. Null characters in buffer are replaced by 'x'. More... | |
static void | mark_chargen_server (struct script_infos *desc, int port) |
void | mark_echo_server (struct script_infos *desc, int port) |
void | mark_ncacn_http_server (struct script_infos *desc, int port, char *buffer) |
void | mark_vnc_server (struct script_infos *desc, int port, char *buffer) |
void | mark_nntp_server (struct script_infos *desc, int port, char *buffer, int trp) |
void | mark_swat_server (struct script_infos *desc, int port) |
void | mark_vqserver (struct script_infos *desc, int port) |
void | mark_mldonkey (struct script_infos *desc, int port) |
void | mark_http_server (struct script_infos *desc, int port, unsigned char *buffer, int trp) |
void | mark_locked_adsubtract_server (struct script_infos *desc, int port, unsigned char *buffer, int trp) |
static void | mark_gopher_server (struct script_infos *desc, int port) |
void | mark_rmserver (struct script_infos *desc, int port, char *buffer, int trp) |
void | mark_smtp_server (struct script_infos *desc, int port, char *buffer, int trp) |
void | mark_snpp_server (struct script_infos *desc, int port, char *buffer, int trp) |
void | mark_ftp_server (struct script_infos *desc, int port, char *buffer, int trp) |
void | mark_ssh_server (struct script_infos *desc, int port, char *buffer) |
void | mark_http_proxy (struct script_infos *desc, int port, int trp) |
void | mark_pop_server (struct script_infos *desc, int port, char *buffer) |
void | mark_imap_server (struct script_infos *desc, int port, char *buffer, int trp) |
void | mark_auth_server (struct script_infos *desc, int port) |
void | mark_postgresql (struct script_infos *desc, int port) |
void | mark_sphinxql (struct script_infos *desc, int port) |
void | mark_mysql (struct script_infos *desc, int port) |
void | mark_cvspserver (struct script_infos *desc, int port) |
void | mark_cvsupserver (struct script_infos *desc, int port) |
void | mark_cvslockserver (struct script_infos *desc, int port) |
void | mark_rsync (struct script_infos *desc, int port) |
void | mark_wild_shell (struct script_infos *desc, int port) |
void | mark_telnet_server (struct script_infos *desc, int port, int trp) |
void | mark_gnome14_server (struct script_infos *desc, int port, int trp) |
void | mark_eggdrop_server (struct script_infos *desc, int port, int trp) |
void | mark_netbus_server (struct script_infos *desc, int port) |
void | mark_linuxconf (struct script_infos *desc, int port, unsigned char *buffer) |
static void | mark_finger_server (struct script_infos *desc, int port, int trp) |
static void | mark_vtun_server (struct script_infos *desc, int port, unsigned char *banner, int trp) |
static void | mark_uucp_server (struct script_infos *desc, int port, unsigned char *banner, int trp) |
static void | mark_lpd_server (struct script_infos *desc, int port, int trp) |
static void | mark_lyskom_server (struct script_infos *desc, int port, int trp) |
static void | mark_ph_server (struct script_infos *desc, int port, int trp) |
static void | mark_time_server (struct script_infos *desc, int port, int trp) |
static void | mark_ens_server (struct script_infos *desc, int port, int trp) |
static void | mark_citrix_server (struct script_infos *desc, int port, int trp) |
static void | mark_giop_server (struct script_infos *desc, int port, int trp) |
static void | mark_exchg_routing_server (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_tcpmux_server (struct script_infos *desc, int port, int trp) |
static void | mark_BitTorrent_server (struct script_infos *desc, int port, int trp) |
static void | mark_smux_server (struct script_infos *desc, int port, int trp) |
static void | mark_LISa_server (struct script_infos *desc, int port, int trp) |
static void | mark_msdtc_server (struct script_infos *desc, int port) |
static void | mark_pop3pw_server (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_whois_plus2_server (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_mon_server (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_fw1 (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_psybnc (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_shoutcast_server (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_adsgone (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_acap_server (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_nagiosd_server (struct script_infos *desc, int port, int trp) |
static void | mark_teamspeak2_server (struct script_infos *desc, int port, int trp) |
static void | mark_websm_server (struct script_infos *desc, int port, int trp) |
static void | mark_ofa_express_server (struct script_infos *desc, int port, int trp) |
static void | mark_smppd_server (struct script_infos *desc, int port, int trp) |
static void | mark_upsmon_server (struct script_infos *desc, int port, int trp) |
static void | mark_sub7_server (struct script_infos *desc, int port, int trp) |
static void | mark_spamd_server (struct script_infos *desc, int port, int trp) |
static void | mark_quicktime_streaming_server (struct script_infos *desc, int port, int trp) |
static void | mark_dameware_server (struct script_infos *desc, int port, int trp) |
static void | mark_stonegate_auth_server (struct script_infos *desc, int port, int trp) |
void | mark_listserv_server (struct script_infos *desc, int port, int trp) |
void | mark_fssniffer (struct script_infos *desc, int port, int trp) |
void | mark_remote_nc_server (struct script_infos *desc, int port, int trp) |
static void | mark_wrapped_svc (struct script_infos *desc, int port, int delta) |
static const char * | port_to_name (int port) |
static void | mark_unknown_svc (struct script_infos *desc, int port, const unsigned char *banner, int trp) |
static void | mark_gnuserv (struct script_infos *desc, int port) |
static void | mark_iss_realsecure (struct script_infos *desc, int port) |
static void | mark_vmware_auth (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_interscan_viruswall (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_ppp_daemon (struct script_infos *desc, int port, int trp) |
static void | mark_zebra_server (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_ircxpro_admin_server (struct script_infos *desc, int port, int trp) |
static void | mark_gnocatan_server (struct script_infos *desc, int port, int trp) |
static void | mark_pbmaster_server (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_dictd_server (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_pnsclient (struct script_infos *desc, int port, int trp) |
static void | mark_veritas_backup (struct script_infos *desc, int port, int trp) |
static void | mark_pblocald_server (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_jabber_server (struct script_infos *desc, int port, int trp) |
static void | mark_avotus_mm_server (struct script_infos *desc, int port, char *buffer, int trp) |
static void | mark_socks_proxy (struct script_infos *desc, int port, int ver) |
static void | mark_direct_connect_hub (struct script_infos *desc, int port, int trp) |
static int | may_be_time (time_t *rtime) |
static int | plugin_do_run (struct script_infos *desc, GSList *h, int test_ssl) |
static void | sigterm (int s) |
static void | sigchld (int s) |
tree_cell * | plugin_run_find_service (lex_ctxt *lexic) |
Variables | |
const char * | oid |
static pid_t | sons [MAX_SONS] |
#define ABS | ( | x | ) | (((x) < 0) ? -(x) : (x)) |
#define CA_FILE "CA file : " |
Definition at line 43 of file nasl_builtin_find_service.c.
#define CERT_FILE "SSL certificate : " |
Definition at line 40 of file nasl_builtin_find_service.c.
#define CNX_TIMEOUT_PREF "Network connection timeout : " |
Definition at line 44 of file nasl_builtin_find_service.c.
#define DIFF_1970_1900 2208988800U |
Definition at line 1464 of file nasl_builtin_find_service.c.
#define DIFFTV1000 | ( | t1, | |
t2 | |||
) | ((t1.tv_sec - t2.tv_sec) * 1000 + (t1.tv_usec - t2.tv_usec) / 1000) |
#define G_LOG_DOMAIN "lib nasl" |
GLib logging domain.
Definition at line 55 of file nasl_builtin_find_service.c.
#define KEY_FILE "SSL private key : " |
Definition at line 41 of file nasl_builtin_find_service.c.
#define MAX_SHIFT (3 * 365 * 86400) |
Definition at line 1463 of file nasl_builtin_find_service.c.
#define MAX_SONS 128 |
Definition at line 2342 of file nasl_builtin_find_service.c.
#define NUM_CHILDREN "Number of connections done in parallel : " |
Definition at line 49 of file nasl_builtin_find_service.c.
#define PEM_PASS "PEM password : " |
Definition at line 42 of file nasl_builtin_find_service.c.
#define RW_TIMEOUT_PREF "Network read/write timeout : " |
Definition at line 45 of file nasl_builtin_find_service.c.
#define SMART_TCP_RW |
Definition at line 20 of file nasl_builtin_find_service.c.
#define TEST_SSL_PREF "Test SSL based services" |
Definition at line 47 of file nasl_builtin_find_service.c.
#define TESTSTRING "OpenVAS Wrap Test" |
#define WRAP_TIMEOUT_PREF "Wrapped service read timeout : " |
Definition at line 46 of file nasl_builtin_find_service.c.
|
static |
Definition at line 890 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 859 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
void mark_auth_server | ( | struct script_infos * | desc, |
int | port | ||
) |
Definition at line 381 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1417 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 686 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 109 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 632 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_cvslockserver | ( | struct script_infos * | desc, |
int | port | ||
) |
Definition at line 432 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_cvspserver | ( | struct script_infos * | desc, |
int | port | ||
) |
Definition at line 417 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_cvsupserver | ( | struct script_infos * | desc, |
int | port | ||
) |
Definition at line 425 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1068 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1354 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1443 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_echo_server | ( | struct script_infos * | desc, |
int | port | ||
) |
Definition at line 116 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_eggdrop_server | ( | struct script_infos * | desc, |
int | port, | ||
int | trp | ||
) |
Definition at line 483 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 619 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 657 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 514 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_fssniffer | ( | struct script_infos * | desc, |
int | port, | ||
int | trp | ||
) |
Definition at line 1102 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_alarm(), and register_service().
Referenced by plugin_do_run().
void mark_ftp_server | ( | struct script_infos * | desc, |
int | port, | ||
char * | buffer, | ||
int | trp | ||
) |
Definition at line 275 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 800 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 644 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1325 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_gnome14_server | ( | struct script_infos * | desc, |
int | port, | ||
int | trp | ||
) |
Definition at line 470 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1245 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 210 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_http_proxy | ( | struct script_infos * | desc, |
int | port, | ||
int | trp | ||
) |
Definition at line 320 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_http_server | ( | struct script_infos * | desc, |
int | port, | ||
unsigned char * | buffer, | ||
int | trp | ||
) |
Definition at line 183 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
void mark_imap_server | ( | struct script_infos * | desc, |
int | port, | ||
char * | buffer, | ||
int | trp | ||
) |
Definition at line 367 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1272 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1312 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1252 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1406 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_linuxconf | ( | struct script_infos * | desc, |
int | port, | ||
unsigned char * | buffer | ||
) |
Definition at line 504 of file nasl_builtin_find_service.c.
References ARG_STRING, oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 715 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_listserv_server | ( | struct script_infos * | desc, |
int | port, | ||
int | trp | ||
) |
Definition at line 1089 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_locked_adsubtract_server | ( | struct script_infos * | desc, |
int | port, | ||
unsigned char * | buffer, | ||
int | trp | ||
) |
Definition at line 196 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 570 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 583 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_mldonkey | ( | struct script_infos * | desc, |
int | port | ||
) |
Definition at line 174 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 788 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 733 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_mysql | ( | struct script_infos * | desc, |
int | port | ||
) |
Definition at line 409 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 918 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_ncacn_http_server | ( | struct script_infos * | desc, |
int | port, | ||
char * | buffer | ||
) |
Definition at line 123 of file nasl_builtin_find_service.c.
References ARG_STRING, plug_replace_key(), and register_service().
Referenced by plugin_do_run().
void mark_netbus_server | ( | struct script_infos * | desc, |
int | port | ||
) |
Definition at line 497 of file nasl_builtin_find_service.c.
References oid, post_alarm(), and register_service().
Referenced by plugin_do_run().
void mark_nntp_server | ( | struct script_infos * | desc, |
int | port, | ||
char * | buffer, | ||
int | trp | ||
) |
Definition at line 150 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 973 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1392 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1339 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 596 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1367 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 740 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
void mark_pop_server | ( | struct script_infos * | desc, |
int | port, | ||
char * | buffer | ||
) |
Definition at line 331 of file nasl_builtin_find_service.c.
References ARG_STRING, oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
void mark_postgresql | ( | struct script_infos * | desc, |
int | port | ||
) |
Definition at line 392 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1286 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 823 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1056 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_remote_nc_server | ( | struct script_infos * | desc, |
int | port, | ||
int | trp | ||
) |
Definition at line 1115 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_rmserver | ( | struct script_infos * | desc, |
int | port, | ||
char * | buffer, | ||
int | trp | ||
) |
Definition at line 217 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
void mark_rsync | ( | struct script_infos * | desc, |
int | port | ||
) |
Definition at line 440 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 841 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 990 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_smtp_server | ( | struct script_infos * | desc, |
int | port, | ||
char * | buffer, | ||
int | trp | ||
) |
Definition at line 230 of file nasl_builtin_find_service.c.
References ARG_INT, ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 698 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_snpp_server | ( | struct script_infos * | desc, |
int | port, | ||
char * | buffer, | ||
int | trp | ||
) |
Definition at line 255 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1431 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1044 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_sphinxql | ( | struct script_infos * | desc, |
int | port | ||
) |
Definition at line 400 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_ssh_server | ( | struct script_infos * | desc, |
int | port, | ||
char * | buffer | ||
) |
Definition at line 310 of file nasl_builtin_find_service.c.
References oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1078 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1027 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_alarm(), and register_service().
Referenced by plugin_do_run().
void mark_swat_server | ( | struct script_infos * | desc, |
int | port | ||
) |
Definition at line 162 of file nasl_builtin_find_service.c.
References register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 674 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 935 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_telnet_server | ( | struct script_infos * | desc, |
int | port, | ||
int | trp | ||
) |
Definition at line 457 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 607 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1221 of file nasl_builtin_find_service.c.
References ARG_INT, ARG_STRING, get_encaps_through(), oid, plug_replace_key(), plug_set_key(), port_to_name(), and post_log().
Referenced by plugin_do_run().
|
static |
Definition at line 1008 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 553 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1381 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1259 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
void mark_vnc_server | ( | struct script_infos * | desc, |
int | port, | ||
char * | buffer | ||
) |
Definition at line 141 of file nasl_builtin_find_service.c.
References ARG_STRING, plug_replace_key(), and register_service().
Referenced by plugin_do_run().
void mark_vqserver | ( | struct script_infos * | desc, |
int | port | ||
) |
Definition at line 168 of file nasl_builtin_find_service.c.
References register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 527 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 959 of file nasl_builtin_find_service.c.
References get_encaps_through(), oid, post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 766 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
void mark_wild_shell | ( | struct script_infos * | desc, |
int | port | ||
) |
Definition at line 447 of file nasl_builtin_find_service.c.
References oid, post_alarm(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1130 of file nasl_builtin_find_service.c.
References ARG_INT, oid, plug_set_key(), and post_log().
Referenced by plugin_do_run().
|
static |
Definition at line 1298 of file nasl_builtin_find_service.c.
References ARG_STRING, get_encaps_through(), oid, plug_replace_key(), post_log(), and register_service().
Referenced by plugin_do_run().
|
static |
Definition at line 1467 of file nasl_builtin_find_service.c.
References ABS, DIFF_1970_1900, and MAX_SHIFT.
Referenced by plugin_do_run().
|
static |
Definition at line 1482 of file nasl_builtin_find_service.c.
References ARG_INT, ARG_STRING, close_stream_connection(), CNX_TIMEOUT_PREF, DIFFTV1000, get_encaps_name(), get_plugin_preference(), http_get(), IS_ENCAPS_SSL, mark_acap_server(), mark_adsgone(), mark_auth_server(), mark_avotus_mm_server(), mark_BitTorrent_server(), mark_chargen_server(), mark_citrix_server(), mark_cvslockserver(), mark_cvspserver(), mark_cvsupserver(), mark_dameware_server(), mark_dictd_server(), mark_direct_connect_hub(), mark_echo_server(), mark_eggdrop_server(), mark_ens_server(), mark_exchg_routing_server(), mark_finger_server(), mark_fssniffer(), mark_ftp_server(), mark_fw1(), mark_giop_server(), mark_gnocatan_server(), mark_gnome14_server(), mark_gnuserv(), mark_gopher_server(), mark_http_proxy(), mark_http_server(), mark_imap_server(), mark_interscan_viruswall(), mark_ircxpro_admin_server(), mark_iss_realsecure(), mark_jabber_server(), mark_linuxconf(), mark_LISa_server(), mark_listserv_server(), mark_locked_adsubtract_server(), mark_lpd_server(), mark_lyskom_server(), mark_mldonkey(), mark_mon_server(), mark_msdtc_server(), mark_mysql(), mark_nagiosd_server(), mark_ncacn_http_server(), mark_netbus_server(), mark_nntp_server(), mark_ofa_express_server(), mark_pblocald_server(), mark_pbmaster_server(), mark_ph_server(), mark_pnsclient(), mark_pop3pw_server(), mark_pop_server(), mark_postgresql(), mark_ppp_daemon(), mark_psybnc(), mark_quicktime_streaming_server(), mark_remote_nc_server(), mark_rmserver(), mark_rsync(), mark_shoutcast_server(), mark_smppd_server(), mark_smtp_server(), mark_smux_server(), mark_snpp_server(), mark_socks_proxy(), mark_spamd_server(), mark_sphinxql(), mark_ssh_server(), mark_stonegate_auth_server(), mark_sub7_server(), mark_swat_server(), mark_tcpmux_server(), mark_teamspeak2_server(), mark_telnet_server(), mark_time_server(), mark_unknown_svc(), mark_upsmon_server(), mark_uucp_server(), mark_veritas_backup(), mark_vmware_auth(), mark_vnc_server(), mark_vqserver(), mark_vtun_server(), mark_websm_server(), mark_whois_plus2_server(), mark_wild_shell(), mark_wrapped_svc(), mark_zebra_server(), may_be_time(), oid, open_stream_connection(), OPENVAS_ENCAPS_IP, OPENVAS_ENCAPS_TLScustom, openvas_get_socket_from_connection(), plug_get_host_fqdn(), plug_get_key(), plug_replace_key(), plug_set_key(), plug_set_port_transport(), post_log(), read_stream_connection(), read_stream_connection_min(), regex_match(), RW_TIMEOUT_PREF, stream_set_timeout(), timeval(), WRAP_TIMEOUT_PREF, and write_stream_connection().
Referenced by plugin_run_find_service().
Definition at line 2373 of file nasl_builtin_find_service.c.
References CA_FILE, CERT_FILE, get_plugin_preference(), get_plugin_preference_fname(), KEY_FILE, MAX_SONS, NUM_CHILDREN, struct_lex_ctxt::oid, oid, PEM_PASS, plug_get_kb(), plug_set_ssl_CA_file(), plug_set_ssl_cert(), plug_set_ssl_key(), plug_set_ssl_pem_password(), plugin_do_run(), struct_lex_ctxt::script_infos, sigchld(), sigterm(), sons, and TEST_SSL_PREF.
|
static |
Definition at line 1145 of file nasl_builtin_find_service.c.
Referenced by mark_unknown_svc().
|
static |
Compares string with the regular expression. Null characters in buffer are replaced by 'x'.
[in] | string | String to compare |
[in] | pattern | regular expression |
Definition at line 94 of file nasl_builtin_find_service.c.
Referenced by plugin_do_run().
|
static |
Definition at line 60 of file nasl_builtin_find_service.c.
References ARG_INT, ARG_STRING, plug_replace_key(), and plug_set_key().
Referenced by mark_acap_server(), mark_adsgone(), mark_auth_server(), mark_avotus_mm_server(), mark_BitTorrent_server(), mark_chargen_server(), mark_citrix_server(), mark_cvslockserver(), mark_cvspserver(), mark_cvsupserver(), mark_dameware_server(), mark_dictd_server(), mark_direct_connect_hub(), mark_echo_server(), mark_eggdrop_server(), mark_ens_server(), mark_exchg_routing_server(), mark_finger_server(), mark_fssniffer(), mark_ftp_server(), mark_fw1(), mark_giop_server(), mark_gnocatan_server(), mark_gnome14_server(), mark_gnuserv(), mark_gopher_server(), mark_http_proxy(), mark_http_server(), mark_imap_server(), mark_interscan_viruswall(), mark_ircxpro_admin_server(), mark_iss_realsecure(), mark_jabber_server(), mark_linuxconf(), mark_LISa_server(), mark_listserv_server(), mark_locked_adsubtract_server(), mark_lpd_server(), mark_lyskom_server(), mark_mldonkey(), mark_mon_server(), mark_msdtc_server(), mark_mysql(), mark_nagiosd_server(), mark_ncacn_http_server(), mark_netbus_server(), mark_nntp_server(), mark_ofa_express_server(), mark_pblocald_server(), mark_pbmaster_server(), mark_ph_server(), mark_pnsclient(), mark_pop3pw_server(), mark_pop_server(), mark_postgresql(), mark_ppp_daemon(), mark_psybnc(), mark_quicktime_streaming_server(), mark_remote_nc_server(), mark_rmserver(), mark_rsync(), mark_shoutcast_server(), mark_smppd_server(), mark_smtp_server(), mark_smux_server(), mark_snpp_server(), mark_socks_proxy(), mark_spamd_server(), mark_sphinxql(), mark_ssh_server(), mark_stonegate_auth_server(), mark_sub7_server(), mark_swat_server(), mark_tcpmux_server(), mark_teamspeak2_server(), mark_telnet_server(), mark_time_server(), mark_upsmon_server(), mark_uucp_server(), mark_veritas_backup(), mark_vmware_auth(), mark_vnc_server(), mark_vqserver(), mark_vtun_server(), mark_websm_server(), mark_whois_plus2_server(), mark_wild_shell(), and mark_zebra_server().
|
static |
Definition at line 2361 of file nasl_builtin_find_service.c.
References MAX_SONS, and sons.
Referenced by plugin_run_find_service().
|
static |
Definition at line 2347 of file nasl_builtin_find_service.c.
References MAX_SONS, and sons.
Referenced by plugin_run_find_service().
const char* oid |
Definition at line 57 of file nasl_builtin_find_service.c.
Referenced by check_dependency_cycles(), exec_nasl_script(), get_plugin_preference(), get_script_oid(), launch_plugin(), mark_acap_server(), mark_adsgone(), mark_auth_server(), mark_avotus_mm_server(), mark_BitTorrent_server(), mark_chargen_server(), mark_citrix_server(), mark_cvslockserver(), mark_cvspserver(), mark_cvsupserver(), mark_dameware_server(), mark_dictd_server(), mark_direct_connect_hub(), mark_echo_server(), mark_eggdrop_server(), mark_ens_server(), mark_exchg_routing_server(), mark_finger_server(), mark_fssniffer(), mark_ftp_server(), mark_fw1(), mark_giop_server(), mark_gnocatan_server(), mark_gnome14_server(), mark_gnuserv(), mark_gopher_server(), mark_http_proxy(), mark_http_server(), mark_imap_server(), mark_interscan_viruswall(), mark_ircxpro_admin_server(), mark_iss_realsecure(), mark_jabber_server(), mark_linuxconf(), mark_LISa_server(), mark_listserv_server(), mark_locked_adsubtract_server(), mark_lpd_server(), mark_lyskom_server(), mark_mldonkey(), mark_mon_server(), mark_msdtc_server(), mark_mysql(), mark_nagiosd_server(), mark_netbus_server(), mark_nntp_server(), mark_ofa_express_server(), mark_pblocald_server(), mark_pbmaster_server(), mark_ph_server(), mark_pnsclient(), mark_pop3pw_server(), mark_pop_server(), mark_postgresql(), mark_ppp_daemon(), mark_psybnc(), mark_quicktime_streaming_server(), mark_remote_nc_server(), mark_rmserver(), mark_rsync(), mark_shoutcast_server(), mark_smppd_server(), mark_smtp_server(), mark_smux_server(), mark_snpp_server(), mark_socks_proxy(), mark_spamd_server(), mark_sphinxql(), mark_ssh_server(), mark_stonegate_auth_server(), mark_sub7_server(), mark_tcpmux_server(), mark_teamspeak2_server(), mark_telnet_server(), mark_time_server(), mark_unknown_svc(), mark_upsmon_server(), mark_uucp_server(), mark_veritas_backup(), mark_vmware_auth(), mark_vtun_server(), mark_websm_server(), mark_whois_plus2_server(), mark_wild_shell(), mark_wrapped_svc(), mark_zebra_server(), nasl_plugin_launch(), plugin_add(), plugin_do_run(), plugin_run_find_service(), plugins_scheduler_enable(), post_alarm(), post_error(), post_log(), proto_post_alarm(), proto_post_error(), proto_post_log(), proto_post_wrapped(), required_ports_in_list(), simple_register_host_detail(), simult_ports(), and update_running_processes().
|
static |
Definition at line 2344 of file nasl_builtin_find_service.c.
Referenced by plugin_run_find_service(), sigchld(), and sigterm().