[Openvas-commits] r12023 - in trunk/openvas-plugins: . scripts
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Nov 7 14:46:07 CET 2011
Author: hdoreau
Date: 2011-11-07 14:46:02 +0100 (Mon, 07 Nov 2011)
New Revision: 12023
Modified:
trunk/openvas-plugins/ChangeLog
trunk/openvas-plugins/scripts/cutenews_detect.nasl
trunk/openvas-plugins/scripts/invision_power_board_detect.nasl
trunk/openvas-plugins/scripts/postgresql_detect.nasl
Log:
* scripts/cutenews_detect.nasl,
scripts/invision_power_board_detect.nasl,
scripts/postgresql_detect.nasl: Made output independent of the script
description.
Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog 2011-11-07 13:44:40 UTC (rev 12022)
+++ trunk/openvas-plugins/ChangeLog 2011-11-07 13:46:02 UTC (rev 12023)
@@ -1,3 +1,10 @@
+2011-11-07 Henri Doreau <henri.doreau at greenbone.net>
+
+ * scripts/cutenews_detect.nasl,
+ scripts/invision_power_board_detect.nasl,
+ scripts/postgresql_detect.nasl: Made output independent of the script
+ description.
+
2011-11-07 Antu Sanadi <santu at secpod.com>
* scripts/gb_phpldapadmin_50331.nasl:Updated Related CVE.
Modified: trunk/openvas-plugins/scripts/cutenews_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/cutenews_detect.nasl 2011-11-07 13:44:40 UTC (rev 12022)
+++ trunk/openvas-plugins/scripts/cutenews_detect.nasl 2011-11-07 13:46:02 UTC (rev 12023)
@@ -135,12 +135,11 @@
}
- info = string("None\n\nCuteNews Version '");
- info += string(vers);
- info += string("' was detected on the remote host in the following directory(s):\n\n");
- info += string(install, "\n");
+ desc += string("\nCuteNews Version '");
+ desc += string(vers);
+ desc += string("' was detected on the remote host in the following directory(s):\n\n");
+ desc += string(install, "\n");
- desc = ereg_replace(string:desc, pattern:"None$", replace:info);
if(report_verbosity > 0) {
security_note(port:port,data:desc);
}
Modified: trunk/openvas-plugins/scripts/invision_power_board_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/invision_power_board_detect.nasl 2011-11-07 13:44:40 UTC (rev 12022)
+++ trunk/openvas-plugins/scripts/invision_power_board_detect.nasl 2011-11-07 13:46:02 UTC (rev 12023)
@@ -37,10 +37,8 @@
This host is running IP.Board, an outstanding bulletin board system.
See also:
- http://www.invisionpower.com/community/board/
+ http://www.invisionpower.com/community/board/";
- Risk factor : None";
-
if (description)
{
script_id(100107);
@@ -126,13 +124,12 @@
if(!isnull(cpe))
register_host_detail(name:"App", value:cpe, nvt:SCRIPT_OID, desc:SCRIPT_DESC);
- info = string("None\n\nIP.Board Version '");
- info += string(vers);
- info += string("' was detected on the remote host in the following" +
+ desc += string("\nIP.Board Version '");
+ desc += string(vers);
+ desc += string("' was detected on the remote host in the following" +
" directory(s):\n\n");
- info += string(install, "\n");
+ desc += string(install, "\n");
- desc = ereg_replace(string:desc, pattern:"None$", replace:info);
if(report_verbosity > 0){
security_note(port:port,data:desc);
}
Modified: trunk/openvas-plugins/scripts/postgresql_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/postgresql_detect.nasl 2011-11-07 13:44:40 UTC (rev 12022)
+++ trunk/openvas-plugins/scripts/postgresql_detect.nasl 2011-11-07 13:46:02 UTC (rev 12023)
@@ -153,16 +153,15 @@
if(!isnull(cpe))
register_host_detail(name:"App", value:cpe, nvt:SCRIPT_OID, desc:SCRIPT_DESC);
- info = string("None\n\nPostgreSQL Version '");
- info += vers;
- info += string("' was detected on the remote host.\n\n");
- txt = ereg_replace(string:desc, pattern:"None$", replace:info);
+ desc += string("\nPostgreSQL Version '");
+ desc += vers;
+ desc += string("' was detected on the remote host.\n\n");
}
}
register_service(port:port, proto:"postgresql");
if(report_verbosity > 0) {
- security_note(port:port, data:txt);
+ security_note(port:port, data:desc);
}
exit(0);
}
More information about the Openvas-commits
mailing list