[Openvas-commits] r5840 - in trunk/openvas-plugins: . scripts

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 11 15:39:55 CET 2009


Author: mime
Date: 2009-11-11 15:39:37 +0100 (Wed, 11 Nov 2009)
New Revision: 5840

Modified:
   trunk/openvas-plugins/ChangeLog
   trunk/openvas-plugins/scripts/gb_adobe_flash_player_detect_win.nasl
   trunk/openvas-plugins/scripts/gb_becky_internet_mail_detect.nasl
   trunk/openvas-plugins/scripts/gb_blazevideo_hdtv_detect.nasl
   trunk/openvas-plugins/scripts/gb_bpsoft_hex_workshop_detect.nasl
   trunk/openvas-plugins/scripts/gb_bsplayer_detect.nasl
   trunk/openvas-plugins/scripts/gb_ccproxy_detect.nasl
   trunk/openvas-plugins/scripts/gb_eureka_email_detect.nasl
   trunk/openvas-plugins/scripts/gb_icq_toolbar_detect.nasl
   trunk/openvas-plugins/scripts/gb_kaspersky_internet_sec_suite_dos_vuln.nasl
   trunk/openvas-plugins/scripts/gb_magic_iso_maker_detect.nasl
   trunk/openvas-plugins/scripts/gb_mcafee_groupshield_detect.nasl
   trunk/openvas-plugins/scripts/gb_nullftp_server_detect.nasl
   trunk/openvas-plugins/scripts/gb_openssl_detect_win.nasl
   trunk/openvas-plugins/scripts/gb_python_imageop_bof_vuln_win.nasl
   trunk/openvas-plugins/scripts/gb_python_intgr_overflow_vuln_win.nasl
   trunk/openvas-plugins/scripts/gb_qip_detect.nasl
   trunk/openvas-plugins/scripts/gb_qtweb_detect.nasl
   trunk/openvas-plugins/scripts/gb_ultraiso_detect.nasl
   trunk/openvas-plugins/scripts/gb_ultravnc_cpp_file_mult_bof_vuln.nasl
   trunk/openvas-plugins/scripts/gb_xemacs_detect_win.nasl
   trunk/openvas-plugins/scripts/gb_xvid_detect_win.nasl
   trunk/openvas-plugins/scripts/secpod_adobe_flex_sdk_xss_vuln_win.nasl
   trunk/openvas-plugins/scripts/secpod_audacity_detect_win.nasl
   trunk/openvas-plugins/scripts/secpod_easy_rmtomp3_conv_detect.nasl
   trunk/openvas-plugins/scripts/secpod_euphonics_player_bof_vuln.nasl
   trunk/openvas-plugins/scripts/secpod_expert_pdf_editorx_activex_vuln.nasl
   trunk/openvas-plugins/scripts/secpod_freesshd_detect.nasl
   trunk/openvas-plugins/scripts/secpod_ftpshell_client_detect.nasl
   trunk/openvas-plugins/scripts/secpod_hamster_audio_player_detect.nasl
   trunk/openvas-plugins/scripts/secpod_ibm_db2_detect_win_900218.nasl
   trunk/openvas-plugins/scripts/secpod_ms_wpp_enterprise_library_detect.nasl
   trunk/openvas-plugins/scripts/secpod_opera_detection_win_900036.nasl
   trunk/openvas-plugins/scripts/secpod_pplive_detect.nasl
   trunk/openvas-plugins/scripts/secpod_sdp_downloader_detect.nasl
   trunk/openvas-plugins/scripts/secpod_thegreenbow_ipsec_vpn_client_detect.nasl
   trunk/openvas-plugins/scripts/secpod_tightvnc_detect_win.nasl
   trunk/openvas-plugins/scripts/secpod_ultravnc_detect_win.nasl
   trunk/openvas-plugins/scripts/secpod_viplay_detect.nasl
   trunk/openvas-plugins/scripts/secpod_xilisoft_video_conv_detect.nasl
