[Openvas-nvts-commits] r543 - / scripts scripts/2009 scripts/pre2008

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Thu Jul 3 15:42:40 CEST 2014


Author: mime
Date: 2014-07-03 15:42:39 +0200 (Thu, 03 Jul 2014)
New Revision: 543

Modified:
   ChangeLog
   scripts/2009/gb_apache_mod_jk_detect.nasl
   scripts/find_service_3digits.nasl
   scripts/misc_func.inc
   scripts/pre2008/phpinfo.nasl
Log:
security_note -> log_message  More details in name

Modified: ChangeLog
===================================================================
--- ChangeLog	2014-07-03 13:32:49 UTC (rev 542)
+++ ChangeLog	2014-07-03 13:42:39 UTC (rev 543)
@@ -5,6 +5,16 @@
 
 2014-07-03 Michael Meyer <michael.meyer at greenbone.net>
 
+	* scripts/2009/gb_apache_mod_jk_detect.nasl,
+	scripts/find_service_3digits.nasl,
+	scripts/misc_func.inc:
+	security_note -> log_message
+
+	* scripts/pre2008/phpinfo.nasl:
+	More details in name.
+
+2014-07-03 Michael Meyer <michael.meyer at greenbone.net>
+
 	* scripts/2014/gb_nas4free_default_credentials.nasl,
 	scripts/gb_nas4free_detect.nasl:
 	Added new plugins.

Modified: scripts/2009/gb_apache_mod_jk_detect.nasl
===================================================================
--- scripts/2009/gb_apache_mod_jk_detect.nasl	2014-07-03 13:32:49 UTC (rev 542)
+++ scripts/2009/gb_apache_mod_jk_detect.nasl	2014-07-03 13:42:39 UTC (rev 543)
@@ -30,7 +30,7 @@
 
 if(description)
 {
-  script_id(800279);
+  script_oid("1.3.6.1.4.1.25623.1.0.800279");
   script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
  script_version("$Revision$");
   script_tag(name:"last_modification", value:"$Date$");
@@ -60,10 +60,6 @@
 include("cpe.inc");
 include("host_details.inc");
 
-## Constant values
-SCRIPT_OID  = "1.3.6.1.4.1.25623.1.0.800279";
-SCRIPT_DESC = "Apache mod_jk Module Version Detection";
-
 port = get_http_port(default:80);
 if(!get_port_state(port)){
   exit(0);
@@ -76,13 +72,15 @@
   if(version[1] != NULL)
   {
     set_kb_item(name:"www/" + port + "/Apache/Mod_Jk", value:version[1]);
-    security_note(port:port,data:"Mod JK version " + version[1] + " was detected on the host");
+    log_message(port:port,data:"Mod JK version " + version[1] + " was detected on the host");
    
     ## build cpe and store it as host_detail
     cpe = build_cpe(value:version[1], exp:"^([0-9.]+)", base:"cpe:/a:apache:mod_jk:");
-    if(!isnull(cpe))
-       register_host_detail(name:"App", value:cpe, nvt:SCRIPT_OID, desc:SCRIPT_DESC);
+    if(isnull(cpe))
+      cpe = 'cpe:/a:apache:mod_jk';
 
+    register_product(cpe:cpe, location:port + '/tcp', port:port);
+
     exit(0);
   }
 }

Modified: scripts/find_service_3digits.nasl
===================================================================
--- scripts/find_service_3digits.nasl	2014-07-03 13:32:49 UTC (rev 542)
+++ scripts/find_service_3digits.nasl	2014-07-03 13:42:39 UTC (rev 543)
@@ -144,7 +144,7 @@
  {
     # iMQ Broker Rendezvous(imqbrokerd) 
     register_service(port: port, proto: "imqbrokerd");
-    security_note(port:port,data:string("A Message Queue broker is running at this port.\n"));
+    log_message(port:port,data:string("A Message Queue broker is running at this port.\n"));
     exit(0);
  }  
  if ("PORT" >< help || "PASV" >< help)

Modified: scripts/misc_func.inc
===================================================================
--- scripts/misc_func.inc	2014-07-03 13:32:49 UTC (rev 542)
+++ scripts/misc_func.inc	2014-07-03 13:42:39 UTC (rev 543)
@@ -506,7 +506,7 @@
  a = tolower(name[0]);
  if (a == 'a' || a == 'e' || a == 'i' || a == 'o') a = 'An ';
  else a = 'A ';
- security_note(port: port, data: a + name + ' is running on this port');
+ log_message(port: port, data: a + name + ' is running on this port');
 }
 
 

Modified: scripts/pre2008/phpinfo.nasl
===================================================================
--- scripts/pre2008/phpinfo.nasl	2014-07-03 13:32:49 UTC (rev 542)
+++ scripts/pre2008/phpinfo.nasl	2014-07-03 13:42:39 UTC (rev 543)
@@ -47,8 +47,7 @@
  script_tag(name:"risk_factor", value:"High");
 
  
- name = "phpinfo.php";
- script_name(name);
+ script_name("phpinfo() output accessible");
 
  desc = "
  Summary:



More information about the Openvas-nvts-commits mailing list