OpenVAS根底学问

OpenVAS(Open Vulnerability Assessment System)是开放式破绽评价系统,其中心局部是一个服务器。该服务器包括一套网络破绽测试程序,能够检测远程系统和应用程序中的平安问题。OpenVAS不同与传统的破绽扫描软件。一切的OpenVAS软件都是免费的,而且还采用了Nessus(一款强大的网络扫描工具)较早版本的一些开放插件。固然Nessus很强大,但是该工具不开源,而且免费版的功用又比拟局限。所以,本章将对OpenVAS工具停止细致引见。

OpenVAS概述

OpenVAS是开放式破绽评价系统,也能够说它是一个包含着相关工具的网络扫描器。本节将对OpenVAS的概念及架构做一个简单引见。

什么是OpenVAS

OpenVAS是一款开放式的破绽评价工具,主要用来检测目的网络或主机的平安性。该工具是基于C/S(客户端/服务器),B/S(阅读器/服务器)架构停止工作,用户经过阅读器或者专用客户端程序来下达扫描任务,服务器端负载受权,执行扫描操作并提供扫描结果。

OpenVAS的架构

一套完好的OpenVAS系统包括服务器端和端口端的多个组件,如图1.1所示。

图1.1 OpenVAS的架构
上图就是OpenVAS系统的一个架构。下面分别引见服务器层和客户层,分别所需安装的组件。如下所示:
1.服务器层组件(倡议都安装)

q openvas-scanner(扫描器):担任调用各种破绽检测插件,完成实践的扫描操作。

q openvas-manager(管理器):担任分配扫描任务,并依据扫描结果消费评价报告。

q openvas-administrator(管理者):担任管理配置信息,用户受权等相关工作。

2.客户层组件(任选其一即可)

q openvas-cli(命令行接口):担任提供从命令行访问OpenVAS服务层程序。

q greenbone-security-assistant(安装助手):担任提供访问OpenVAS服务层的Web接口,便于经过阅读器来树立扫描任务,是运用最烦琐的客户层组件。

q Greenbone-Desktop-Suite(桌面套件):担任提供访问OpenVAS服务层的图形程序界面,主要允许在Windows客户机中。

提示:OpenVAS服务器端仅支持安装Linux操作系统中。但是,客户端安装在Windows和Linux系统均可。

安装及配置OpenVAS服务

当对OpenVAS工具理解后,就能够来运用该工具了。在运用该工具之前,首先引见下它的安装办法。

安装OpenVAS

OpenVAS工具的安装比拟简单,而且在OpenVAS官网提供了在各种操作系统中的安装办法。其下载地址为http://www.openvas.org/install-packages.html。但是,假如用户在安装时,可能会呈现很多依赖包需求手动处理。假如不可以很好的处理依赖关系包,将无法胜利安装OpenVAS工具。所以,为了便当用户运用,Kali Linux系统中曾经默许安装了该工具,用户能够直接运用。

假如用户发现本人系统中安装的OpenVAS不是最新版本的话,能够经过以下办法安装最新版的OpenVAS工具。详细办法如下所示:

(1)更新软件包列表。执行命令如下所示:

root@Kali:~# apt-get update

执行以上命令后,将会获取最近的软件包列表。

(2)获取到最新的软件包,。执行命令如下所示:

root@Kali:~# apt-get dist-upgrade

执行以上命令后,将会对有更新的包停止下载并安装。

(3)重新安装OpenVAS工具。执行命令如下所示:

root@Kali:~# apt-get install openvas

执行以上命令后,假如没有报错,则阐明已胜利安装OpenVAS工具。假如当前系统中曾经安装了最新版的OpenVAS软件,将会显现以下相似信息:

正在读取软件包列表... 完成

正在剖析软件包的依赖关系树

正在读取状态信息... 完成

openvas 曾经是最新的版本了。

下列软件包是自动安装的并且如今不需求了:

firmware-mod-kit libafpclient0 libhackrf liblzma-dev libmozjs22d libnet-daemon-perl libnfc3 libplrpc-perl

libruby libtsk3-3 libwireshark2 libwiretap2 libwsutil2 openjdk-7-jre-lib python-apsw python-utidylib

ruby-crack ruby-diff-lcs ruby-rspec ruby-rspec-core ruby-rspec-expectations ruby-rspec-mocks ruby-simplecov

ruby-simplecov-html unrar-free xulrunner-22.0

Use 'apt-get autoremove' to remove them.

晋级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 20 个软件包未被晋级。

从以上输出信息中,能够看到OpenVAS曾经是最新版本了。

配置OpenVAS服务

OpenVAS工具安装胜利后,还需求停止一些配置才能够运用。例如,初始化服务、同步插件及启动服务等。下面将引见在Kali Linux中配置OpenVAS服务的办法。

【示例1-1】配置OpenVAS服务。详细操作步骤如下所示:

(1)下载并更新OpenVAS库。执行命令如下所示:

root@Kali:~# openvas-setup

/var/lib/openvas/private/CA created

/var/lib/openvas/CA created #创立证书

[i] This script synchronizes an NVT collection with the 'OpenVAS NVT Feed'.

[i] The 'OpenVAS NVT Feed' is provided by 'The OpenVAS Project'.

[i] Online information about this feed: 'http://www.openvas.org/openvas-nvt-feed.html'.

[i] NVT dir: /var/lib/openvas/plugins

[w] Could not determine feed version.

[i] rsync is not recommended for the initial sync. Falling back on http.

[i] Will use wget

[i] Using GNU wget: /usr/bin/wget

[i] Configured NVT http feed: http://www.openvas.org/openvas-nvt-feed-current.tar.bz2

[i] Downloading to: /tmp/openvas-nvt-sync.QH0Vl5ckzd/openvas-feed-2015-07-28-23736.tar.bz2

--2015-07-28 09:53:24-- http://www.openvas.org/openvas-nvt-feed-current.tar.bz2

正在解析主机 www.openvas.org (www.openvas.org)... 5.9.98.186

正在衔接 www.openvas.org (www.openvas.org)|5.9.98.186|:80... 已衔接。

已发出 HTTP 恳求,正在等候回应... 200 OK

长度:17065793 (16M) [application/x-bzip2]

正在保管至: “/tmp/openvas-nvt-sync.QH0Vl5ckzd/openvas-feed-2015-07-28-23736.tar.bz2”

100%[======================================================================>] 17,065,793 337K/s 用时 34s

2015-07-28 09:54:09 (484 KB/s) - 已保管 “/tmp/openvas-nvt-sync.QH0Vl5ckzd/openvas-feed-2015-07-28-23736.tar.bz2” [17065793/17065793])

2008/

2008/deb_008_1.nasl #同步NVT库

...... Please report synchronization problems to openvas-feed@intevation.de.

If you have any other questions, please use the OpenVAS mailing lists

or the OpenVAS IRC chat. See http://www.openvas.org/ for details.

receiving incremental file list

./

COPYING

1493 100% 1.42MB/s 0:00:00 (xfer#1, to-check=63/65)

COPYING.asc

198 100% 193.36kB/s 0:00:00 (xfer#2, to-check=62/65)

nvdcve-2.0-2002.xml

19454677 100% 224.29kB/s 0:01:24 (xfer#3, to-check=61/65)

nvdcve-2.0-2002.xml.asc

198 100% 0.44kB/s 0:00:00 (xfer#4, to-check=60/65)

nvdcve-2.0-2003.xml

5691998 100% 266.11kB/s 0:00:20 (xfer#5, to-check=59/65)

nvdcve-2.0-2003.xml.asc

198 100% 7.73kB/s 0:00:00 (xfer#6, to-check=58/65)

......

Country Name (2 letter code) [DE]:State or Province Name (full name) [Some-State]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (eg, your name or your server's hostname) []:Email Address []:Using configuration from /tmp/openvas-mkcert-client.24593/stdCf

Check that the request matches the signature

Signature ok

The Subject's Distinguished Name is as follows

countryName :PRINTABLE:'DE' #国度名

localityName :PRINTABLE:'Berlin' #本地名

commonName :PRINTABLE:'om' #普通名

Certificate is to be certified until Jul 27 03:02:02 2016 GMT (365 days)

Write out database with 1 new entries

Data Base Updated

Stopping OpenVAS Manager: openvasmd.

Stopping OpenVAS Scanner: openvassd.

Starting OpenVAS Scanner: openvassd.

Starting OpenVAS Manager: openvasmd.

Restarting Greenbone Security Assistant: gsad. #OpenVAS服务已启动

User created with password '4b44aa5b-5535-4525-b1db-d87c9b5d81cd'. #创立的用户密码

以上就是更新OpenVAS库的一个过程。从输出的信息中,能够看到在该过程中创立了证书、下载及更新了一切的扫描插件等。在该更新过程中,将会创立一个名为admin的用户,并且自动生成了一个密码。在本例中,生成的密码为4b44aa5b-5535-4525-b1db-d87c9b5d81cd。在该过程中输出的信息较多,由于篇幅的缘由,中间局部内容运用省略号(......)取代了。由于此过程会下载大量的插件,所以该过程大约需求半个小时的时间。不过,再次停止同步时,时间就快了。

提示:在更新插件时主要是看用户的网速。假如网速好的话,可能不需求很长时间。但是,假如网速不好的话,需求的时间会很长,请用户耐烦等候。而且,在该过程中用户不需求停止任何操作。

(2)在更新OpenVAS库时,自动为admin用户创立了一个密码。但是,该密码比拟长,所以不容易记忆。为了便当用户记忆和输入,能够运用openvasmd命令修正该密码。其中,执行命令如下所示:

root@Kali:~# openvasmd --user=admin --new-password=123456

执行以上命令后,将不会输出任何信息。以上命令中,--user选项指定的是修正密码的用户为admin,--new-password选项指定将admin用户的密码修正为“123456”。

(3)为了确认OpenVAS能否安装完成,能够运用openvas-check-setup对该服务停止检查。如下所示:

root@Kali:~# openvas-check-setup

openvas-check-setup 2.3.0

Test completeness and readiness of OpenVAS-8

(add '--v6' or '--v7' or '--9'

if you want to check for another OpenVAS version)

Please report us any non-detected problems and

help us to improve this check routine:

http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss

Send us the log-file (/tmp/openvas-check-setup.log) to help analyze the problem.

Use the parameter --server to skip checks for client tools

like GSD and OpenVAS-CLI.

Step 1: Checking OpenVAS Scanner ...

OK: OpenVAS Scanner is present in version 5.0.1.

OK: OpenVAS Scanner CA Certificate is present as /var/lib/openvas/CA/cacert.pem.

OK: OpenVAS Scanner server certificate is valid and present as /var/lib/openvas/CA/servercert.pem.

OK: NVT collection in /var/lib/openvas/plugins contains 40087 NVTs.

WARNING: Signature checking of NVTs is not enabled in OpenVAS Scanner.

SUGGEST: Enable signature checking (see http://www.openvas.org/trusted-nvts.html).

OK: The NVT cache in /var/cache/openvas contains 40087 files for 40087 NVTs.

OK: redis-server is present in version 2.4.14.

OK: scanner (kb_location setting) is configured properly using the redis-server socket: /var/lib/redis/redis.sock

OK: redis-server is running and listening on socket: /var/lib/redis/redis.sock.

OK: redis-server configuration is OK and redis-server is running.

Step 2: Checking OpenVAS Manager ...

OK: OpenVAS Manager is present in version 6.0.1.

OK: OpenVAS Manager client certificate is valid and present as /var/lib/openvas/CA/clientcert.pem.

OK: OpenVAS Manager database found in /var/lib/openvas/mgr/tasks.db.

OK: Access rights for the OpenVAS Manager database are correct.

OK: At least one user exists.

OK: sqlite3 found, extended checks of the OpenVAS Manager installation enabled.

OK: OpenVAS Manager database is at revision 146.

OK: OpenVAS Manager expects database at revision 146.

OK: Database schema is up to date.

OK: OpenVAS Manager database contains information about 40087 NVTs.

OK: OpenVAS SCAP database found in /var/lib/openvas/scap-data/scap.db.

OK: OpenVAS CERT database found in /var/lib/openvas/cert-data/cert.db.

OK: xsltproc found.

Step 3: Checking user configuration ...

WARNING: Your password policy is empty.

SUGGEST: Edit the /etc/openvas/pwpolicy.conf file to set a password policy.

Step 4: Checking Greenbone Security Assistant (GSA) ...

OK: Greenbone Security Assistant is present in version 6.0.1.

Step 5: Checking OpenVAS CLI ...

OK: OpenVAS CLI version 1.4.0.

Step 6: Checking Greenbone Security Desktop (GSD) ...

SKIP: Skipping check for Greenbone Security Desktop.

Step 7: Checking if OpenVAS services are up and running ...

OK: netstat found, extended checks of the OpenVAS services enabled.

OK: OpenVAS Scanner is running and listening only on the local interface.

OK: OpenVAS Scanner is listening on port 9391, which is the default port.

WARNING: OpenVAS Manager is running and listening only on the local interface.

This means that you will not be able to access the OpenVAS Manager from the

outside using GSD or OpenVAS CLI.

SUGGEST: Ensure that OpenVAS Manager listens on all interfaces unless you want

a local service only.

OK: OpenVAS Manager is listening on port 9390, which is the default port.

OK: Greenbone Security Assistant is listening on port 9392, which is the default port.

Step 8: Checking nmap installation ...

WARNING: Your version of nmap is not fully supported: 6.47

SUGGEST: You should install nmap 5.51 if you plan to use the nmap NSE NVTs.

Step 10: Checking presence of optional tools ...

OK: pdflatex found.

OK: PDF generation successful. The PDF report format is likely to work.

OK: ssh-keygen found, LSC credential generation for GNU/Linux targets is likely to work.

WARNING: Could not find rpm binary, LSC credential package generation for RPM and DEB based targets will not work.

SUGGEST: Install rpm.

WARNING: Could not find makensis binary, LSC credential package generation for Microsoft Windows targets will not work.

SUGGEST: Install nsis.

It seems like your OpenVAS-8 installation is OK.

If you think it is not OK, please report your observation

and help us to improve this check routine:

http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss

Please attach the log-file (/tmp/openvas-check-setup.log) to help us analyze the problem.

从以上输出信息中,能够看到以上过程停止了九步检查。检查完后,看到“It seems like your OpenVAS-7 installation is OK.”信息,则表示OpenVAS安装胜利。接下来,用户就能够运用OpenVAS工具施行扫描了。

转自:

http://www.cainiaogongju.com/aspcms/news/2016-4-17/19849.html

OpenVAS破绽扫描根底教程之OpenVAS概述及安装及配置OpenVAS服务相关推荐

  1. Linux入门基础教程之Linux下软件安装

    Linux入门基础教程之Linux下软件安装 一.在线安装: sudo apt-get install 即可安装 如果在安装完后无法用Tab键补全命令,可以执行: source ~/.zshrc AP ...

  2. SAP 教程之 01 如何为 Inbound IDOC 配置 SAP

    在本系列中,我将讨论如何为入站流程配置 SAP. 在我之前的博客中,我概述了IDOC.<SAP 教程之 SAP 中的 IDOC> 在入站处理期间,IDoc 被传输到接口并存储在 R/3 系 ...

  3. SAP 教程之 02 如何为 Inbound IDOC 配置 SAP

    在我之前的博客中,我概述了IDOC和配置的第 1 步. 在这篇博客中,我将介绍分布模型的配置. 配置分布模型 转到交易代码:BD64.将显示显示分布模型窗口. 单击菜单栏中的 Distribution ...

  4. SAP 教程之 03 如何为 Inbound IDOC 配置 SAP,配置合作伙伴配置文件

    在本系列中,我将讨论如何为入站流程配置 SAP. 在我之前的博客中,我概述了IDOC和配置的步骤 1 配置的 步骤 2. 在此博客中,我将介绍合作伙伴配置文件的配置. 配置合作伙伴配置文件 转到交易代 ...

  5. JSP入门初级教程之JSP概述

    JSP(IAVA SERVER PAGES)是由Sun 公司在java语言上开发出来的一种动态网页制作技术,其可使您可以将网页中的动态部分和静态的HTML相分离.您可以使用平常得心应手的工具并按照平常 ...

  6. 【8】青龙面板系列教程之nolanjdc的一键安装获取cookie【作者删库了,不用尝试了】

    说明: 作者从纯纯的新手一步一步搭建了自己的青龙面板,所以教程内容会尽可能的详细,网上各样的教程不少,但都比较跳跃,我会把每一步的作用都写清楚,如果文中有错误之处,也欢迎指出. [作者删库了,不用尝试 ...

  7. 【Heritrix基础教程之1】在Eclipse中配置Heritrix

    一.新建项目并将Heritrix源码导入 1.下载heritrix-1.14.4-src.zip和heritrix-1.14.4.zip两个压缩包,并解压,以后分别简称SRC包和ZIP包: 2.在Ec ...

  8. 安装教程之JDK下载与安装

    目录 一.下载JDK 二.JDK安装 三.配置环境变量 四.验证JDK是否安装成功 一.下载JDK 1.选择路径 1.1 Oracle官方网站( https://www.oracle.com) 1.2 ...

  9. 安装教程之Teamviewer下载及安装

    TeamViewer是一个能在任何防火墙和NAT代理的后台用于远程控制的应用程序,桌面共享和文件传输的简单且快速的解决方案.为了连接到另一台计算机,只需要在两台计算机上同时运行 TeamViewer ...

最新文章

  1. 动态内存检测工具Valgrind
  2. ComponentOne WebChart for ASP.NET基础
  3. 极客马拉松JUNCTION✖️TIANJIN
  4. 计算机一级选择题已做完确认,计算机一级选择题(附答案)
  5. 49 - 算法 - LeetCode 110 平衡二叉树 - 求二叉树的高度 -双重递归
  6. input和output哪个是充电_html中input和output的区别?糊涂了搞不清了。哪位给解说下...
  7. UNIX编程艺术学习笔记-1
  8. STM32下载Bin文件的几种方式
  9. linux if 括号用法总结
  10. DWM 层 -- 访客 UV 计算
  11. 如何在宝塔面板中屏蔽垃圾蜘蛛?
  12. Linux中etc目录是什么缩写
  13. Ubuntu 制作离线软件安装包
  14. Android逆向实例笔记—手游中的内购破解(火柴人联盟最新版1.9.2 BB弹 )
  15. itext生成打印(操作PDF)
  16. 安卓课程设计之记账本_课程设计:基于安卓的记账本.pdf
  17. dede转eyou内核的详细步骤 易优cms Eyoucms快速入门
  18. 题目:企业网络方案设计
  19. 野蛮生长-HW上机7
  20. 无限想象的运维未来!2018蓝鲸智云分享会完美收官

热门文章

  1. Android 基础知识+app测试权限问题
  2. nginx已经启动 无法访问页面
  3. Redis5搭建集群
  4. Elasticsearch-Cat命令详解
  5. Echarts实现3d 地图实现飞线效果
  6. Linux相关教程(概念版)
  7. 大数据挖掘技术在金融保险行业中的用途
  8. centos7下编译安装qemu5.0+spice-server最新版
  9. The Unarchiver for Mac(mac解压缩神器)
  10. 曼德布洛特(Mandelbrot)集合