Advertisement
hasib_mo

Decode hash

Mar 4th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2. $encode=acf7f8a49ca83e32712be85a656862fb;
  3. $max=123;
  4. $min=58;
  5. $str=chr(x[0]).chr(x[1]).chr(x[2]).chr(x[3]).chr(x[4]);
  6. for(;x[0]<$max;$x[4]++)
  7.  
  8.   {
  9. if($encode==md5($str))
  10.      {
  11.    echo $str;
  12.    break;
  13.     }
  14.    }
  15. for($i=0;$i<5;$i++)
  16.   {
  17. if($x[$i]==$max)
  18.    {
  19. $x[$i-1]++;
  20. $x[$i]=$min;
  21. $x[$i+1]=$min;
  22. $x[$i+2]=$min;
  23. $x[$i+3]=$min;
  24. $x[$i+4]=$min;
  25.   }
  26. }
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement