rapid7/metasploit-framework — pull request #372 by brandonprry (2012-05-09 04:29:49+00:00)
Title: Openvas import

Add support for the OpenVAS XML report that deviates from the Nessus XML report
Hit me up in IRC if you need an example report

Below is a run-through
--------------------------------------------------------------------------------------------

msf > db_connect postgres:password@127.0.0.1:5433/msf_openvas
msf > hosts -d

Hosts
=====

address mac name os_name os_flavor os_sp purpose info comments
------- --- ---- ------- --------- ----- ------- ---- --------

msf > db_import ~/Downloads/openvas_report.xml
[*] Importing 'OpenVAS XML' data
[*] Successfully imported /home/bperry/Downloads/openvas_report.xml
msf > vulns
[*] Time: 2012-05-09 04:20:48 UTC Vuln: host=192.168.1.129 name=Vulnerabilities in SMB Could Allow Remote Code Execution
(958687) - Remote refs=CVE-2008-4114,CVE-2008-4834,CVE-2008-4835,BID-31179
[*] Time: 2012-05-09 04:20:48 UTC Vuln: host=192.168.1.129 name=Microsoft Windows SMB Server NTLM Multiple Vulnerabilities
(971468) refs=CVE-2010-0020,CVE-2010-0021,CVE-2010-0022,CVE-2010-0231
[*] Time: 2012-05-09 04:20:48 UTC Vuln: host=192.168.1.129 name=TCP Sequence Number Approximation Reset Denial of Service
Vulnerability refs=CVE-2004-0230,BID-10183
[*] Time: 2012-05-09 04:20:48 UTC Vuln: host=192.168.1.129 name=ICMP Timestamp Detection refs=CVE-1999-0524
msf > services

Services
========

host port proto name state info
---- ---- ----- ---- ----- ----
192.168.1.129 69 udp tftp open
192.168.1.129 80 tcp http open
192.168.1.129 123 udp ntp open
192.168.1.129 135 tcp epmap open
192.168.1.129 137 udp netbios-ns open
192.168.1.129 139 tcp netbios-ssn open
192.168.1.129 443 tcp https open
192.168.1.129 445 tcp microsoft-ds open
192.168.1.129 1025 tcp blackjack open
192.168.1.129 3306 tcp mysql open
192.168.1.129 5000 tcp commplex-main open

msf > hosts

Hosts
=====

address mac name os_name os_flavor os_sp purpose info comments
------- --- ---- ------- --------- ----- ------- ---- --------
192.168.1.129 Unknown device

msf >