Advertisement
phamthanhnhan14

cf

Oct 30th, 2018
10,104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 27.81 KB | None | 0 0
  1. <?php
  2. set_time_limit(0);
  3. xflush();
  4. //$mail = 'gkghj2212@gmail.com';
  5. //$pass = 'KbXk12@12322@';
  6. //$mail = 'annakio189@gmail.com';
  7.  
  8.  
  9. //$mail = $_GET['email'];
  10. $pass = generate_password();
  11. //$first_n, $last_n, $mail = randommail();
  12. $getx = randommail();
  13. $first_n = $getx['f'];
  14. $last_n  = $getx['l'];
  15. $mail    = $getx['m'];
  16.  
  17.  
  18.  
  19. $cookie = tempnam('./','TMP0');
  20. //$cookie = fopen($cookiex,'a+');
  21. //var_dump($cookie);exit;
  22. $agent = getUserAgent();
  23. //$cookie = "cookies.txt";
  24.  
  25. // Cross check Socks
  26. $url = "http://blog.tantro.info/info.php?showip=1";
  27. $post = "";
  28. $iptantro = curl($url, $post, false, false);
  29. if ($_GET['debug'] == 1 ){
  30.     echo "Your IP(fake :v) : " . $iptantro . "<br>";
  31. }
  32.  
  33. $url = "http://blog.tantro.info/info.php";
  34. $post = "";
  35. $res = curl($url, $post, false, false);
  36. if (!$res) {
  37.     echo "Socks fail or timeout;";exit;
  38. }elseif ($res != "ok") {
  39.     echo "Cannot get site;";exit;
  40.  
  41. }
  42.  
  43.  
  44. // Check socks
  45. if ($_GET['test'] == 1 ) {
  46.  
  47.  
  48.     // Get CPF
  49.     $bank  = getbank();
  50.     $bankexp = explode("-", $bank[0]);
  51.     $bank_1 = $bankexp[0];
  52.     $bank_2 = $bankexp[1];
  53.     echo "tmp file: " .  $cookie . "<br>";
  54.     echo "CPF: " . getcpf() . "<br>";
  55.     echo "Bank 1 : " . $bank[0] . "<br>";
  56.     echo "Bank 1.1 : " . $bank_1 . "<br>";
  57.     echo "Bank 1.2 : " . $bank_2 . "<br>";
  58.     echo "Bank 2 : " . $bank[1] . "<br>";
  59.  
  60.     exit;
  61.  
  62. }
  63.     $bank  = getbank();
  64.     $cpf = getcpf() ;
  65.     $bankexp = explode("-", $bank[0]);
  66.     $bank_1 = $bankexp[0];
  67.     $bank_2 = $bankexp[1];
  68.  
  69.  
  70. //cpf:055.871.670-97
  71. // end
  72. ///////////////////////////////////////////////////////// GET COOOKIE /////////////////////////////////////////////////////////////////////////////////
  73. $url = "https://www.netflix.com/signup/planform";
  74. $post = "";
  75. $res = curl($url, $post, false, $cookie);
  76. $auth = getString($res, '"authURL":"', '"');
  77. $auth = str_replace(['\x2F','\x3D'],['.','='],$auth);
  78. $esn = getString($res, '"esn":"', '"');
  79. if ($_GET['debug'] == 1 ){
  80.  
  81.     echo "CPF: " . $cpf . "<br>";
  82.     echo "Bank 1 : " . $bank[0] . "<br>";
  83.     echo "Bank 1.1 : " . $bank_1 . "<br>";
  84.     echo "Bank 1.2 : " . $bank_2 . "<br>";
  85.     echo "Bank 2 : " . $bank[1] . "<br>";
  86.     echo "auth:     ". $auth."\n";
  87.     echo "esn:  " . $esn."\n";
  88. }
  89. if ($_GET['debug'] == 1 ){
  90.     echo $res;
  91. }
  92. if (empty($auth) || empty($esn) ) {
  93.     echo "auth OR esn is empty";exit;
  94.  
  95. }
  96.  
  97. ///////////////////////////////////////////////////////// GET PLAN /////////////////////////////////////////////////////////////////////////////////
  98. $url = "https://www.netflix.com/api/shakti/va91c86c0/flowendpoint?mode=planSelection&flow=signupSimplicity&landingURL=%2Fsignup%2Fplanform&inapp=false&esn=$esn&languages=en-BR&netflixClientPlatform=browser";
  99. $post = '{"action":"planSelectionAction","authURL":"'.$auth.'","fields":{"planChoice":{"value":"114001031"},"previousMode":""}}';
  100. $header = [];
  101. $header[] = "Host: www.netflix.com";
  102. $header[] = "Accept: application/json, text/javascript, */*; q=0.01";
  103. //$header[] = "Accept-Encoding: gzip, deflate, br";
  104. $header[] = "Accept-Language: en-BR,en;q=0.9,vi;q=0.8";
  105. $header[] = "Cache-Control: no-cache";
  106. $header[] = "Connection: keep-alive";
  107. $header[] = "Content-Type: application/json";
  108. $header[] = "Origin: https://www.netflix.com";
  109. $header[] = "Pragma: no-cache";
  110. $header[] = "Referer: https://www.netflix.com/signup/planform";
  111. $header[] = "User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36";
  112. $header[] = "X-Requested-With: XMLHttpRequest";
  113. $header[] = "Content-Length: ".strlen($post);
  114. $res = curl($url, $post, $header, $cookie);
  115. //echo "cookie file: " .  $cookie;exit;
  116. if (empty($res)) {
  117.     var_dump($res);
  118.     echo "<br> ----------------> Cannot get data from Phase 02, exit now <br>";exit;
  119.  
  120. }
  121.  
  122. //cho "res: " .  $res . "<br>";
  123. $arr = json_decode($res, true);
  124. //echo "errorCode: " . $arr['errorCode'];
  125.  
  126. if ($arr['errorCode'] == "badAuthToken") {
  127.     echo "badAuthToken from Phase 02 <br>";
  128.     exit;
  129.  
  130. }
  131.  
  132.  
  133. /////////////////////////////////////////////////////////registration /////////////////////////////////////////////////////////////////////////////////
  134. $url = "https://www.netflix.com/api/shakti/va91c86c0/flowendpoint?mode=registration&flow=signupSimplicity&landingURL=%2Fsignup%2Fregform&inapp=false&esn=$esn&languages=en-BR&netflixClientPlatform=browser";
  135. $post = '{"action":"registerOnlyAction","authURL":"'.$auth.'","fields":{"email":{"value":"'.$mail.'"},"password":{"value":"'.$pass.'"},"emailPreference":{"value":true},"previousMode":"registrationWithContext"}}';
  136. $header = [];
  137. $header[] = "Host: www.netflix.com";
  138. $header[] = "Accept: application/json, text/javascript, */*; q=0.01";
  139. //$header[] = "Accept-Encoding: gzip, deflate, br";
  140. $header[] = "Accept-Language: en-BR,en;q=0.9,vi;q=0.8";
  141. $header[] = "Cache-Control: no-cache";
  142. $header[] = "Connection: keep-alive";
  143. $header[] = "Content-Type: application/json";
  144. $header[] = "Origin: https://www.netflix.com";
  145. $header[] = "Pragma: no-cache";
  146. $header[] = "Referer: https://www.netflix.com/signup/planform";
  147. $header[] = "User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36";
  148. $header[] = "X-Requested-With: XMLHttpRequest";
  149. $header[] = "Content-Length: ".strlen($post);
  150. $res = curl($url, $post, $header, $cookie);
  151. if ($_GET['debug'] == 1 ){
  152.     echo "<br>-------------------------Phase request 02 <br>";
  153.     //echo $res;
  154.  
  155.     echo "----------------------------------------------------------------------- <br>";
  156. }
  157. //$url = "https://www.netflix.com/signup/editpayment";
  158. //$res = curl($url, null, null, $cookie);
  159.  
  160. //echo $res;exit;
  161.  
  162.  
  163. $url = "https://www.netflix.com/api/shakti/va91c86c0/flowendpoint?mode=editdirectDebitOptionMode&flow=signupSimplicity&landingURL=%2Fsignup%2Feditdirectdebit&inapp=false&esn=$esn&languages=en-BR&netflixClientPlatform=browser";
  164. //$post = '{"action":"nextAction","authURL":"'.$auth.'","fields":{"firstName":{"value":"Amanda"},"lastName":{"value":"Su"},"paymentChoice":{"value":"directDebitOption"},"bankChoice":{"value":"SANTANDER_BRAZIL"},"customerIdentification":{"value":"683.215.540-91"},"branchCode":{"value":"3303"},"accountNumber":{"value":"45894935"},"accountNumberCheckDigits":{"value":"2"},"previousMode":"editPayment"}}';
  165.  
  166.  
  167. // Ngon 08/09/2018
  168. $post = '{"action":"nextAction","authURL":"'.$auth.'","fields":{"firstName":{"value":"'.$last_n.'"},"lastName":{"value":"' .$first_n.'"},"paymentChoice":{"value":"directDebitOption"},"bankChoice":{"value":"SANTANDER_BRAZIL"},"customerIdentification":{"value":"'.$cpf.'"},"branchCode":{"value":"3285"},"accountNumber":{"value":"02129491"},"accountNumberCheckDigits":{"value":"8"},"previousMode":"editPayment"}}';
  169. //$post = '{"action":"nextAction","authURL":"'.$auth.'","fields":{"firstName":{"value":"Edison"},"lastName":{"value":"An"},"paymentChoice":{"value":"directDebitOption"},"bankChoice":{"value":"SANTANDER_BRAZIL"},"customerIdentification":{"value":"' . $cpf . '"},"branchCode":{"value":"0535"},"accountNumber":{"value":"27679467"},"accountNumberCheckDigits":{"value":"9"},"previousMode":"editPayment"}}';
  170.  
  171.  
  172.  
  173.  
  174. //$post2 = '{"action":"nextAction","authURL":"'.$auth.'","fields":{"firstName":{"value":"Amanda"},"lastName":{"value":"Su"},"paymentChoice":{"value":"directDebitOption"},"bankChoice":{"value":"SANTANDER_BRAZIL"},"customerIdentification":{"value":"' .$cpf. '"},"branchCode":{"value":"'.$bank[1].'"},"accountNumber":{"value":"' .$bank_1. '"},"accountNumberCheckDigits":{"value":"' .$bank_2.'"},"previousMode":"editPayment"}}';
  175. //var_dump($post) . "<br>";
  176. //var_dump($post2) . "<br>";exit;
  177. $header = [];
  178. $header[] = "Host: www.netflix.com";
  179. $header[] = "Accept: application/json, text/javascript, */*; q=0.01";
  180. //$header[] = "Accept-Encoding: gzip, deflate, br";
  181. $header[] = "Accept-Language: en-BR,en;q=0.9,vi;q=0.8";
  182. $header[] = "Cache-Control: no-cache";
  183. $header[] = "Connection: keep-alive";
  184. $header[] = "Content-Type: application/json";
  185. $header[] = "Origin: https://www.netflix.com";
  186. $header[] = "Pragma: no-cache";
  187. $header[] = "Referer: https://www.netflix.com/signup/planform";
  188. $header[] = "User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36";
  189. $header[] = "X-Requested-With: XMLHttpRequest";
  190. $header[] = "Content-Length: ".strlen($post);
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197. $res = curl($url, $post, $header, $cookie);
  198.  
  199. if ($_GET['debug'] == 1 ){
  200.     var_dump($res);
  201. }
  202. $resj = json_decode($res, true);
  203. if ($_GET['debug'] == 1 ){
  204.     echo "Code name : " . $resj['errorCode'] . "<br>";
  205.  
  206.     echo "------------------------------------------------------------<br>";
  207.  
  208.  
  209.     var_dump($resj);
  210.  
  211.     echo "Code name : " . $codeName . "<br>";
  212.  
  213.  
  214.     echo "-------------------------Phase request 03 <br>";
  215.     echo $res . "<br>";
  216.     echo "----------------------------------------------------------------------- <br>";
  217.     //var_dump($res);
  218.     //echo "------------------------registration oke 111"."<br>";
  219.  
  220.  
  221.  
  222. }
  223. $url = "https://www.netflix.com/api/shakti/va91c86c0/flowendpoint?mode=confirm&flow=signupSimplicity&landingURL=%2Fsignup%2Fconfirmform&inapp=false&esn=$esn&languages=en-BR&netflixClientPlatform=browser";
  224. $post = '{"action":"startMembershipAction","authURL":"'.$auth.'","fields":{"planChoice":{"value":"114001031"},"hasAcceptedTermsOfUse":{"value":true},"previousMode":"editdirectDebitOptionMode"}}';
  225. $header = [];
  226. $header[] = "Host: www.netflix.com";
  227. $header[] = "Accept: application/json, text/javascript, */*; q=0.01";
  228. //$header[] = "Accept-Encoding: gzip, deflate, br";
  229. $header[] = "Accept-Language: en-BR,en;q=0.9,vi;q=0.8";
  230. $header[] = "Cache-Control: no-cache";
  231. $header[] = "Connection: keep-alive";
  232. $header[] = "Content-Type: application/json";
  233. $header[] = "Origin: https://www.netflix.com";
  234. $header[] = "Pragma: no-cache";
  235. $header[] = "Referer: https://www.netflix.com/signup/planform";
  236. $header[] = "User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36";
  237. $header[] = "X-Requested-With: XMLHttpRequest";
  238. $header[] = "Content-Length: ".strlen($post);
  239. $res = curl($url, $post, $header, $cookie);
  240.  
  241. $res = curl($url, $post, $header, $cookie);
  242. if ($_GET['debug'] == 1 ){
  243.     echo "-------------------------Phase request 04 <br>";
  244. ////var_dump($res);
  245. //echo "------------------------registration oke 111"."<br>";
  246. }
  247.  
  248. /// TEST FOR SUCCESS
  249. $url = "https://www.netflix.com/signup/editpayment";
  250. $res = curl($url, null, null, $cookie);
  251.  
  252. $success_msg = 'Manage Profiles';
  253.  
  254. if (strpos($res,$success_msg) !== false) {
  255.     echo "SUCCESS : " . $mail . "|" . $pass . "|" . $iptantro;
  256. }else {
  257.     echo "FAIL : " . $mail . "|" . $pass  . "|" . $cpf . "|" . $iptantro;
  258.     if ($_GET['debug'] == 1 ){
  259.         echo $res . "<br>";
  260.     }
  261.  
  262.  
  263. }
  264. //file_put_contents('1', '');
  265. //$fh = fopen( '1', 'w' );
  266. //fclose($fh);
  267.  
  268. exit;
  269.  
  270. function curl($url, $post=false, $header=false, $cookie=false, $auth=false)
  271. {
  272.     //global $agent;
  273.     global $agent;
  274.     //$agent = "User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36";
  275.     //$agent = $getUserAgent;
  276.     $curl = ($url);
  277.     $ch = curl_init();
  278.     curl_setopt($ch, CURLOPT_URL, $url);  
  279.     curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  280.     if($post){
  281.         curl_setopt($ch, CURLOPT_POST,1);
  282.         curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
  283.     }
  284.     if(is_array($header)) {
  285.         curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
  286.         curl_setopt($ch, CURLOPT_HEADER, 0);
  287.     }
  288.     //curl_setopt($ch, CURLOPT_PROXY, '187.16.130.149:4145');
  289.     //curl_setopt($ch, CURLOPT_PROXY, '177.126.159.201:6667');
  290.     curl_setopt($ch, CURLOPT_PROXY, $_GET['socks']);
  291.     curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);
  292.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  293.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  294.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  295.     curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
  296.     curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  297.     curl_setopt($ch, CURLOPT_USERPWD, $auth);
  298.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 3);
  299.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  300.     // Set timeout
  301.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
  302.     curl_setopt($ch, CURLOPT_TIMEOUT, 10); //timeout in seconds
  303.     $result = curl_exec($ch);
  304.     curl_close($ch);
  305.     return $result;
  306. }
  307. function curl2($url, $post=false, $header=false, $cookie=false, $auth=false)
  308. {
  309.     //global $agent;
  310.     $agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  311.     //$agent = "User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36";
  312.     //$agent = $getUserAgent;
  313.     $curl = ($url);
  314.     $ch = curl_init();
  315.     curl_setopt($ch, CURLOPT_URL, $url);  
  316.     curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  317.     if($post){
  318.         curl_setopt($ch, CURLOPT_POST,1);
  319.         curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
  320.     }
  321.     if(is_array($header)) {
  322.         curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
  323.         curl_setopt($ch, CURLOPT_HEADER, 0);
  324.     }
  325.     //curl_setopt($ch, CURLOPT_PROXY, '187.16.130.149:4145');
  326.     //curl_setopt($ch, CURLOPT_PROXY, '200.186.70.66:4145');
  327.     //curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);
  328.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  329.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  330.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  331.     curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
  332.     curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  333.     curl_setopt($ch, CURLOPT_USERPWD, $auth);
  334.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 3);
  335.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  336.     $result = curl_exec($ch);
  337.     curl_close($ch);
  338.     return $result;
  339. }
  340.  
  341. function getString($string, $start, $end)
  342. {
  343.     $string = " ".$string;
  344.     $ini = strpos($string,$start);
  345.     if ($ini == 0) return "";
  346.     $ini += strlen($start);
  347.     $len = strpos($string,$end,$ini) - $ini;
  348.     return substr($string,$ini,$len);
  349. }
  350. function xflush()
  351. {
  352.     static $output_handler = null;
  353.     if ($output_handler === null) $output_handler = @ini_get('output_handler');
  354.     if ($output_handler == 'ob_gzhandler') return;
  355.     flush();
  356.     if (function_exists('ob_flush') AND function_exists('ob_get_length') AND ob_get_length() !== false) @ob_flush();
  357.     else if (function_exists('ob_end_flush') AND function_exists('ob_start') AND function_exists('ob_get_length') AND ob_get_length() !== FALSE)
  358.     {
  359.         @ob_end_flush();
  360.         @ob_start();
  361.     }
  362. }
  363. function getsocks($list)
  364. {
  365.     @preg_match_all("/\d{1,3}([.])\d{1,3}([.])\d{1,3}([.])\d{1,3}((:)|(\s)+)\d{1,8}/", $list, $socks);
  366.     $socks = @array_unique($socks[0]);
  367.     $socks2 = array();
  368.     For ($i=0;$i<count($socks);$i++)
  369.     {
  370.         If (strlen($socks[$i]) > 7) $socks2[] = str_replace(array("|", "/", " ", "-"),':',$socks[$i]);
  371.     }
  372.     Return $socks2;
  373. }
  374. function xwrite($content, $filename)
  375. {
  376.     $fp = @fopen($filename, 'a+');
  377.     $x = @file_get_contents($filename);
  378.     if(!strstr($x, $content)) {
  379.         //echo $content."<br />";xflush();
  380.         @fwrite($fp, $content);
  381.     }
  382.     @fclose($fp);
  383. }
  384. function getcpf() {
  385.  
  386.     // Get CPF
  387.     $url = "https://www.4devs.com.br/ferramentas_online.php";
  388.     $post = "acao=gerar_cpf&pontuacao=S&cpf_estado=";
  389.     $res = curl2($url, $post, false, false);
  390.     //var_dump($res);
  391.     return($res);
  392. }
  393. function getbank() {
  394.  
  395.     $url = "https://www.4devs.com.br/ferramentas_online.php";
  396.     $post = "acao=gerar_conta_bancaria&estado=&banco=151";
  397.     $res = curl2($url, $post, false, false);
  398.     $pattern = "/\d{8}.\d{1}|\d{4}/";
  399.     if (preg_match_all($pattern, $res, $matches_out)) {
  400.         return $matches_out[0];
  401.     }
  402. }
  403.  
  404. function getUserAgent()
  405. {
  406.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  407.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36";
  408.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0";
  409.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  410.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36";
  411.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  412.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  413.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0";
  414.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5";
  415.     $userAgentArray[] = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0";
  416.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36";
  417.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36 OPR/49.0.2725.47";
  418.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7";
  419.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36";
  420.     $userAgentArray[] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  421.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:57.0) Gecko/20100101 Firefox/57.0";
  422.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko";
  423.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  424.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  425.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36";
  426.     $userAgentArray[] = "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0";
  427.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063";
  428.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  429.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:57.0) Gecko/20100101 Firefox/57.0";
  430.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299";
  431.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36";
  432.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36";
  433.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36";
  434.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7";
  435.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5";
  436.     $userAgentArray[] = "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0";
  437.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36";
  438.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0";
  439.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36";
  440.     $userAgentArray[] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36";
  441.     $userAgentArray[] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36";
  442.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko";
  443.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0";
  444.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36 OPR/49.0.2725.64";
  445.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36";
  446.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  447.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1; rv:57.0) Gecko/20100101 Firefox/57.0";
  448.     $userAgentArray[] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36";
  449.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  450.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7";
  451.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:57.0) Gecko/20100101 Firefox/57.0";
  452.     $userAgentArray[] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/62.0.3202.94 Chrome/62.0.3202.94 Safari/537.36";
  453.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0";
  454.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  455.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0";
  456.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  457.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko";
  458.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0";
  459.     $userAgentArray[] = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0;  Trident/5.0)";
  460.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0";
  461.     $userAgentArray[] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/63.0.3239.84 Chrome/63.0.3239.84 Safari/537.36";
  462.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36";
  463.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36";
  464.     $userAgentArray[] = "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0";
  465.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0";
  466.     $userAgentArray[] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36";
  467.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36";
  468.     $userAgentArray[] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36";
  469.     $userAgentArray[] = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0;  Trident/5.0)";
  470.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8";
  471.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0";
  472.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  473.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5";
  474.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8";
  475.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0";
  476.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393";
  477.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0";
  478.     $userAgentArray[] = "Mozilla/5.0 (iPad; CPU OS 11_1_2 like Mac OS X) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0 Mobile/15B202 Safari/604.1";
  479.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko";
  480.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:58.0) Gecko/20100101 Firefox/58.0";
  481.     $userAgentArray[] = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38";
  482.     $userAgentArray[] = "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36";
  483.     $userAgentArray[] = "Mozilla/5.0 (X11; CrOS x86_64 9901.77.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.97 Safari/537.36";
  484.    
  485.     $getArrayKey = array_rand($userAgentArray);
  486.     return $userAgentArray[$getArrayKey];
  487.  
  488. }
  489. function generate_password($length = 15){
  490.   $chars =  'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.
  491.             '0123456789';
  492.  
  493.   $str = '';
  494.   $max = strlen($chars) - 1;
  495.  
  496.   for ($i=0; $i < $length; $i++)
  497.     $str .= $chars[mt_rand(0, $max)];
  498.  
  499.   return $str;
  500. }
  501. function randommail() {
  502.  
  503.     $names = array(
  504.     'Larry','Lorrie','Sterling','Gus','Reynaldo','Marietta','Waldo','Barbra','Zachery','Sheri','Hayden','Art','Hilda','Sharon','Ray','Mattie','Russ','Parker','Dollie','Dudley','Morgan','Brooks','Sabrina','Louis','Mohammad','Chrystal','Wm','Jim','Inez','Alphonse','Kendall','Yvonne','Cara','Patrice','Trinidad','Eliseo','Rita','Vern','Nathanael','Josefa','Liza','Erika','Eva','Florencio','Priscilla','Katharine','Perry','Dario','Leola','Mabel','Petra','Laverne','Celina','Elba','Josef','Darwin','Muriel','Irving','Lucien','Keenan','Janet','Jacklyn','Leandro','Lorena','Teresa','Antoinette','Vanessa','Glenna','Ramon','Jody','Dana','Jeromy','Jerald','Iva','Leonardo','Rosanna','Ruben','Clarissa','Ian','Edwin','Dante','Thelma','Werner','Dorothea','Antoine','Jessie','Jeramy','Kathrine','Theresa','Rosa','Junior','Mara','Maureen','Vilma','Brenda','Misty','Harley','Cortez','Candace','Jamel'
  505.     );
  506.      
  507.     //PHP array containing surnames.
  508.     $surnames = array(
  509.         'Maliyah','Lilyana','Braylon','Jayleen','Finley','Zaria','Mike','Kimberly','Micah','Scarlett','Elisa','Carly','Kaitlin','Cristal','Zaniyah','Allen','Rebekah','Angeline','Giana','Princess','Colt','Kenna','Soren','Lucas','Hadassah','Vivian','Aedan','Abel','Ramiro','Darian','Gemma','Phoenix','Ismael','Chase','Jaslyn','Rayan','Addisyn','Conner','Salvador','Meredith','Lilianna','Bennett','Desirae','Jaquan','Muhammad','Irene','Abbigail','Kaley','Geovanni','Gustavo','Aniya','Jamar','Kaylyn','Sonia','Aracely','Richard','Maggie','Kaylah','Maren','Melissa','Ronin','Kamron','Seth','Nick','Cordell','Mariela','Lacey','Azaria','Ulises','Grayson','Kolby','Cristian','Ainsley','Kyle','Braylen','Nolan','Deanna','Fiona','Branden','Jayce','Marin','Rafael','Melany','Edgar','Sanai','Rylee','Lawrence','Dominik','Chelsea','Rex','Mckenna','Chace','Victor','Lilliana','Franklin','Desiree','Jaylan','Karlee','Deandre','Zavier'
  510.     );
  511.  
  512.     $dot = array(
  513.         '@hotmail.com', '@gmail.com', '@live.com' , '@yahoo.com'
  514.     );
  515.  
  516.  
  517.  
  518.     $random_name = $names[mt_rand(0, sizeof($names) - 1)];
  519.     $random_surname = $surnames[mt_rand(0, sizeof($surnames) - 1)];
  520.     $dmail = $dot[mt_rand(0, sizeof($dot) - 1)];
  521.      
  522.     //Combine them together and print out the result.
  523.     $arr = array('f' => 1,'l' => 'l', 'm' => 'm') ;
  524.     $mail =   strtolower($random_name) . '' . strtolower($random_surname) . '' . rand(100, 2000) . '' . $dmail ;
  525.     $arr['f'] = $random_name;
  526.     $arr['l'] = $random_surname;
  527.     $arr['m'] = $mail;
  528.     return $arr;
  529. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement