comm.h
上传用户:tjescc
上传日期:2021-02-23
资源大小:419k
文件大小:3k
- /* Nessus
- * Copyright (C) 1998 Renaud Deraison
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
- #ifndef _NESSUSD_COMM_H
- #define _NESSUSD_COMM_H
- #ifndef _WIN32
- /* kludge: windows debugging mode with all-in-one compilation */
- #undef __NESSUS_DEVEL_H__
- #endif
- #ifndef __NESSUS_DEVEL_H__
- typedef struct {
- int ntp_version; /* NTP_VERSION, as defined in ntp.h */
- int ciphered:1; /* TRUE, if we are using encryption */
- int ntp_11:1; /* TRUE, if we may use NTP 1.1 features; should
- better be splitted into different capability
- attributes, but this one simplifies the step
- from NTP 1.1 to NTP 1.2. In the future we'll
- use caps, I promise! :-) */
- int scan_ids:1; /* TRUE, if HOLE and INFO messages should
- contain scan ID's. */
- int pubkey_auth:1; /* TRUE if the client wants to use public key
- authentification */
- int escape_crlf:1; /* TRUE if the client wants us to escape CRLF
- (they will be replaced by ';' if set to FALSE)
- */
- int md5_caching:1; /* TRUE if the client does not want us to send the
- list of plugins directly, but just the md5
- hash instead
- */
-
- int plugins_version:1; /* TRUE if the client wants us to send the versions
- of our plugins
- */
- int timestamps:1; /* TRUE if the client wants us to send timestamps
- regarding the start and end of the whole scan
- and of each server (msg TIME)
- */
- int plugins_cve_id:1; /* the the CVE ID of the plugins along with their version */
- int dns:1; /* send the host name and host ip */
- int dependencies:1; /* send the list of plugins dependencies */
- int fast_login:1;
- int md5_by_name:1;
- int plugins_bugtraq_id:1;
- int plugins_xrefs:1;
- } ntp_caps;
- #endif /* __NESSUS_DEVEL_H__ */
- ExtFunc ntp_caps* comm_init(int);
- ExtFunc void comm_terminate(struct arglist *);
- ExtFunc void comm_send_pluginlist(struct arglist *);
- ExtFunc void comm_send_preferences(struct arglist *);
- ExtFunc void comm_send_rules(struct arglist *);
- ExtFunc void comm_wait_order(struct arglist *);
- ExtFunc void comm_setup_plugins(struct arglist *, char *);
- ExtFunc void client_handler();
- ExtFunc int comm_send_status(struct arglist *, char *, char *, int, int);
- #endif