diff -Nuar nessus-plugins-orig/scripts/mysql_unpassworded.nasl nessus-plugins/scripts/mysql_unpassworded.nasl
--- nessus-plugins-orig/scripts/mysql_unpassworded.nasl	2004-11-26 11:21:00.000000000 +0100
+++ nessus-plugins/scripts/mysql_unpassworded.nasl	2004-11-26 11:21:15.000000000 +0100
@@ -68,7 +68,6 @@
 send(socket:soc, data:str);
 r1 = recv(socket:soc, length:4096);
 if(!strlen(r1))exit(0);
-expect = raw_string(0x03, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00);
 
 ## note, you MIGHT get this:
 ##FHost 'www.nessus.org' is not allowed to connect to this MySQL
@@ -94,14 +93,19 @@
 
 if(strlen(r1) < k)exit(0);
 
-for(i=0;i<k;i=i+1)
-{
-  if(!(ord(r1[i])==ord(expect[i])))ok=0;
+# we are just checking the value of the Response Code (5th byte) 
+# in MySQL response to login packet. 0 means we succeeded.
+display ("we received response code: ", ord(r1[4]), "\n");
+
+if (!(ord(r1[4])==0x00)) {
+	ok=0;
 }
+
 if(!ok){
 	close(soc);
 	exit(0);
 	}
+
 #
 # Ask the databases
 #