Log:
Avoid some messages in dump log

Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/ChangeLog	2009-11-11 14:39:37 UTC (rev 5840)
@@ -1,3 +1,47 @@
+2009-11-11 Michael Meyer <michael.meyer at intevation.de>
+
+	* scripts/secpod_ms_wpp_enterprise_library_detect.nasl,
+	scripts/gb_magic_iso_maker_detect.nasl,
+	scripts/gb_bsplayer_detect.nasl,
+	scripts/gb_adobe_flash_player_detect_win.nasl,
+	scripts/gb_eureka_email_detect.nasl,
+	scripts/gb_nullftp_server_detect.nasl,
+	scripts/secpod_ibm_db2_detect_win_900218.nasl,
+	scripts/secpod_audacity_detect_win.nasl,
+	scripts/secpod_ftpshell_client_detect.nasl,
+	scripts/gb_becky_internet_mail_detect.nasl,
+	scripts/secpod_euphonics_player_bof_vuln.nasl,
+	scripts/secpod_easy_rmtomp3_conv_detect.nasl,
+	scripts/secpod_adobe_flex_sdk_xss_vuln_win.nasl,
+	scripts/gb_ultravnc_cpp_file_mult_bof_vuln.nasl,
+	scripts/gb_icq_toolbar_detect.nasl,
+	scripts/gb_bpsoft_hex_workshop_detect.nasl,
+	scripts/gb_xvid_detect_win.nasl,
+	scripts/gb_openssl_detect_win.nasl,
+	scripts/secpod_xilisoft_video_conv_detect.nasl,
+	scripts/secpod_ultravnc_detect_win.nasl,
+	scripts/gb_ccproxy_detect.nasl,
+	scripts/secpod_thegreenbow_ipsec_vpn_client_detect.nasl,
+	scripts/gb_xemacs_detect_win.nasl,
+	scripts/gb_ultraiso_detect.nasl,
+	scripts/secpod_tightvnc_detect_win.nasl,
+	scripts/gb_python_imageop_bof_vuln_win.nasl,
+	scripts/secpod_sdp_downloader_detect.nasl,
+	scripts/secpod_expert_pdf_editorx_activex_vuln.nasl,
+	scripts/secpod_freesshd_detect.nasl,
+	scripts/gb_blazevideo_hdtv_detect.nasl,
+	scripts/secpod_pplive_detect.nasl,
+	scripts/secpod_hamster_audio_player_detect.nasl,
+	scripts/secpod_opera_detection_win_900036.nasl,
+	scripts/gb_kaspersky_internet_sec_suite_dos_vuln.nasl,
+	scripts/gb_qtweb_detect.nasl,
+	scripts/gb_mcafee_groupshield_detect.nasl,
+	scripts/secpod_viplay_detect.nasl,
+	scripts/gb_python_intgr_overflow_vuln_win.nasl,
+	scripts/gb_qip_detect.nasl:
+	Avoid "nasl_array_iterator: unhandled type 57 (0x39)" messages
+	in dump log.
+
 2009-11-10 Michael Meyer <michael.meyer at intevation.de>
 
 	* scripts/remote-MS00-060.nasl,

Modified: trunk/openvas-plugins/scripts/gb_adobe_flash_player_detect_win.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_adobe_flash_player_detect_win.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_adobe_flash_player_detect_win.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -58,6 +58,10 @@
 playerFlag = 0; airFlag = 0; csFlag = 0; flexFlag = 0;
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
 
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   adobeName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_becky_internet_mail_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_becky_internet_mail_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_becky_internet_mail_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -56,6 +56,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   if("Becky!" >< registry_get_sz(key:key + item, item:"DisplayName"))

Modified: trunk/openvas-plugins/scripts/gb_blazevideo_hdtv_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_blazevideo_hdtv_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_blazevideo_hdtv_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+   exit(0);
+}
+
 foreach item(registry_enum_keys(key:key))
 {
   appName = registry_get_sz(key:key+item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_bpsoft_hex_workshop_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_bpsoft_hex_workshop_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_bpsoft_hex_workshop_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   if("Hex Workshop" >< registry_get_sz(key:key + item, item:"DisplayName"))

Modified: trunk/openvas-plugins/scripts/gb_bsplayer_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_bsplayer_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_bsplayer_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -57,22 +57,31 @@
 
 # Method 1
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
-foreach item (registry_enum_keys(key:key))
-{
-  bsName = registry_get_sz(key:key + item, item:"DisplayName");
-  if("BS.Player" >< bsName)
+
+if(registry_key_exists(key:key)){
+   
+  foreach item (registry_enum_keys(key:key))
   {
-    bsVer = registry_get_sz(key:key + item, item:"DisplayVersion");
-    if(bsVer != NULL)
+    bsName = registry_get_sz(key:key + item, item:"DisplayName");
+    if("BS.Player" >< bsName)
     {
-      set_kb_item(name:"BSPlayer/Ver", value:bsVer);
-      exit(0);
+      bsVer = registry_get_sz(key:key + item, item:"DisplayVersion");
+      if(bsVer != NULL)
+      {
+        set_kb_item(name:"BSPlayer/Ver", value:bsVer);
+        exit(0);
+      }
     }
   }
 }
 
 # Method 2
 key2 = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key2)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key2))
 {
   bsName = registry_get_sz(key:key2 + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_ccproxy_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_ccproxy_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_ccproxy_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   ccproxyName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_eureka_email_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_eureka_email_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_eureka_email_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+   exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   eeName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_icq_toolbar_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_icq_toolbar_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_icq_toolbar_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -56,6 +56,11 @@
 }
 
 Key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:Key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:Key))
 {
   icqName = registry_get_sz(key:Key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_kaspersky_internet_sec_suite_dos_vuln.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_kaspersky_internet_sec_suite_dos_vuln.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_kaspersky_internet_sec_suite_dos_vuln.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -76,6 +76,11 @@
 }
 
 uninstall = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:uninstall)){
+    exit(0);
+}
+
 foreach key (registry_enum_keys(key:uninstall))
 {
   kisName = registry_get_sz(key:uninstall + key, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_magic_iso_maker_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_magic_iso_maker_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_magic_iso_maker_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   name = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_mcafee_groupshield_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_mcafee_groupshield_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_mcafee_groupshield_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -56,6 +56,12 @@
 }
 
 groupshieldKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:groupshieldKey)){
+    exit(0);
+}
+
+
 foreach item(registry_enum_keys(key:groupshieldKey))
 {
   groupName = registry_get_sz(key:groupshieldKey + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_nullftp_server_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_nullftp_server_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_nullftp_server_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   appName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_openssl_detect_win.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_openssl_detect_win.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_openssl_detect_win.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   name = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_python_imageop_bof_vuln_win.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_python_imageop_bof_vuln_win.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_python_imageop_bof_vuln_win.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -79,6 +79,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach entry (registry_enum_keys(key:key))
 {
   pyName = registry_get_sz(key:key + entry, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_python_intgr_overflow_vuln_win.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_python_intgr_overflow_vuln_win.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_python_intgr_overflow_vuln_win.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -79,6 +79,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach entry (registry_enum_keys(key:key))
 {
   pyName = registry_get_sz(key:key + entry, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_qip_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_qip_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_qip_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -54,6 +54,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   qipName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_qtweb_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_qtweb_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_qtweb_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -57,6 +57,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   qtwebName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_ultraiso_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_ultraiso_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_ultraiso_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   ultraName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_ultravnc_cpp_file_mult_bof_vuln.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_ultravnc_cpp_file_mult_bof_vuln.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_ultravnc_cpp_file_mult_bof_vuln.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -84,6 +84,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   vncName = registry_get_sz(item:"DisplayName", key:key +item);

Modified: trunk/openvas-plugins/scripts/gb_xemacs_detect_win.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_xemacs_detect_win.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_xemacs_detect_win.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -56,6 +56,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   xemacsName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/gb_xvid_detect_win.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_xvid_detect_win.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/gb_xvid_detect_win.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   xvidName = registry_get_sz(key:key +item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/secpod_adobe_flex_sdk_xss_vuln_win.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_adobe_flex_sdk_xss_vuln_win.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_adobe_flex_sdk_xss_vuln_win.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -90,6 +90,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   flexName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/secpod_audacity_detect_win.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_audacity_detect_win.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_audacity_detect_win.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   audacityName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/secpod_easy_rmtomp3_conv_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_easy_rmtomp3_conv_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_easy_rmtomp3_conv_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -56,6 +56,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+      exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   rmtomp3Name = registry_get_sz(item:"DisplayName", key:key + item);

Modified: trunk/openvas-plugins/scripts/secpod_euphonics_player_bof_vuln.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_euphonics_player_bof_vuln.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_euphonics_player_bof_vuln.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -88,6 +88,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 key2 = "SOFTWARE\Microsoft\Windows\CurrentVersion\";
 
 foreach item (registry_enum_keys(key:key))

Modified: trunk/openvas-plugins/scripts/secpod_expert_pdf_editorx_activex_vuln.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_expert_pdf_editorx_activex_vuln.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_expert_pdf_editorx_activex_vuln.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -89,6 +89,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   editorx = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/secpod_freesshd_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_freesshd_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_freesshd_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+     exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   sshdName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/secpod_ftpshell_client_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_ftpshell_client_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_ftpshell_client_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -56,6 +56,10 @@
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
 
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   fclntName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/secpod_hamster_audio_player_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_hamster_audio_player_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_hamster_audio_player_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -56,6 +56,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   hamsterName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/secpod_ibm_db2_detect_win_900218.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_ibm_db2_detect_win_900218.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_ibm_db2_detect_win_900218.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -56,6 +56,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   if(registry_get_sz(key:key + item, item:"Publisher") =~ "IBM")

Modified: trunk/openvas-plugins/scripts/secpod_ms_wpp_enterprise_library_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_ms_wpp_enterprise_library_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_ms_wpp_enterprise_library_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   entlibName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/secpod_opera_detection_win_900036.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_opera_detection_win_900036.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_opera_detection_win_900036.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -77,6 +77,11 @@
 
 operaflag = 1;
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   operaName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/secpod_pplive_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_pplive_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_pplive_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   ppliveName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/secpod_sdp_downloader_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_sdp_downloader_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_sdp_downloader_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -56,6 +56,11 @@
 }
 
 sdpKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:sdpKey)){
+    exit(0);
+}
+
 foreach item(registry_enum_keys(key:sdpKey))
 {
   sdpName = registry_get_sz(key:sdpKey + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/secpod_thegreenbow_ipsec_vpn_client_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_thegreenbow_ipsec_vpn_client_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_thegreenbow_ipsec_vpn_client_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -56,6 +56,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   vpnName = registry_get_sz(key:key + item, item:"DisplayIcon");

Modified: trunk/openvas-plugins/scripts/secpod_tightvnc_detect_win.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_tightvnc_detect_win.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_tightvnc_detect_win.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   tvncName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/secpod_ultravnc_detect_win.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_ultravnc_detect_win.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_ultravnc_detect_win.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+      exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   uvncName = registry_get_sz(key:key + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/secpod_viplay_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_viplay_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_viplay_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -55,6 +55,11 @@
 }
 
 viplayKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:viplayKey)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:viplayKey))
 {
   viplayName = registry_get_sz(key:viplayKey + item, item:"DisplayName");

Modified: trunk/openvas-plugins/scripts/secpod_xilisoft_video_conv_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_xilisoft_video_conv_detect.nasl	2009-11-11 09:58:32 UTC (rev 5839)
+++ trunk/openvas-plugins/scripts/secpod_xilisoft_video_conv_detect.nasl	2009-11-11 14:39:37 UTC (rev 5840)
@@ -56,6 +56,11 @@
 }
 
 key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";
+
+if(!registry_key_exists(key:key)){
+    exit(0);
+}
+
 foreach item (registry_enum_keys(key:key))
 {
   xilisoftName= registry_get_sz(item:"DisplayName", key:key +item);



More information about the Openvas-commits mailing list