RHDyarAP

Untitled

Feb 17th, 2019
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. <?php
  2.  
  3. /* USAGE : php file.php listmail.txt */
  4. error_reporting(0);
  5. $m="\033[1;31m";
  6. $k="\033[1;33m";
  7. $h="\033[1;32m";
  8. $b="\033[1;34m";
  9. $list = explode("\n", file_get_contents($argv[1]));
  10. $i=0;
  11. foreach ($list as $mail) {
  12. $ch = curl_init();
  13.  
  14. curl_setopt($ch, CURLOPT_URL, 'http://157.230.147.224/appleid/'.$mail);
  15. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  16. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
  17.  
  18. curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
  19.  
  20. $headers = array();
  21. $headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:65.0) Gecko/20100101 Firefox/65.0';
  22. $headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8';
  23. $headers[] = 'Accept-Language: en-US,en;q=0.5';
  24. $headers[] = 'Connection: keep-alive';
  25. $headers[] = 'Upgrade-Insecure-Requests: 1';
  26. $headers[] = 'Cache-Control: max-age=0';
  27. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  28.  
  29. $cek = curl_exec($ch);
  30. preg_match_all('|"country" : "(.*?)"|', $cek, $country);
  31. $country = $country[1][0];
  32. if(preg_match_all('|"error" : 0,|', $cek)){
  33. echo $b.$i++.") ".$k.$mail.$h." -> Live [ $country ]\n";
  34. }else{
  35. echo $b.$i++.") ".$m.$mail." -> Modar\n";
  36. }
  37.  
  38. }
  39. ?>
Advertisement
Add Comment
Please, Sign In to add comment