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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Oct 9 11:43:03 CEST 2009


Author: mime
Date: 2009-10-09 11:43:00 +0200 (Fri, 09 Oct 2009)
New Revision: 5453

Modified:
   trunk/openvas-plugins/ChangeLog
   trunk/openvas-plugins/scripts/secpod_ms08-067_900056.nasl
   trunk/openvas-plugins/scripts/wu_ftpd_site_exec.nasl
Log:
Bugfixes

Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2009-10-09 07:59:21 UTC (rev 5452)
+++ trunk/openvas-plugins/ChangeLog	2009-10-09 09:43:00 UTC (rev 5453)
@@ -1,5 +1,11 @@
 2009-10-09  Michael Meyer <michael.meyer at intevation.de>
 
+	* scripts/wu_ftpd_site_exec.nasl,
+	scripts/secpod_ms08-067_900056.nasl:
+	Bugfix.
+
+2009-10-09  Michael Meyer <michael.meyer at intevation.de>
+
 	* scripts/cisco_vpn_client_detect.nasl:
 	Added script_description(). 
 

Modified: trunk/openvas-plugins/scripts/secpod_ms08-067_900056.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_ms08-067_900056.nasl	2009-10-09 07:59:21 UTC (rev 5452)
+++ trunk/openvas-plugins/scripts/secpod_ms08-067_900056.nasl	2009-10-09 09:43:00 UTC (rev 5453)
@@ -273,15 +273,16 @@
 req = raw_string(0x00, 0x00, 0x04, 0xc6) + req;
 send(socket:soc, data:req);
 resp = smb_recv(socket:soc, length:4096);
-
-if(ord(resp[5]) == 83 && ord(resp[6]) == 77 && ord(resp[7]) == 66)
-{
-  close(soc);
-  exit(0);
-}
-else
-{
-  security_note(data:string("Windows Server service has crashed on the system.\n" +
-                "Restart the service to resume normal operations."), port:port);
-  security_hole(port);
-}
+if(resp) {
+  if(ord(resp[5]) == 83 && ord(resp[6]) == 77 && ord(resp[7]) == 66)
+  {
+    close(soc);
+    exit(0);
+  }
+  else
+  {
+    security_note(data:string("Windows Server service has crashed on the system.\n" +
+                  "Restart the service to resume normal operations."), port:port);
+    security_hole(port);
+  }
+}  

Modified: trunk/openvas-plugins/scripts/wu_ftpd_site_exec.nasl
===================================================================
--- trunk/openvas-plugins/scripts/wu_ftpd_site_exec.nasl	2009-10-09 07:59:21 UTC (rev 5452)
+++ trunk/openvas-plugins/scripts/wu_ftpd_site_exec.nasl	2009-10-09 09:43:00 UTC (rev 5453)
@@ -93,6 +93,8 @@
 	soc = open_sock_tcp(ftpport);
 	}
  }
+  if(!soc)soc = open_sock_tcp(ftpport);
+  if(!soc)exit(0);
   r = ftp_recv_line(socket:soc);
   close(soc);
   if(egrep(pattern:"220.*FTP server.*[vV]ersion wu-((1\..*)|(2\.[0-5]\..*)|(2\.6\.0)).*",



More information about the Openvas-commits mailing list