Advertisement
Guest User

Untitled

a guest
May 21st, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1. <?php
  2. $accounts = "accounts.txt";
  3.  
  4. $file = fopen($accounts, "r");
  5.  
  6. $i=0;
  7. while(!feof($file)) {
  8.     $line = fgets($file);
  9.     $username = strtok($line, ":");
  10.     $md5 = trim(strtok(":"));
  11.     $email = strtok(":\r\n");
  12.    
  13.     if(empty($username) || empty($md5)) continue;
  14.    
  15.     echo "$md5<br />";
  16.     $i++;
  17.     if($i == 20) break;
  18.     continue;
  19.     $password = findMD5($md5);
  20.     if($password == "invalid") continue; // if md5 hash has not been found : next!
  21.    
  22.     $pass = fopen("pass.txt", "w");
  23.     fwrite($pass, $username.":".$password.":".$email."\n");
  24.     fclose($pass);
  25. }
  26.  
  27. fclose($file);
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement