cdw1p

[PHP] BIGtoken Gmail IMAP Scrapper & Verified

Apr 3rd, 2019
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.26 KB | None | 0 0
  1. <?php
  2.  
  3. $header = "
  4.                   ___      _            
  5.     _______ _ __ / _ \  __| | __ _ _   _
  6.    |_  / _ \ '__| | | |/ _` |/ _` | | | |
  7.     / /  __/ |  | |_| | (_| | (_| | |_| |
  8.    /___\___|_|   \___/ \__,_|\__,_|\__, |
  9.                                    |___/
  10.       -[ BOT BIGtoken Auto Verified ]- ". PHP_EOL;
  11.  
  12.     $email = array(
  13.             'host'      => '{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX',
  14.             'username'  => '[email protected]',
  15.             'password'  => 'password'
  16.         );
  17.  
  18.      $read  = imap_open($email['host'],$email['username'],$email['password']);
  19.      $array = imap_search($read,'SUBJECT "BIGtoken" UNSEEN');
  20.      
  21.      if($array==null){
  22.         echo $header;
  23.         echo PHP_EOL. '[+] Link Token Not Found!'. PHP_EOL;
  24.      }else{
  25.  
  26.      echo $header;
  27.      foreach($array as $a){
  28.         $header = imap_header($read, $a);
  29.         $html = imap_qprint(imap_fetchbody($read, $a, 1));
  30.        
  31.         $dom = new DOMDocument;
  32.         @$dom->loadHTML($html);
  33.         $links = $dom->getElementsByTagName('a');
  34.         $link  = $links[1]->getAttribute('href')."\n";  
  35.  
  36.         file_put_contents('link.txt', $target, FILE_APPEND | LOCK_EX);
  37.         echo PHP_EOL. '[+] Link Found => ' .$target. PHP_EOL;
  38.         echo '[+] Open Site & Verified Email...'. PHP_EOL;
  39.  
  40.         $ch = curl_init($link);
  41.         curl_setopt($ch, CURLOPT_NOBODY, 1);
  42.         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  43.         curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  44.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  45.         curl_setopt($ch, CURLOPT_HEADER, false);
  46.         curl_setopt($ch, CURLOPT_AUTOREFERER, true);
  47.         curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
  48.         curl_setopt($ch, CURLOPT_TIMEOUT, 500);
  49.         curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
  50.         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  51.         curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36");
  52.         curl_exec($ch);
  53.         $target = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
  54.  
  55.         echo '[+] Email Has Been Verified!'. PHP_EOL;
  56.         echo '******'. PHP_EOL;
  57.        
  58.         curl_close($ch);
  59.  
  60.         }
  61.     }
  62. ?>
Advertisement
Add Comment
Please, Sign In to add comment