Merci, allez, je suis gentil, je vous mets le script que j'ai inventé.
Si vous trouvez un moyen de l'améliorer pour qu'il trouve un mot de passe plus vite, dites-le !
<HTML>
<HEAD>
<BODY>
<SCRIPT>
function ScanCookie(variable)
{
cook = document.cookie;
variable += "=";
place = cook.indexOf(variable,0);
if (place <= -1)
return("0" );
else
{
end = cook.indexOf(";",place)
if (end <= -1)
return(unescape(cook.substring(place+variable.leng
th,cook.length)));
else
return(unescape(cook.substring(place+variable.leng
th,end)));
}
}
function CreationCookie(nom,valeur)
{
dateExp = new Date(2020,11,11);
dateExp = dateExp.toGMTString();
document.cookie = nom +'=' + escape(valeur) +'; expires=' + dateExp +';';
}
Passages = ScanCookie("NbPassages" );
Passages++;
CreationCookie("NbPassages",Passages)
c1 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9" );
c0 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z" );
pass = c1[Math.floor(Math.random()*c1.length)] + c1[Math.floor(Math.random()*c1.length)] + c1[Math.floor(Math.random()*c1.length)] + c1[Math.floor(Math.random()*c1.length)];
document.write("Nombre de combinaisons possibles : <B><FONT COLOR=RED>218 340</FONT> 105 584 896</B>" );
document.write("<BR><BR>Mot de passe trouvé après <B><FONT COLOR=RED>[</FONT><FONT COLOR=TEAL> "+ScanCookie("NbPassages" )+" </FONT><FONT COLOR=RED>] combinaisons essayées !" );
function trouve() {
password ="9999";
formu = document.formulaire.reponse.value;
formu = pass;
if (formu == password) { alert("Vous l'avez trouvé !" ); document.formulaire.reponse.value = pass; }
else { window.location.reload(); }
}
function erreur() {
window.location.reload();
}
window.onerror = erreur;
setTimeout('trouve()',1);
</SCRIPT>
<FORM NAME=formulaire>
<INPUT TYPE=TEXT VALUE="" NAME=reponse>
</FORM>
</BODY>
</HEAD>