Guest User

Untitled

a guest
Jun 26th, 2012
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. <?php
  2.  
  3. $en = "249ba36000029bbe9749";
  4.  
  5. $t = file("corncob_lowercase.txt"); // third dictionary attack attempt, after Cain's wordlist and another English language dictionary
  6.  
  7. foreach($t as $f)
  8. {
  9.     /*$f = preg_replace("/\/[a-z]+/i","",$f); // originally needed this because my first wordlist had letters at the end preceeded by a / */
  10.     $f = str_replace(array("\n","\r"),"",$f);
  11.     $q = str_split(sha1($f),strlen(sha1($f))/2);
  12.     if( $q[0] == $en )
  13.     {
  14.         echo "Match: " . $f . " | " . sha1($f) . "\n";
  15.         break;
  16.     } else {
  17.         continue
  18.     }
  19.    
  20. }
Advertisement
Add Comment
Please, Sign In to add comment