Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <?php
  2.  
  3. $email = ' ';
  4.  
  5. $senha = ' ';
  6.  
  7. $ch = curl_init();
  8.  
  9. curl_setopt($ch, CURLOPT_URL, 'http://minhaconta.payleven.com.br/login_check');
  10.  
  11. curl_setopt($ch, CURLOPT_COOKIESESSION, true);
  12.  
  13. curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
  14.  
  15. curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
  16.  
  17. curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");
  18.  
  19. curl_setopt ($ch, CURLOPT_POST, 1);
  20.  
  21. curl_setopt ($ch, CURLOPT_POSTFIELDS, '_username=' . urlencode($email) . '&_password=' . urlencode($senha));
  22.  
  23. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  24.  
  25. curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  26.  
  27. curl_setopt($ch, CURLOPT_URL, 'http://minhaconta.payleven.com.br/account');
  28.  
  29. $track = curl_exec ($ch);
  30.  
  31. curl_close ($ch);
  32.  
  33. echo $track;
  34.  
  35. ?>
  36.  
  37. HTTP/1.1 301 Moved Permanently Content-Type: text/html Date: Sun, 09 Jul 2017 18:15:09 GMT Location: https://minhaconta.payleven.com.br/account Server: nginx Content-Length: 178 Connection: keep-alive HTTP/1.1 302 Found Cache-Control: no-cache Content-Type: text/html; charset=UTF-8 Date: Sun, 09 Jul 2017 18:15:07 GMT Location: https://minhaconta.payleven.com.br/login Server: nginx Set-Cookie: village=218gi74f0dgc7osgtmts2jbns4; path=/ Content-Length: 5183 Connection: keep-alive HTTP/1.1 200 OK Cache-Control: no-cache Content-Type: text/html; charset=UTF-8 Date: Sun, 09 Jul 2017 18:15:09 GMT Server: nginx Vary: Accept-Encoding Content-Length: 11320 Connection: keep-alive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement