Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "Auto login - srcribd - Deanscodes\n";
- echo "enter email: ";
- $email = trim(fgets(STDIN));
- echo "enter password: \e[0;30m";
- $pass = trim(fgets(STDIN));
- echo "\e[0m\n";
- echo "login prosses...\e[0;30m\n\n";
- $data = array($email, $pass);
- if(is_array($data))
- {
- echo "login sukses".$data[1]."\n";
- } else {
- echo "login gagal".$data."\n";
- }
- sleep(3);
- function login($email, $pass){
- }
- $header = array();
- $header [] = 'accept-encoding: gzip, deflate, br';
- $header [] = 'accept-language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7';
- $header [] = 'Host: id.scribd.com';
- $header [] = 'content-length: 124';
- $header [] = 'origin: https://id.scribd.com';
- $header [] = 'x-csrf-token: Vig3Ar5KTjpIUOJD+DrFed8Dz9Eo2PAQwNn52V4bAhDOJWrFPe8T2w80LntlVcaZzlsOSiPxWGtwCvnSJt175w==';
- $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';
- $header [] = 'content-type: application/x-www-form-urlencoded;';
- $header [] = 'charset=UTF-UTF-8';
- $header [] = 'accept: */*';
- $header [] = 'x-requested-with: XMLHttpRequest';
- $header [] = 'x-tried-csrf: 1';
- $header [] = 'save-data: on';
- $header [] = 'referer: https://id.scribd.com/';
- $cookie = "cookie.txt";
- $ch = curl_init('https://id.scribd.com/login');
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
- curl_setopt($ch, CURLOPT_COOKIE, $cookie);
- curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
- curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
- $result = curl_exec($ch);
- curl_close($ch);
- echo $result;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement