[Openvas-commits] r3162 - in trunk/openvas-plugins: . scripts
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Apr 23 08:23:51 CEST 2009
Author: chandra
Date: 2009-04-23 08:23:49 +0200 (Thu, 23 Apr 2009)
New Revision: 3162
Modified:
trunk/openvas-plugins/ChangeLog
trunk/openvas-plugins/scripts/secpod_reg.inc
trunk/openvas-plugins/scripts/smb_nt_ms02-016.nasl
trunk/openvas-plugins/scripts/smb_nt_ms02-018.nasl
trunk/openvas-plugins/scripts/smb_nt_ms02-025.nasl
trunk/openvas-plugins/scripts/smb_nt_ms02-051.nasl
trunk/openvas-plugins/scripts/smb_nt_ms04-026.nasl
Log:
Addressed depedency issues
Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog 2009-04-23 06:16:04 UTC (rev 3161)
+++ trunk/openvas-plugins/ChangeLog 2009-04-23 06:23:49 UTC (rev 3162)
@@ -1,4 +1,14 @@
2009-04-23 Chandrashekhar B <bchandra at secpod.com>
+ * scripts/smb_nt_ms04-026.nasl,
+ scripts/smb_nt_ms02-051.nasl,
+ scripts/secpod_reg.inc,
+ scripts/smb_nt_ms02-016.nasl,
+ scripts/smb_nt_ms02-018.nasl,
+ scripts/smb_nt_ms02-025.nasl:
+ Updated secpod_reg.inc to include new functions and
+ Addressed dependency issues
+
+2009-04-23 Chandrashekhar B <bchandra at secpod.com>
* scripts/gb_simple_machines_forum_mult_vuln_apr09.nasl,
scripts/gb_clamav_detect_lin.nasl,
scripts/gb_clamav_mult_vuln_apr09_win.nasl,
Modified: trunk/openvas-plugins/scripts/secpod_reg.inc
===================================================================
--- trunk/openvas-plugins/scripts/secpod_reg.inc 2009-04-23 06:16:04 UTC (rev 3161)
+++ trunk/openvas-plugins/scripts/secpod_reg.inc 2009-04-23 06:23:49 UTC (rev 3162)
@@ -6,8 +6,11 @@
#
# Date Written: 2008/07/18
#
-# Revision: 1.1
+# Updated: 2009/04/23
+# Chandan S <schandan at secpod.com>
#
+# Revision: 1.2
+#
# Log: schandan
# Issue #
# ------------------------------------------------------------------------
@@ -161,3 +164,49 @@
}
return 1;
}
+
+
+function hotfix_check_domain_controler()
+{
+ local_var product_options;
+ product_options = get_kb_item("SMB/Registry/HKLM/SYSTEM/CurrentControlSet/Control/ProductOptions");
+ if(!product_options){
+ return -1;
+ }
+ if("LanmanNT" >< product_options)
+ return 1;
+ else return 0;
+}
+
+function hotfix_check_nt_server()
+{
+ local_var product_options;
+ product_options = get_kb_item("SMB/Registry/HKLM/SYSTEM/CurrentControlSet/Control/ProductOptions");
+ if(!product_options){
+ return -1;
+ }
+ if("WinNT" >< product_options)
+ return 0;
+ else return 1;
+}
+
+function hotfix_check_exchange_installed()
+{
+ local_var vers;
+ vers = get_kb_item("SMB/Registry/HKLM/SOFTWARE/Microsoft/Exchange/Setup/ServicePackBuild");
+ if(!vers)
+ return NULL;
+ else return vers;
+}
+
+function hotfix_check_iis_installed()
+{
+ local_var w3svc;
+ w3svc = get_kb_item("SMB/Registry/HKLM/SYSTEM/CurrentControlSet/Services/W3SVC/ImagePath");
+ if(!w3svc){
+ return -1;
+ }
+ if("inetinfo" >!< w3svc)
+ return 0;
+ else return 1;
+}
Modified: trunk/openvas-plugins/scripts/smb_nt_ms02-016.nasl
===================================================================
--- trunk/openvas-plugins/scripts/smb_nt_ms02-016.nasl 2009-04-23 06:16:04 UTC (rev 3161)
+++ trunk/openvas-plugins/scripts/smb_nt_ms02-016.nasl 2009-04-23 06:23:49 UTC (rev 3162)
@@ -3,6 +3,9 @@
#
# See the Nessus Scripts License for details
#
+# Updated: 2009/04/23
+# Chandan S <schandan at secpod.com>
+#
if(description)
{
script_id(10945);
@@ -48,8 +51,7 @@
exit(0);
}
-include("smb_hotfixes.inc");
-#include("secpod_reg.inc");
+include("secpod_reg.inc");
if ( hotfix_check_domain_controler() <= 0 ) exit(0);
if ( hotfix_check_sp(win2k:3) <= 0 ) exit(0);
Modified: trunk/openvas-plugins/scripts/smb_nt_ms02-018.nasl
===================================================================
--- trunk/openvas-plugins/scripts/smb_nt_ms02-018.nasl 2009-04-23 06:16:04 UTC (rev 3161)
+++ trunk/openvas-plugins/scripts/smb_nt_ms02-018.nasl 2009-04-23 06:23:49 UTC (rev 3162)
@@ -3,6 +3,10 @@
#
# See the Nessus Scripts License for details
#
+# Updated: 2009/04/23
+# Chandan S <schandan at secpod.com>
+#
+#
if(description)
{
script_id(10943);
@@ -61,8 +65,8 @@
exit(0);
}
+
include("secpod_reg.inc");
-#include("smb_hotfixes.inc");
if ( hotfix_check_iis_installed() <= 0 ) exit(0);
if ( hotfix_check_sp(nt:7, win2k:3, xp:1 ) <= 0 ) exit(0);
Modified: trunk/openvas-plugins/scripts/smb_nt_ms02-025.nasl
===================================================================
--- trunk/openvas-plugins/scripts/smb_nt_ms02-025.nasl 2009-04-23 06:16:04 UTC (rev 3161)
+++ trunk/openvas-plugins/scripts/smb_nt_ms02-025.nasl 2009-04-23 06:23:49 UTC (rev 3162)
@@ -1,8 +1,11 @@
#
# This script was written by Michael Scheidell <scheidell at secnap.net>
# Copyright 2002 SECNAP Network Security, LLC.
-
#
+# Updated: 2009/04/23
+# Chandan S <schandan at secpod.com>
+#
+#
if(description)
{
script_id(11143);
@@ -51,11 +54,9 @@
}
include("smb_nt.inc");
-include("smb_hotfixes.inc");
+include("secpod_reg.inc");
-#include ("secpod_reg.inc");
-
server = hotfix_check_nt_server();
if (!server) exit (0);
Modified: trunk/openvas-plugins/scripts/smb_nt_ms02-051.nasl
===================================================================
--- trunk/openvas-plugins/scripts/smb_nt_ms02-051.nasl 2009-04-23 06:16:04 UTC (rev 3161)
+++ trunk/openvas-plugins/scripts/smb_nt_ms02-051.nasl 2009-04-23 06:23:49 UTC (rev 3162)
@@ -3,6 +3,9 @@
#
# See the Nessus Scripts License for details
#
+# Updated: 2009/04/23
+# Chandan S <schandan at secpod.com>
+#
if(description)
{
script_id(11146);
@@ -61,8 +64,8 @@
exit(0);
}
+
include("secpod_reg.inc");
-include("smb_hotfixes.inc");
if ( hotfix_check_sp(xp:1, win2k:4) <= 0 ) exit(0);
if ( hotfix_check_nt_server() <= 0 ) exit(0);
Modified: trunk/openvas-plugins/scripts/smb_nt_ms04-026.nasl
===================================================================
--- trunk/openvas-plugins/scripts/smb_nt_ms04-026.nasl 2009-04-23 06:16:04 UTC (rev 3161)
+++ trunk/openvas-plugins/scripts/smb_nt_ms04-026.nasl 2009-04-23 06:23:49 UTC (rev 3162)
@@ -6,8 +6,12 @@
# Ref: Amit Klein (August 2004)
# Tenable adds
# - check for OWA on port 80
+#
+# Updated: 2009/04/23
+# Chandan S <schandan at secpod.com>
+#
+#
-
if(description)
{
script_id(14254);
@@ -58,7 +62,6 @@
include("http_func.inc");
include("http_keepalive.inc");
include("secpod_reg.inc");
-include("smb_hotfixes.inc");
# we will first ensure that OWA is running
More information about the Openvas-commits
mailing list