[Plugins-writers] (no subject)

From: Andrea Governatori (gubs@private)
Date: Mon Feb 06 2006 - 07:17:53 PST


Sorry,

this is my plugin:

+# This script was written by Andrea Governatori <gubs@private>
+
+file_user = "username.txt";
+file_password = "passwd.txt";
+
+nomi_utente = fread(file_user);
+password = fread(file_password);
+
+array_names = split(nomi_utente);
+array_passwd = split(password);
+
+foreach name (array_names){
+        x = 0;
+        n = 1;
+        foreach passwd (array_passwd){
+                name = chomp(name);
+                passwd= chomp(passwd);
+                args = make_list ("netautent.sh" , name, passwd);
+                inizio = split(gettimeofday(), sep:'.', keep:0);
+                risultato = pread(cmd:"netautent.sh" , argv:args);
+                fine = split(gettimeofday(), sep:'.', keep:0);
+                inizio = int(substr(inizio[0], 7) + substr(inizio[1],0,2));
+                fine = int(substr(fine[0],7) + substr(fine[1],0,2));
+                tempo = fine - inizio;
+                output = name + ",   " + passwd + ",   " + tempo + " msec,   " + risultato;
+               if ( int(risultato) == 0 ){
+                        goal += output;
+                        n++;
+                }
+                x++;
+        }
+}
+
+display("Su ", x ," account presenti nel database controllato sono\n");
+display("stati trovati ", n ," account vulnerabili.\n");
+display("=======================================================\n");
+display("Accounts violati:\n");
+display("username-password-tempo-risultato\n");
+display(goal , "\n");
+exit(0);


_______________________________________________
Plugins-writers mailing list
Plugins-writers@private
http://mail.nessus.org/mailman/listinfo/plugins-writers



This archive was generated by hypermail 2.1.3 : Mon Feb 06 2006 - 07:18:22 PST