Advertisement
Guest User

Untitled

a guest
Oct 5th, 2015
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.16 KB | None | 0 0
  1. <?php
  2.         $a = array_slice(file('wordlist.txt',FILE_IGNORE_NEW_LINES),17212*$argv[1],17213);
  3.         $b = $a;
  4.  
  5.         $time_start = time();
  6.         $count = 0;
  7.         $found = false;
  8.         foreach ($a as $Akey => $Atext)
  9.         {
  10.                 foreach ($b as $Bkey => $Btext)
  11.                 {
  12.                         $md5 = md5($Atext.$Btext);
  13.                         if($md5 == '081b4dda73669d3f75575032b2514ddf')
  14.                         {
  15.                                 $found = true;
  16.                         //      file_put_contents("test.txt",$Atext." ".$Btext." ".$md5."\n",FILE_APPEND);
  17.                                 break 2;
  18.                         }
  19.                         //file_put_contents("test.txt",trim($Atext).' '.trim($Btext).' '.$md5."\n",FILE_APPEND);
  20.  
  21.                         $count++;
  22.                 }
  23.                 echo "\033[A ".number_format($count)." combinations checked\n";
  24.         }
  25.  
  26.         $time_end = time();
  27.         $time = $time_end - $time_start;
  28.         echo "Took $time seconds\n";
  29.         if ($found)
  30.                 echo $Atext.' '.$Btext."\n";
  31.         else
  32.                 echo "not found \n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement