Advertisement
0xCor3

Garena Email Checker

Jun 18th, 2018
2,072
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.15 KB | None | 0 0
  1. <?php
  2. /* GARENA EMAIL CHECKER BY 0xCOR3 | Security Ghost
  3. /* Thanks To Con7ext */
  4. /* USAGE : php file.php list.txt */
  5. error_reporting(0);
  6. $m="\033[1;31m";
  7. $k="\033[1;33m";
  8. $h="\033[1;32m";
  9. $b="\033[1;34m";
  10. if($argv[1]){
  11.     function cek($url){
  12.         $ch = curl_init();
  13.         curl_setopt($ch, CURLOPT_URL, $url);
  14.         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  15.         curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  16.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  17.         curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)");
  18.         $ex = curl_exec($ch);
  19.         curl_close($ch);
  20.         return($ex);
  21.     }
  22.     $list = explode("\r\n", file_get_contents($argv[1]));
  23.     echo $b."====================================\n";
  24.     $i = 1;
  25.     foreach ($list as $mail) {
  26.         $cek = cek("https://sso.garena.com/api/register/check?email=".$mail."&format=json&id=1529057399075");
  27.         if(preg_match("/error_email_existed/i", $cek)){
  28.             echo $b.$i++.") ".$k.$mail.$h." -> Registered\n";
  29.         }else{
  30.             echo $b.$i++.") ".$m.$mail." -> Not Registered\n";
  31.         }
  32.     }
  33.     echo $b."====================================\n";
  34. }else{
  35.     echo "Usage : php ".$argv[0]." list.txt";
  36. }
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement