Advertisement
gilang05

setsetset

Dec 30th, 2020
2,624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.26 KB | None | 0 0
  1. <?php
  2.  
  3. $__uid = 'ab2d-e'.mt_rand(10, 99).'1-i'.mt_rand(10, 99).'k-a' . mt_rand(100, 999);
  4. $__imei = '86622805';
  5. $__length = 7;
  6.  
  7. function http_request($url) {
  8.     $ch = curl_init();
  9.     curl_setopt($ch, CURLOPT_URL, $url);
  10.     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');
  11.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  12.     $output = curl_exec($ch);
  13.     curl_close($ch);
  14.     return $output;
  15. }
  16.  
  17. function randNumber($length) {
  18.     $result = '';
  19.     for($i = 0; $i < $length; $i++) {
  20.         $result .= mt_rand(0, 9);
  21.     }
  22.     return $result;
  23. }
  24.  
  25. $__stopped=false;$ii=0;
  26.  
  27. echo 'Mi 10T x Netflix'. PHP_EOL;
  28. echo 'Support: MY TH PH'. PHP_EOL;
  29. echo '-----------------'. PHP_EOL;
  30. sleep(1);
  31. echo 'Input UID (optional): ';
  32. $input = fopen("php://stdin","r");
  33. $answer = trim(fgets($input));
  34. if($answer!=='') {
  35.     $__uid=$answer;
  36. }
  37. sleep(1);
  38. echo 'Input awalan IMEI ('.$__imei.'): ';
  39. $input = fopen("php://stdin","r");
  40. $answer = trim(fgets($input));
  41. if($answer!=='') {
  42.     $__imei=$answer;
  43. }
  44. sleep(1);
  45. echo 'Input panjang random IMEI ('.$__length.'): ';
  46. $input = fopen("php://stdin","r");
  47. $answer = trim(fgets($input));
  48. if($answer!=='') {
  49.     $__length=(int)$answer;
  50. }
  51. echo '[x] UID anda: ' . $__uid . PHP_EOL;
  52. echo '[x] Awalan IMEI: ' . $__imei . PHP_EOL;
  53. echo '[x] Panjang random IMEI: ' . $__length . PHP_EOL;
  54. sleep(1);
  55. echo 'Input captcha akan muncul 3x.' . PHP_EOL;
  56. echo 'Buka link dibawah ini, lalu input captchanya.' . PHP_EOL;
  57.  
  58. $__setting = [
  59.     ['my', '', 'Malaysia', 'https://hd.c.mi.com/my/eventapi/api/aptcha/index?type=netflix&uid='.$__uid],
  60. ];
  61.  
  62. foreach ($__setting as $sett) {
  63.     echo '[' . $sett[2] . '] Challenge the captcha' . PHP_EOL;
  64.     echo '=> ' . $sett[3] . PHP_EOL;
  65.     echo 'Input captcha : ';
  66.     $input = fopen("php://stdin","r");
  67.     $answer = trim(fgets($input));
  68.     $__setting[$ii][1] = $answer;
  69.     $ii++;
  70. }
  71. sleep(1);
  72. echo '[READY]' . PHP_EOL;
  73. sleep(1);
  74. while(1) {
  75.     $imei = $__imei . randNumber($__length);
  76.     if($__stopped) {
  77.         break;
  78.     }
  79.     $ii=0;
  80.     foreach ($__setting as $sett) {
  81.         $data = http_request('https://hd.c.mi.com/'.$sett[0].'/eventapi/api/netflix/gettoken?uid='.$__uid.'&vcode='.$sett[1].'&imei='.$imei);
  82.         $data = json_decode($data, true);
  83.         if (isset($data['msg']) && $data['msg'] == 'Success') {
  84.             $__if_valid = $data['data']['redirect_url'] . PHP_EOL;
  85.             file_put_contents("malay.txt", $__if_valid, FILE_APPEND);
  86.             echo 'VALID => ' . $__if_valid;
  87.         } else if(isset($data['code']) && $data['code'] == '800706') {
  88.             echo '[' . $sett[2] . '] Challenge the captcha again' . PHP_EOL;
  89.             echo '=> ' . $sett[3] . PHP_EOL;
  90.             echo 'Input captcha : ';
  91.             $input = fopen("php://stdin","r");
  92.             $answer = trim(fgets($input));
  93.             $__setting[$ii][1] = $answer;
  94.             echo 'New captcha saved.' . PHP_EOL;
  95.         } else if(isset($data['code']) && $data['code'] == '800707') {
  96.             echo 'INVALID => ' . $imei . '|' . $sett[2] . PHP_EOL;
  97.         } else {
  98.             echo 'An unexpected error has occured.' . PHP_EOL;
  99.         }
  100.         $ii++;
  101.     }
  102. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement