• 大小: 3.84MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-14
  • 语言: 其他
  • 标签: openvas  c/c++  

资源简介

漏洞扫描工具openvas的源码:包含greenbone,libraries,manager和scanner

资源截图

代码片段和文件信息

/* Greenbone Security Assistant
 * $Id$
 * Description: Main module of Greenbone Security Assistant daemon.
 *
 * Authors:
 * Chandrashekhar B 
 * Matthew Mundell 
 * Jan-Oliver Wagner 
 * Michael Wiegand 
 *
 * Copyright:
 * Copyright (C) 2009 Greenbone Networks GmbH
 *
 * 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. 51 Franklin St Fifth Floor Boston MA 02110-1301 USA.
 */

/**
 * @file gsad.c
 * @brief Main module of Greenbone Security Assistant daemon
 *
 * This file contains the core of the GSA server process that
 * handles HTTPS requests and communicates with OpenVAS-Manager via the
 * OMP protocol.
 */

/**
 * \mainpage
 * \section Introduction
 * \verbinclude README
 *
 * \section Installation
 * \verbinclude INSTALL
 *
 * \section copying License Information
 * \verbinclude COPYING
 */

/**
 * @brief The Glib fatal mask redefined to leave out G_LOG_FLAG_RECURSION.
 */
#undef G_LOG_FATAL_MASK
#define G_LOG_FATAL_MASK G_LOG_LEVEL_ERROR

#define _GNU_SOURCE /* for strcasecmp */

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include se/openvas_file.h>
#include se/pidfile.h>
#include 
#include 
#include  /* for getpwnam */
#include  /* for setgroups */
#include 
#include 
#include 
#include 
#include 
#if __linux
#include 
#endif
#include 
#include 
#include 
#include 
/* This must follow the system includes. */
#include 

#include “gsad_base.h“
#include “gsad_omp.h“
#include “tracef.h“
#include “validator.h“
#include “xslt_i18n.h“

/**
 * @brief Name of the cookie used to store the SID.
 */
#define SID_COOKIE_NAME “GSAD_SID“

/**
 * @brief Fallback GSAD port for HTTPS.
 */
#define DEFAULT_GSAD_HTTPS_PORT 443

/**
 * @brief Fallback GSAD port for HTTP.
 */
#define DEFAULT_GSAD_HTTP_PORT 80

/**
 * @brief Fallback unprivileged GSAD port.
 */
#define DEFAULT_GSAD_PORT 9392

/**
 * @brief Fallback GSAD port.
 */
#define DEFAULT_GSAD_REDIRECT_PORT 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     939351  2017-05-05 16:52  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\ChangeLog

     文件      73817  2017-05-05 16:52  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\CHANGES

     文件      20865  2016-08-30 20:32  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\CMakeLists.txt

     文件        817  2015-12-08 15:10  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\COPYING

     文件       1428  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\COPYING.BSD3

     文件      18002  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\COPYING.GPL

     文件       1023  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\COPYING.MIT

     文件       3886  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\doc\CMakeLists.txt

     文件      51993  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\doc\Doxyfile.in

     文件      52012  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\doc\Doxyfile_full.in

     文件       2848  2015-12-08 15:10  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\doc\gsad.8

     文件       4807  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\doc\gsad.8.xml

     文件       3161  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\doc\gsad.html

     文件       9826  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\doc\i18n-howto.txt

     文件       1287  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\doc\readme-its.txt

     文件       4421  2015-12-21 15:51  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\INSTALL

     文件       2216  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\README

     文件       8282  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\src\CMakeLists.txt

     文件     192683  2016-08-25 22:09  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\src\gsad.c

     文件      15297  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\src\gsad_base.c

     文件       5873  2015-12-08 15:10  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\src\gsad_base.h

     文件        601  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\src\gsad_log_conf.cmake_in

     文件     854433  2017-05-02 15:34  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\src\gsad_omp.c

     文件      19018  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\src\gsad_omp.h

     文件      66289  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\src\html\classic\dynamic_strings.xsl

     文件        589  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\src\html\classic\favicon.gif

     文件      63867  2016-01-12 18:41  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\src\html\classic\graphics.xsl

     文件       1837  2015-12-08 15:10  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\src\html\classic\gsa-login.css

     文件      20664  2015-08-03 16:55  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\src\html\classic\gsa-style.css

     文件     112889  2016-08-25 22:09  openvas\greenbone-security-assistant-6.0.12\greenbone-security-assistant-6.0.12\src\html\classic\gsad.xsl

............此处省略774个文件信息

评论

共有 条评论