[Openvas-commits] r1542 - in trunk/openvas-plugins: . scripts
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Oct 14 16:47:09 CEST 2008
Author: chandra
Date: 2008-10-14 16:47:09 +0200 (Tue, 14 Oct 2008)
New Revision: 1542
Modified:
trunk/openvas-plugins/ChangeLog
trunk/openvas-plugins/scripts/pkg-lib-rpm.inc
Log:
Fixed an issue in regex to grep the RPM revisions
Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog 2008-10-14 14:28:35 UTC (rev 1541)
+++ trunk/openvas-plugins/ChangeLog 2008-10-14 14:47:09 UTC (rev 1542)
@@ -1,4 +1,9 @@
2008-10-14 Chandrashekhar B <bchandra at secpod.com>
+ * scripts/pkg-lib-rpm.inc:
+ Fixed an issue with regex to grep the RPM
+ revision
+
+2008-10-14 Chandrashekhar B <bchandra at secpod.com>
* scripts/gb_cups_mult_vuln_oct08.nasl,
scripts/gb_ms08-040.nasl:
Added new plugins
Modified: trunk/openvas-plugins/scripts/pkg-lib-rpm.inc
===================================================================
--- trunk/openvas-plugins/scripts/pkg-lib-rpm.inc 2008-10-14 14:28:35 UTC (rev 1541)
+++ trunk/openvas-plugins/scripts/pkg-lib-rpm.inc 2008-10-14 14:47:09 UTC (rev 1542)
@@ -19,6 +19,9 @@
# isrpmvuln returns 0 if it is not installed or is installed
# but up to date, and returns 1 if it is installed and vulnerable
+
+# Example call: isrpmvuln(pkg:"gnutls-utils", rpm:"1.4.1~3", rls:"FC6")
+
function isrpmvuln(pkg, rpm, rls) {
# Check that we have the data for this release.
kbrls = get_kb_item("ssh/login/release");
@@ -27,7 +30,8 @@
}
rpms = get_kb_item("ssh/login/rpms");
if(!rpms) return(0);
- pat = string(";(", pkg, "~[^;]+);");
+# pat = string(";(", pkg, "~[^;]+);");
+ pat = string(pkg, "~([^;]+);");
matches = eregmatch(pattern:pat, string:rpms);
if(isnull(matches)) {
return(0);
More information about the Openvas-commits
mailing list