import osAlpha = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"i = 0with open('repertoire.txt', 'a') as mon_fichier: # ^^ for a in range(0,62): for b in range(0,62): for c in range(0,62): for d in range(0,62): Brute = Alpha[a] + Alpha[b] + Alpha[c] + Alpha[d] mon_fichier.write("["+Brute+"]") i += 1 if i % 8 == 0: mon_fichier.write("\n") if i % 200000 == 0: print("Donnée numéro "+str(i)+" rentrée")mon_fichier.close()print("Operation terminee")print(str(i)+" données entrées")
<head> <title>Javascript Brute Force</title><style>body { background-color: black; color: lime; font-family: sans-serif; font-size: 14px; font-weight: bold;}</style><script type="text/javascript">var centi=0var secon=0var minu=0var z = 0function chrono(){centi++;if (centi>9){centi=0;secon++}if (secon>59){secon=0;minu++}document.forsec.secc.value=" "+centidocument.forsec.seca.value=" "+secondocument.forsec.secb.value=" "+minucompte=setTimeout('chrono()',100)}function rasee(){clearTimeout(compte)centi=0;secon=0;minu=0;document.forsec.secc.value=" "+centidocument.forsec.seca.value=" "+secondocument.forsec.secb.value=" "+minu}var MIN_CHAR = 97;var MAX_CHAR = 122;var DELAY_INTERVAL = 0;var STOP_KEY = 27;var START_KEY = 13;function cnext(expr){ var len = expr.length - 1; if (expr.charCodeAt(len) >= MAX_CHAR && len != 0) { tmp = cnext(expr.substr(0,len)) + String.fromCharCode(MIN_CHAR); return tmp; } if (expr.charCodeAt(len) >= MAX_CHAR && len == 0) { tmp = String.fromCharCode(MIN_CHAR) + expr.substr(0,len) + String.fromCharCode(MIN_CHAR); return tmp; } tmp = expr.substr(0,len) + String.fromCharCode(expr.charCodeAt(len) + 1); return tmp;}var test = String.fromCharCode(MIN_CHAR);var password = document.getElementById("mdp").value;var stopped = false;function goo(){ if( z == 0) { chrono(); z++;} var c = document.getElementById('c'); test = cnext(test); c.innerHTML = test; if (test == document.getElementById("mdp").value || stopped) { clearTimeout(compte) return; } setTimeout("goo()", DELAY_INTERVAL);}function checkStop(ev){ if (ev.keyCode == STOP_KEY) stopped = true; if (ev.keyCode == START_KEY) { stopped = false; setTimeout('goo()', 0); }}</script><script>var centi=0var secon=0var minu=0function chrono(){centi++;if (centi>9){centi=0;secon++}if (secon>59){secon=0;minu++}document.forsec.secc.value=" "+centidocument.forsec.seca.value=" "+secondocument.forsec.secb.value=" "+minucompte=setTimeout('chrono()',100)}function rasee(){clearTimeout(compte)centi=0;secon=0;minu=0;document.forsec.secc.value=" "+centidocument.forsec.seca.value=" "+secondocument.forsec.secb.value=" "+minu}</script></head><body onload="setTimeout('goo()', 0);" onkeypress='checkStop(event)' > <br /><br /><br /> <input type="password" name="ep1" size="20" value="zzz" id="mdp" /> <div id="c"></div> <br /> <form name="forsec"><input type="text" size="3" name="secb"> minute(s)<input type="text" size="3" name="seca"> secondes<input type="text" size="3" name="secc"> dixièmes</form></body>