[Openvas-commits] r10602 - in trunk/openvas-plugins: . scripts
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Mar 21 16:15:38 CET 2011
Author: mwiegand
Date: 2011-03-21 16:15:35 +0100 (Mon, 21 Mar 2011)
New Revision: 10602
Modified:
trunk/openvas-plugins/ChangeLog
trunk/openvas-plugins/scripts/host_details.nasl
Log:
* scripts/host_details.nasl: don't gather hardcoded values from the KB
now that scripts are able to register informations.
Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog 2011-03-21 15:13:43 UTC (rev 10601)
+++ trunk/openvas-plugins/ChangeLog 2011-03-21 15:15:35 UTC (rev 10602)
@@ -1,3 +1,8 @@
+2011-03-21 Henri Doreau <henri.doreau at greenbone.net>
+
+ * scripts/host_details.nasl: don't gather hardcoded values from the KB
+ now that scripts are able to register informations.
+
2011-03-21 Michael Wiegand <michael.wiegand at greenbone.net>
* scripts/apache_conn_block.nasl: Fix include.
Modified: trunk/openvas-plugins/scripts/host_details.nasl
===================================================================
--- trunk/openvas-plugins/scripts/host_details.nasl 2011-03-21 15:13:43 UTC (rev 10601)
+++ trunk/openvas-plugins/scripts/host_details.nasl 2011-03-21 15:15:35 UTC (rev 10602)
@@ -45,56 +45,11 @@
exit(0);
}
-
include("host_details.inc");
-
-function gather_os_info() {
- host_infos = make_list(
- "Host/OS/ICMP",
- "1.3.6.1.4.1.25623.1.0.102002",
- "Detects remote operating system version",
-
- "Host/OS",
- "1.3.6.1.4.1.25623.1.0.14259",
- "Performs portscan / RPC scan",
-
- "Host/OS/ntp",
- "1.3.6.1.4.1.25623.1.0.10884",
- "NTP allows query of variables",
-
- "MDS/Host/OS",
- "1.3.6.1.4.1.25623.1.0.101013",
- "Detects the presence of the MDNS service",
-
- "wssOS/version",
- "1.3.6.1.4.1.25623.1.0.101018",
- "Windows SharePoint Services Information Gathering",
-
- "Host/OS/smb",
- "1.3.6.1.4.1.25623.1.0.102011",
- "Extracts info about the OS through NTLM authentication packets",
-
- "ssh/login/release",
- "1.3.6.1.4.1.25623.1.0.50282",
- "Determine OS and list of installed packages via SSH login"
- );
-
- lstlen = max_index(host_infos) - 1;
- for (i = 0; i < lstlen; i += 3) {
- val = get_kb_item(host_infos[i]);
- if (!isnull(val)) {
- register_host_detail(name:"OS", value:val, nvt:host_infos[i+1], desc:host_infos[i+2]);
- }
- }
-}
-
-
# -- Script entry point --
-
display_report = script_get_preference("host details report display");
if (display_report && "yes" >< display_report) {
- gather_os_info();
log_message(proto:"HostDetails", data:host_details_report());
}
More information about the Openvas-commits
mailing list