Advertisement
Nyvin

day5

Dec 6th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <head>
  2.   <script src="md5.js"></script>
  3.   <script>
  4. function isCorrect(tab, size)
  5. {
  6.   for(var i = 0; i < size; i++)
  7.   {
  8.     if(tab[i]!=0)
  9.     {
  10.       return true;
  11.     }
  12.   }
  13.   return false;
  14. }
  15.     var pass = "";
  16.     var i = 0;
  17.     //var code = "abc";
  18.     var code = "uqwqemis";
  19.     var hash = "";
  20.     while(pass.length<8)
  21.     {
  22.         do
  23.         {
  24.           hash = md5(code + i.toString());
  25.           i++;
  26.         } while (isCorrect(hash, 5));
  27.       pass+=hash[5];
  28.       console.log(pass);
  29.       i++;
  30.     }
  31.  
  32.     console.log(pass);
  33.  
  34.   </script>
  35. </head>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement