News:

Author Topic: New Faucet Script | Open your faucet  (Read 5101 times)

1 Member and 1 Guest are viewing this topic.

Offline bitganancias

  • Newbie
  • *
  • Posts: 14
  • Gender: Male
  • Referrals: 1
Re: New Faucet Script | Open your faucet
« Reply #120 on: August 04, 2017, 10:53:15 PM »
You are not allowed to view links. Register or Login
hello guys good day.

today i am gonna tut on how to replace google captcha with captchme. note: backup everything first. something might go wrong during the process.

Step 1: Create an account with Captchme if you still don't have one. You are not allowed to view links. Register or Login

Step 2: Once you are registered, an email will be sent to your inbox containing various information most especially the following:
  • Url
  • Login
  • Password
Step 3: Download their plugin, the link is also included in your email.

Step 4: Integration to your Alpha Faucet Site
  • Upload captchme-lib.php file to your libs folder.
  • In your index.php look for the code:
Code: You are not allowed to view links. Register or Login
<div class="g-recaptcha" data-sitekey="<?php echo $site_key?>" data-theme="dark"></div>
  • Replace with:
Code: You are not allowed to view links. Register or Login
   <div class="g-recaptcha">
    <?php
        
require_once("libs/captchme-lib.php");
        
$publicKey "YOUR PUBLICKEY";
        echo 
captchme_generate_html($publicKey);
    
?>

    </div>
  • Input: YOUR PUBLICKEY.
  • Save.
  • Next, in your libs folder kindly open ctrl.php.
  • Look for the following code:
Code: You are not allowed to view links. Register or Login
//verify captcha
if(isset($_POST['g-recaptcha-response'])) {
   $capResponse = $_POST['g-recaptcha-response'];
   $pingCaptcha = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=$secret_key&response=$capResponse&remoteip=$userip");
   $jsonCaptcha = json_decode($pingCaptcha, TRUE);
   $captchaSuccess = $jsonCaptcha["success"];
   
   if ($captchaSuccess == "true") {
       sleep(rand(1,10));
       $timer = $faucet_timer * 60;
       $addy = $_POST["addy"]; //get addy
       $ref = $_POST["ref"]; //get ref addy
       $opt = $_POST["option"]; //get option
       $time_addy = "../$db_name/addy/$addy.xxx"; //time of addy
       $time_ip = "../$db_name/ip/$userip.xxx"; //time of ip
       $ref_file = "../$db_name/ref/$addy.xxx"; //store ref
   
       if (!file_exists($time_addy)) {
           $write_addy = fopen($time_addy, "w");
           fclose($write_addy);
       }

       if (!file_exists($time_ip)) {
           $write_ip = fopen($time_ip, "w");
           fclose($write_ip);
       }

       if (!file_exists($ref_file) && !empty($ref)) {
           $crt_rf = fopen($ref_file, "w");
           fwrite($crt_rf, $ref);
           fclose($crt_rf);
       }

       if (file_exists($ref_file)) {
           $xref = file_get_contents($ref_file);
           $ref = $xref;
       }
       $btc = "BTC";
       if (file_exists($time_addy) && file_exists($time_ip)) {

           $open_addy = file_get_contents($time_addy);
           $open_ip = file_get_contents($time_ip);

           if (empty($open_addy) && empty($open_ip)) {
               if ($opt == "fh") {
                   require_once("send_fh.php");
               } elseif ($opt == "fs") {
                   require_once("send_fs.php");
               } else {
                   $msg = "Fuck you";
                   header('Location: ../index.php?msg='.$msg.'');
               }
           }

           if (!empty($open_ip) && !empty($open_addy)) {
               $t_addy = time() - $open_addy; //verify time in addy
               $t_ip = time() - $open_ip; //verify time in ip
               if ($t_addy > $timer && $t_ip > $timer) {
                   if ($opt == "fh") {
                       require_once("send_fh.php");
                   } elseif ($opt == "fs") {
                       require_once("send_fs.php");
                   }
               } else {
                   if ($t_addy < $timer) {
                       $te = $timer - $t_addy; //verify addy time
                       $tem = intval($te / 60);
                       $msg = "You must have to wait $tem minutes before next claim.";
                       header('Location: ../index.php?msg='.$msg.'');
                   } elseif ($t_ip < $timer) {
                       $te = $timer - $t_ip; //verify ip time
                       $tem = intval($te / 60);
                       $msg = "Your IP will be available for next claim after $tem minutes.";
                       header('Location: ../index.php?msg='.$msg.'');
                   }
               }

           }
           if (!empty($open_ip) && empty($open_addy)) {
               $t_ip = time() - $open_ip; //verify time in ip
               if ($t_ip > $timer) {
                   if ($opt == "fh") {
                       require_once("send_fh.php");
                   } elseif ($opt == "fs") {
                       require_once("send_fs.php");
                   }
               } elseif ($t_ip < $timer) {
                   $te = $timer - $t_ip; //verify ip time
                   $tem = intval($te / 60);
                   $msg = "Your IP will be available for next claim after $tem minutes.";
                   header('Location: ../index.php?msg='.$msg.'');
               }
           }
           if (empty($open_ip) && !empty($open_addy)) {
               $t_addy = time() - $open_addy; //verify time in addy
               if ($t_addy > $timer) {
                   if ($opt == "fh") {
                       require_once("send_fh.php");
                   } elseif ($opt == "fs") {
                       require_once("send_fs.php");
                   }
               } elseif ($t_addy < $timer) {
                   $te = $timer - $t_addy; //verify addy time
                   $tem = intval($te / 60);
                   $msg = "You must have to wait $tem minutes before next claim.";
                   header('Location: ../index.php?msg='.$msg.'');
               }
           }
       }
    } else {
       $msg = "Your Captcha Was Invalid.";
       header('Location: ../index.php?msg='.$msg.'');
    }
} else {
header('Location: ../index.php');
}
?>
  • And, replace with the following code:
Code: You are not allowed to view links. Register or Login
//verify captcha
require_once("captchme-lib.php");
    $privateKey = "YOUR PRIVATEKEY";
    $authenKey = "YOUR AUTHENKEY";
     
    if (isset($_POST["captchme_response_field"])) {
        $remoteIp = $_SERVER["REMOTE_ADDR"];
        $response = captchme_verify ($privateKey,
                                     $_POST["captchme_challenge_field"],
                                     $_POST["captchme_response_field"],
                                     $remoteIp,
                                     $authenKey);
     
        if ($response->is_valid) {
       // your form management code
       sleep(rand(1,10));
       $timer = $faucet_timer * 60;
       $addy = $_POST["addy"]; //get addy
       $ref = $_POST["ref"]; //get ref addy
       $opt = $_POST["option"]; //get option
       $time_addy = "../$db_name/addy/$addy.xxx"; //time of addy
       $time_ip = "../$db_name/ip/$userip.xxx"; //time of ip
       $ref_file = "../$db_name/ref/$addy.xxx"; //store ref
   
       if (!file_exists($time_addy)) {
           $write_addy = fopen($time_addy, "w");
           fclose($write_addy);
       }

       if (!file_exists($time_ip)) {
           $write_ip = fopen($time_ip, "w");
           fclose($write_ip);
       }

       if (!file_exists($ref_file) && !empty($ref)) {
           $crt_rf = fopen($ref_file, "w");
           fwrite($crt_rf, $ref);
           fclose($crt_rf);
       }

       if (file_exists($ref_file)) {
           $xref = file_get_contents($ref_file);
           $ref = $xref;
       }
       $btc = "BTC";
       if (file_exists($time_addy) && file_exists($time_ip)) {

           $open_addy = file_get_contents($time_addy);
           $open_ip = file_get_contents($time_ip);

           if (empty($open_addy) && empty($open_ip)) {
               if ($opt == "fh") {
                   require_once("send_fh.php");
               } elseif ($opt == "fs") {
                   require_once("send_fs.php");
               } else {
                   $msg = "Fuck you";
                   header('Location: ../index.php?msg='.$msg.'');
               }
           }

           if (!empty($open_ip) && !empty($open_addy)) {
               $t_addy = time() - $open_addy; //verify time in addy
               $t_ip = time() - $open_ip; //verify time in ip
               if ($t_addy > $timer && $t_ip > $timer) {
                   if ($opt == "fh") {
                       require_once("send_fh.php");
                   } elseif ($opt == "fs") {
                       require_once("send_fs.php");
                   }
               } else {
                   if ($t_addy < $timer) {
                       $te = $timer - $t_addy; //verify addy time
                       $tem = intval($te / 60);
                       $msg = "You must have to wait $tem minutes before next claim.";
                       header('Location: ../index.php?msg='.$msg.'');
                   } elseif ($t_ip < $timer) {
                       $te = $timer - $t_ip; //verify ip time
                       $tem = intval($te / 60);
                       $msg = "Your IP will be available for next claim after $tem minutes.";
                       header('Location: ../index.php?msg='.$msg.'');
                   }
               }

           }
           if (!empty($open_ip) && empty($open_addy)) {
               $t_ip = time() - $open_ip; //verify time in ip
               if ($t_ip > $timer) {
                   if ($opt == "fh") {
                       require_once("send_fh.php");
                   } elseif ($opt == "fs") {
                       require_once("send_fs.php");
                   }
               } elseif ($t_ip < $timer) {
                   $te = $timer - $t_ip; //verify ip time
                   $tem = intval($te / 60);
                   $msg = "Your IP will be available for next claim after $tem minutes.";
                   header('Location: ../index.php?msg='.$msg.'');
               }
           }
           if (empty($open_ip) && !empty($open_addy)) {
               $t_addy = time() - $open_addy; //verify time in addy
               if ($t_addy > $timer) {
                   if ($opt == "fh") {
                       require_once("send_fh.php");
                   } elseif ($opt == "fs") {
                       require_once("send_fs.php");
                   }
               } elseif ($t_addy < $timer) {
                   $te = $timer - $t_addy; //verify addy time
                   $tem = intval($te / 60);
                   $msg = "You must have to wait $tem minutes before next claim.";
                   header('Location: ../index.php?msg='.$msg.'');
               }
           }
       }
        } else {
            //display error message
            $msg = "Your Captcha Was Invalid.";
            header('Location: ../index.php?msg='.$msg.'');
        }
        } else {
        header('Location: ../index.php');
    }

?>
  • Input: YOUR PRIVATEKEY and YOUR AUTHENKEY.
  • Save.

Thats all, test if it works.

not work for me

Offline cr3at1v3

  • Newbie
  • *
  • Posts: 12
  • Gender: Male
  • Referrals: 0
    • ConsiAriat BTC Faucet
Re: New Faucet Script | Open your faucet
« Reply #121 on: August 05, 2017, 07:28:17 AM »
You are not allowed to view links. Register or Login
How to change btc to bch faucet? i use ryuken desing

« Last Edit: August 05, 2017, 07:33:41 AM by cr3at1v3 »
You are not allowed to view links. Register or Login | You are not allowed to view links. Register or Login

Offline leomineradorlol

  • Newbie
  • *
  • Posts: 1
  • Gender: Male
  • Referrals: 0
    • superbitcoins
Re: New Faucet Script | Open your faucet
« Reply #122 on: August 21, 2017, 06:30:08 AM »
HOW I USE THE MICROWALLET: FAUCETSYSTEM IN THIS FAUCET??  :nice: