Advertisement
Guest User

Untitled

a guest
May 21st, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.68 KB | None | 0 0
  1. <?php
  2.  
  3. /* Created By : Gidhan Bagus Algary */
  4.  
  5. $headers = array();
  6. $headers[] = 'Content-Type: application/json';
  7. $headers[] = 'device-type: Android';
  8. $headers[] = 'device-hardware: ASUS_'.random(5,4);
  9. $headers[] = 'device-version: 25';
  10. $headers[] = 'version: 3.1.9';
  11. $headers[] = 'Connection: Keep-Alive';
  12. $headers[] = 'User-Agent: okhttp/3.8.0';
  13.  
  14. // INFO
  15. $reff = "WJ9OUZ";
  16. $pass = "Meki2133";
  17. $nam = nama();
  18. $nama = explode(" ", $nam);
  19.  
  20. // MENU
  21. echo "\n======================\n";
  22. echo "QRIKET Account Creator\n";
  23. echo " By : Gidhan B.A\n";
  24. echo "======================\n";
  25. echo "Email: ";
  26. $email = trim(fgets(STDIN));
  27. $cek = curl('https://goldcloudbluesky.com/app/email-available', '{"email":"'.$email.'"}', $headers);
  28. $data = json_decode($cek[0]);
  29. if ($data->available == 1) {
  30. echo "Phone Number: ";
  31. $number = trim(fgets(STDIN));
  32. $numbers = $number[0].$number[1];
  33. if ($numbers == "08") { $number = str_replace("08","628",$number); }
  34. $send = curl('https://goldcloudbluesky.com/app/sms/verify', '{"phoneNumber":"+'.$number.'"}', $headers);
  35. $sendx = curl('https://goldcloudbluesky.com/auth/refresh', '{"refreshToken":"0"}', $headers);
  36. echo "Enter OTP: ";
  37. $otp = trim(fgets(STDIN));
  38. $headers[] = 'Accept: application/json';
  39. $headers[] = 'Authorization: Bearer 0';
  40. $sends = curlx('https://goldcloudbluesky.com/app/sms/verify', '{"code":"'.$otp.'","phoneNumber":"+'.$number.'"}', $headers);
  41. echo "Please wait for the registration ...\n";
  42. $regis = curl('https://goldcloudbluesky.com/app/register', '{"email":"'.$email.'","firstName":"'.$nama[0].'","lastName":"'.$nama[1].'","password":"'.$pass.'","phoneNumber":"+'.$number.'","referralCode":"'.$reff.'","utcOffset":420}', $headers);
  43. $regist = json_decode($regis[0]);
  44. if (!empty($regist->account)) {
  45. echo "Success - Name: ".$nam." | Email: ".$email." | Pass: ".$pass."\n";
  46. }
  47. } else {
  48. die("Email has already been taken");
  49. }
  50.  
  51. function nama()
  52. {
  53. $ch = curl_init();
  54. curl_setopt($ch, CURLOPT_URL, "http://ninjaname.horseridersupply.com/indonesian_name.php");
  55. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  56. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  57. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  58. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  59. $ex = curl_exec($ch);
  60. // $rand = json_decode($rnd_get, true);
  61. preg_match_all('~(&bull; (.*?)<br/>&bull; )~', $ex, $name);
  62. return $name[2][mt_rand(0, 14) ];
  63. }
  64.  
  65. function random($length,$a)
  66. {
  67. $str = "";
  68. if ($a == 0) {
  69. $characters = array_merge(range('0','9'));
  70. }elseif ($a == 1) {
  71. $characters = array_merge(range('a','z'));
  72. }elseif ($a == 2) {
  73. $characters = array_merge(range('A','Z'));
  74. }elseif ($a == 3) {
  75. $characters = array_merge(range('0','9'),range('a','z'));
  76. }elseif ($a == 4) {
  77. $characters = array_merge(range('0','9'),range('A','Z'));
  78. }elseif ($a == 5) {
  79. $characters = array_merge(range('a','z'),range('A','Z'));
  80. }elseif ($a == 6) {
  81. $characters = array_merge(range('0','9'),range('a','z'),range('A','Z'));
  82. }
  83. $max = count($characters) - 1;
  84. for ($i = 0; $i < $length; $i++) {
  85. $rand = mt_rand(0, $max);
  86. $str .= $characters[$rand];
  87. }
  88. return $str;
  89. }
  90.  
  91. function curl($url, $fields = null, $headers = null)
  92. {
  93. $ch = curl_init();
  94. curl_setopt($ch, CURLOPT_URL, $url);
  95. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  96. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  97. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  98. if ($fields !== null) {
  99. curl_setopt($ch, CURLOPT_POST, 1);
  100. curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
  101. }
  102. if ($headers !== null) {
  103. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  104. }
  105. $result = curl_exec($ch);
  106. $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  107. curl_close($ch);
  108.  
  109. return array(
  110. $result,
  111. $httpcode
  112. );
  113. }
  114.  
  115. function curlx($url, $fields = null, $headers = null)
  116. {
  117. $ch = curl_init();
  118. curl_setopt($ch, CURLOPT_URL, $url);
  119. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  120. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  121. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  122. if ($fields !== null) {
  123. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
  124. curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
  125. }
  126. if ($headers !== null) {
  127. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  128. }
  129. $result = curl_exec($ch);
  130. $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  131. curl_close($ch);
  132.  
  133. return array(
  134. $result,
  135. $httpcode
  136. );
  137. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement