SHARE
TWEET

us

a guest Mar 21st, 2019 275 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. error_reporting(0);
  3. //MASUKAN REF MU
  4. $referral = "YOGA4BNGV";
  5. //INDO = 62 & USA = 1
  6. $ct=1;
  7. //=============================
  8. function fetch_value($str,$find_start,$find_end) {
  9.     $start = @strpos($str,$find_start);
  10.     if ($start === false) {
  11.         return "";
  12.     }
  13.     $length = strlen($find_start);
  14.     $end    = strpos(substr($str,$start +$length),$find_end);
  15.     return trim(substr($str,$start +$length,$end));
  16. }
  17. function number($length = 15)
  18. {
  19.     $characters = '0123456789';
  20.     $charactersLength = strlen($characters);
  21.     $randomString = '';
  22.     for ($i = 0; $i < $length; $i++) {
  23.         $randomString .= $characters[rand(0, $charactersLength - 1)];
  24.     }
  25.     return $randomString;
  26. }
  27. function generateRandomString($length = 10) {
  28.     $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  29.     $charactersLength = strlen($characters);
  30.     $randomString = '';
  31.     for ($i = 0; $i < $length; $i++) {
  32.         $randomString .= $characters[rand(0, $charactersLength - 1)];
  33.     }
  34.     return $randomString;
  35. }
  36. $page_api = file_get_contents('https://randomuser.me/api/?nat=us');
  37.  
  38. $domain = array ('@gmail.com','@yahoo.com','@hotmail.com','@yahoo.co.id');
  39.         $random = rand(0,3);
  40.         $first = fetch_value($page_api, '"first":"','"');
  41.         $last = fetch_value($page_api, '"last":"','"');
  42.         $email  = $first.'.'.$last.number(2).$domain[$random];
  43.         $name = $first.' '.$last;
  44.        
  45. echo 'Enter Phone Number : ';
  46. $phone_number = trim(fgets(STDIN));
  47.  
  48. $ch = curl_init();
  49.  
  50. curl_setopt($ch, CURLOPT_URL, 'https://api.oyorooms.com/v2/users/generate_otp?phone='.$phone_number.'&nod=4&intent=login&sms_auto_retrieval=true&country_code=%2B'.$ct.'&version=20205&partner_app_version=20205&android_id='.generateRandomString(16).'&idfa=&sid=1551940465205');
  51. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  52. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
  53.  
  54. curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
  55.  
  56. $headers = array();
  57. $headers[] = 'Access_token: QmpDZlRxZWo2UkZ5M3pSeHZ5NW46bi13NHN0ZTV5V1I1aGpCUVVHOUM=';
  58. $headers[] = 'Authorization: Basic QmpDZlRxZWo2UkZ5M3pSeHZ5NW46bi13NHN0ZTV5V1I1aGpCUVVHOUM=';
  59. $headers[] = 'Oyo_ab_config: 1551940467632|dea:1|mwhp:1|t3c:0|epba:0|rst2:1|phbb:0|wcta:1|wtea:1|cdr2:0|popl:0|bann:1|sbma:1|rae:1|gmfh:1|prep:1|fbtn:1|htab:1|hbna:1|absb:1|se1:0|sbmi:1|se3:0|se2:0|se5:6|se4:1|rtsa:0|se6:1|cour:0|gsra:1|rtsi:1|hdab:1|rba:0|cdr:0|ipw:0|rd:1|ipw2:0|pppp:0|lzpi:1|npfi:1|uprc:1|rbl:1|rsa:0|dww2:0|deal:1|pnpd:1|rcua:1|rsi:0|gsti:1|dwep:2|otp4:1|urha:1|ppa:2|ona:0|svh:1|stc2:1|urhi:1|ppi:2|gsta:0|gstc:0|nlab:1|asa:1|cr:1|rts:0|nlp:1|mjo:1|onab:0|asi:1|wtei:1|asei:1|bsba:2|aca:1|bea:1|wtib:2|hbri:0|lyr:0|aci:0|scta:0|tspk:1|hste:1|tspi:0|tspj:0|DWWS:1|a2hs:1|pfri:0|brch:4|test:1|raab:0|sink:0|aswp:1|shli:0|hrr:0|hrt:1|riab:1|hbad:0|hbi:0|rcui:1|idl:0|sbpa:0|stcl:0|sbpi:0|sinc:1|shla:0|brea:1|idum:1|lpta:1|lpti:1|ffab:1|his2:0|hbci:1|pst:1|stfi:0|pce:1|stft:2|omue:0|brei:1|hsei:0|sold:1|hbca:1|home:1|scti:0|otab:1|cvis:0|gsa:1|dwhp:0|gsi:1|rasl:0|locr:0|obai:1|dbad:1|nrca:1|epa:2|nrci:1|hlis:0|epi:0|epn:2|fbb:1|trab:1|rmo2:1|niab:0|lbht:0|weng:0|shpa:0|hppl:0|hsfa:1|sls:1|shpi:0|loc:0|phli:0|gpwa:0|nsl:1|prpa:1|saet:1|nhba:1|gpwi:0|nrfa:0|nbwa:0|prpi:1|hbi2:1|saea:1|mrc:1|blh:1|cpab:1|hpsa:0|vct:0|octt:1|phb:1|hpsi:0|cadd:1|nsfa:1|oban:1|spc2:1|smla:0|sfni:0|auto:1|uiab:1|pvis:0|wtab:3|shel:1|ndlp:0|hmpi:1|his:0|rmo:1|bdpi:1|pbra:1|sos:2|logn:1|rms:1|uaab:1|papg:1|bdpa:1|pbri:1|nob2:1|swar:1|aowt:1|spc:1|pioi:0|rms2:0|trCl:1|nhbi:0|lbh:1|nrfi:0|nbwi:1|paom:0|lsc:1|pdhi:0|tsb:0|lsc2:0|diei:1|dmme:1|diea:1|dte:1|acsi:1|nuom:0|adum:0|pdha:0|uhps:0|mwen:0|nobs:1|efa:1|hpwa:0|fbb2:1|sra:2|reca:1|BnTc:0|paab:1|mwep:2|ngst:1|hpwi:1|ltsc:1|reci:1|jbei:0|piab:1|aimg:1|avgp:0|ffib:1|mww2:1|ioab:0|hpfd:1|srz:1|socp:0|plwc:1';
  60. $headers[] = 'Accept-Language: en';
  61. $headers[] = 'Content-Type: application/json';
  62. $headers[] = 'User-Agent: Dalvik/2.1.0 (Linux; U; Android 8.1.0; SM-G610F Build/M1AJQ)';
  63. $headers[] = 'Host: api.oyorooms.com';
  64. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  65.  
  66. $result = curl_exec($ch);
  67. if (curl_errno($ch)) {
  68.     echo 'Error:' . curl_error($ch);
  69. }
  70. curl_close ($ch);
  71.  
  72. $json = json_decode($result);
  73. if($json->is_user_present == 1){
  74.     echo "Nomor sudah terdaftar";
  75.     die();
  76. }
  77.  
  78. echo 'Enter OTP : ';
  79. $otp = trim(fgets(STDIN));
  80.  
  81.  
  82. $ch = curl_init();
  83.  
  84. curl_setopt($ch, CURLOPT_URL, 'https://api.oyorooms.com/v2/users/new_sign_up?additional_fields=ab_service_data&handset=samsung%2C%20SM-G610F&version=20205&partner_app_version=20205&android_id='.generateRandomString(16).'&idfa=&sid=1551940465205');
  85. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  86. curl_setopt($ch, CURLOPT_POSTFIELDS, '{
  87.     "truecaller": false,
  88.     "code": "'.$otp.'",
  89.     "country_code": "+'.$ct.'",
  90.     "device_id": "'.generateRandomString(16).'",
  91.     "device_type": "android",
  92.     "email": "'.$email.'",
  93.     "id": 0,
  94.     "idfa": "",
  95.     "name": "'.$name.'",
  96.     "phone": "'.$phone_number.'",
  97.     "push_type": "gcm",
  98.     "referral_code": "'.$referral.'",
  99.     "token": "c-PeIXwYYwg:APA91bHHQLHnS0FvSIOYJpN-hBJXYHxc1xQh8FrMZaQawBVPVyXxk77vTz7LWC4rtApBrZb3p4pOwJRD2JBMq0u3sChUgpasQFGcN_HNAGCscrcREwL-trFIBX3votCcFY1bn7eBmuCd",
  100.     "updated_at": 0
  101. }');
  102. curl_setopt($ch, CURLOPT_POST, 1);
  103. curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
  104.  
  105. $headers = array();
  106. $headers[] = 'Access_token: QmpDZlRxZWo2UkZ5M3pSeHZ5NW46bi13NHN0ZTV5V1I1aGpCUVVHOUM=';
  107. $headers[] = 'Authorization: Basic QmpDZlRxZWo2UkZ5M3pSeHZ5NW46bi13NHN0ZTV5V1I1aGpCUVVHOUM=';
  108. $headers[] = 'Oyo_ab_config: 1551940467632|dea:1|mwhp:1|t3c:0|epba:0|rst2:1|phbb:0|wcta:1|wtea:1|cdr2:0|popl:0|bann:1|sbma:1|rae:1|gmfh:1|prep:1|fbtn:1|htab:1|hbna:1|absb:1|se1:0|sbmi:1|se3:0|se2:0|se5:6|se4:1|rtsa:0|se6:1|cour:0|gsra:1|rtsi:1|hdab:1|rba:0|cdr:0|ipw:0|rd:1|ipw2:0|pppp:0|lzpi:1|npfi:1|uprc:1|rbl:1|rsa:0|dww2:0|deal:1|pnpd:1|rcua:1|rsi:0|gsti:1|dwep:2|otp4:1|urha:1|ppa:2|ona:0|svh:1|stc2:1|urhi:1|ppi:2|gsta:0|gstc:0|nlab:1|asa:1|cr:1|rts:0|nlp:1|mjo:1|onab:0|asi:1|wtei:1|asei:1|bsba:2|aca:1|bea:1|wtib:2|hbri:0|lyr:0|aci:0|scta:0|tspk:1|hste:1|tspi:0|tspj:0|DWWS:1|a2hs:1|pfri:0|brch:4|test:1|raab:0|sink:0|aswp:1|shli:0|hrr:0|hrt:1|riab:1|hbad:0|hbi:0|rcui:1|idl:0|sbpa:0|stcl:0|sbpi:0|sinc:1|shla:0|brea:1|idum:1|lpta:1|lpti:1|ffab:1|his2:0|hbci:1|pst:1|stfi:0|pce:1|stft:2|omue:0|brei:1|hsei:0|sold:1|hbca:1|home:1|scti:0|otab:1|cvis:0|gsa:1|dwhp:0|gsi:1|rasl:0|locr:0|obai:1|dbad:1|nrca:1|epa:2|nrci:1|hlis:0|epi:0|epn:2|fbb:1|trab:1|rmo2:1|niab:0|lbht:0|weng:0|shpa:0|hppl:0|hsfa:1|sls:1|shpi:0|loc:0|phli:0|gpwa:0|nsl:1|prpa:1|saet:1|nhba:1|gpwi:0|nrfa:0|nbwa:0|prpi:1|hbi2:1|saea:1|mrc:1|blh:1|cpab:1|hpsa:0|vct:0|octt:1|phb:1|hpsi:0|cadd:1|nsfa:1|oban:1|spc2:1|smla:0|sfni:0|auto:1|uiab:1|pvis:0|wtab:3|shel:1|ndlp:0|hmpi:1|his:0|rmo:1|bdpi:1|pbra:1|sos:2|logn:1|rms:1|uaab:1|papg:1|bdpa:1|pbri:1|nob2:1|swar:1|aowt:1|spc:1|pioi:0|rms2:0|trCl:1|nhbi:0|lbh:1|nrfi:0|nbwi:1|paom:0|lsc:1|pdhi:0|tsb:0|lsc2:0|diei:1|dmme:1|diea:1|dte:1|acsi:1|nuom:0|adum:0|pdha:0|uhps:0|mwen:0|nobs:1|efa:1|hpwa:0|fbb2:1|sra:2|reca:1|BnTc:0|paab:1|mwep:2|ngst:1|hpwi:1|ltsc:1|reci:1|jbei:0|piab:1|aimg:1|avgp:0|ffib:1|mww2:1|ioab:0|hpfd:1|srz:1|socp:0|plwc:1';
  109. $headers[] = 'Accept-Language: en';
  110. $headers[] = 'Content-Type: application/json; charset=utf-8';
  111. $headers[] = 'User-Agent: Dalvik/2.1.0 (Linux; U; Android 8.1.0; SM-G610F Build/M1AJQ)';
  112. $headers[] = 'Host: api.oyorooms.com';
  113. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  114.  
  115. $result = curl_exec($ch);
  116. if (curl_errno($ch)) {
  117.     echo 'Error:' . curl_error($ch);
  118. }
  119. curl_close ($ch);
  120.  
  121. $json = json_decode($result);
  122.  
  123. if($json->success == 0){
  124.     echo " Berhasil mendaftar OYO\r\n";
  125.     echo " Nomer HP = $phone_number\r\n";
  126.     echo " Refferal = $referral\r\n";
  127.     echo " Email    = $email\r\n";
  128.     echo " Nama     = $name\r\n";
  129.     die();
  130. }
  131. elseif($json->success == 1){
  132.     echo $json->phone." GAGAL ANJING";
  133.     die();
  134. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top