SHARE
TWEET

Untitled

a guest May 25th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. echo "Auto login - srcribd - Deanscodes\n";
  3. echo "enter email: ";
  4. $email = trim(fgets(STDIN));
  5. echo "enter password: \e[0;30m";
  6. $pass  = trim(fgets(STDIN));
  7. echo "\e[0m\n";
  8. echo "login prosses...\e[0;30m\n\n";
  9.  
  10.      $data = array($email, $pass);
  11.  if(is_array($data))
  12.  {
  13.     echo  "login sukses".$data[1]."\n";
  14.     } else {
  15.     echo  "login gagal".$data."\n";
  16.     }
  17.     sleep(3);
  18.  
  19. function login($email, $pass){
  20.    
  21. }
  22.  
  23.  
  24. $header = array();
  25. $header [] = 'accept-encoding: gzip, deflate, br';
  26. $header [] = 'accept-language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7';
  27. $header [] = 'Host: id.scribd.com';
  28. $header [] = 'content-length: 124';
  29. $header [] = 'origin: https://id.scribd.com';
  30. $header [] = 'x-csrf-token: Vig3Ar5KTjpIUOJD+DrFed8Dz9Eo2PAQwNn52V4bAhDOJWrFPe8T2w80LntlVcaZzlsOSiPxWGtwCvnSJt175w==';
  31. $header [] = 'user-agent: Mozilla/5.0 (Linux; Android 7.0; ASUS_X008DA Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.137 Mobile Safari/537.36';
  32. $header [] = 'content-type: application/x-www-form-urlencoded;';
  33. $header [] = 'charset=UTF-UTF-8';
  34. $header [] = 'accept: */*';
  35. $header [] = 'x-requested-with: XMLHttpRequest';
  36. $header [] = 'x-tried-csrf: 1';
  37. $header [] = 'save-data: on';
  38. $header [] = 'referer: https://id.scribd.com/';
  39.  
  40. $cookie = "cookie.txt";
  41. $ch = curl_init('https://id.scribd.com/login');
  42. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  43. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  44. curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
  45. curl_setopt($ch, CURLOPT_POST, true);
  46. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  47. curl_setopt($ch, CURLOPT_COOKIE, $cookie);
  48. curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  49. curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
  50. $result = curl_exec($ch);
  51. curl_close($ch);
  52. echo $result;
  53. ?>
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
 
Top