[Openvas-commits] r11598 - in trunk/openvas-plugins: . scripts
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Sep 12 14:11:19 CEST 2011
Author: hdoreau
Date: 2011-09-12 14:11:04 +0200 (Mon, 12 Sep 2011)
New Revision: 11598
Modified:
trunk/openvas-plugins/ChangeLog
trunk/openvas-plugins/scripts/nmap.nasl
Log:
* scripts/nmap.nasl: Fixed OS detection reporting.
Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog 2011-09-12 12:00:02 UTC (rev 11597)
+++ trunk/openvas-plugins/ChangeLog 2011-09-12 12:11:04 UTC (rev 11598)
@@ -1,3 +1,7 @@
+2011-09-12 Henri Doreau <henri.doreau at greenbone.net>
+
+ * scripts/nmap.nasl: Fixed OS detection reporting.
+
2011-09-12 Michael Meyer <michael.meyer at greenbone.net>
* scripts/gb_zikula_49491.nasl,
Modified: trunk/openvas-plugins/scripts/nmap.nasl
===================================================================
--- trunk/openvas-plugins/scripts/nmap.nasl 2011-09-12 12:00:02 UTC (rev 11597)
+++ trunk/openvas-plugins/scripts/nmap.nasl 2011-09-12 12:11:04 UTC (rev 11598)
@@ -422,7 +422,7 @@
}
}
- v = eregmatch(string: res, pattern: 'OS: (.+)[ \t]+[A-Za-z]+:');
+ v = eregmatch(string: res, pattern: 'OS: ([^\t]+)');
if (! isnull(v))
{
security_note(port: 0, data: "Nmap found that this host is running "+v[1]);
More information about the Openvas-commits
mailing list