Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
siba91 /
core /
app /
Lib /
Delete
Unzip
Name
Size
Permission
Date
Action
Captcha.php
3.58
KB
-rw-r--r--
2023-11-03 02:38
ClientInfo.php
2.77
KB
-rw-r--r--
2023-11-03 02:38
CurlRequest.php
1.15
KB
-rw-r--r--
2023-11-03 02:38
FileManager.php
5.52
KB
-rw-r--r--
2023-11-03 02:38
FormProcessor.php
4.58
KB
-rw-r--r--
2023-11-03 02:38
GoogleAuthenticator.php
6.03
KB
-rw-r--r--
2023-11-03 02:38
HyipLab.php
6.89
KB
-rw-r--r--
2023-11-03 02:38
Initials.php
974
B
-rw-r--r--
2023-11-03 02:38
Save
Rename
<?php namespace App\Lib; use App\Models\Extension; class Captcha{ /* |-------------------------------------------------------------------------- | Captcha |-------------------------------------------------------------------------- | | This class is using verify and show captcha. Here is currently available | custom captcha and google recaptcha2. Developer can use verify method | to verify all captcha or can use separately if required | */ /** * Google recaptcha2 script * * @return string */ public static function reCaptcha(){ $reCaptcha = Extension::where('act', 'google-recaptcha2')->where('status', 1)->first(); return $reCaptcha ? $reCaptcha->generateScript() : null; } /** * Custom captcha script * * @return string */ public static function customCaptcha($width = '100%', $height = 46, $bgColor = '#003'){ $textColor = '#'.gs()->base_color; $captcha = Extension::where('act', 'custom-captcha')->where('status', 1)->first(); if (!$captcha) { return 0; } $code = rand(100000, 999999); $char = str_split($code); $ret = '<link href="https://fonts.googleapis.com/css?family=Henny+Penny&display=swap" rel="stylesheet">'; $ret .= '<div style="height: ' . $height . 'px; line-height: ' . $height . 'px; width:' . $width . '; text-align: center; background-color: ' . $bgColor . '; color: ' . $textColor . '; font-size: ' . ($height - 20) . 'px; font-weight: bold; letter-spacing: 20px; font-family: \'Henny Penny\', cursive; -webkit-user-select: none; -moz-user-select: none;-ms-user-select: none;user-select: none; display: flex; justify-content: center;">'; foreach ($char as $value) { $ret .= '<span style=" float:left; -webkit-transform: rotate(' . rand(-60, 60) . 'deg);">' . $value . '</span>'; } $ret .= '</div>'; $captchaSecret = hash_hmac('sha256', $code, $captcha->shortcode->random_key->value); $ret .= '<input type="hidden" name="captcha_secret" value="' . $captchaSecret . '">'; return $ret; } /** * Verify all captcha * * @return boolean */ public static function verify(){ $gCaptchaPass = self::verifyGoogleCaptcha(); $cCaptchaPass = self::verifyCustomCaptcha(); if ($gCaptchaPass && $cCaptchaPass) { return true; } return false; } /** * Verify google recaptcha2 * * @return boolean */ public static function verifyGoogleCaptcha(){ $pass = true; $googleCaptcha = Extension::where('act', 'google-recaptcha2')->where('status', 1)->first(); if ($googleCaptcha) { $resp = json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$googleCaptcha->shortcode->secret_key->value."&response=".request()['g-recaptcha-response']."&remoteip=".getRealIP()), true); if (!$resp['success']) { $pass = false; } } return $pass; } /** * Verify custom captcha * * @return boolean */ public static function verifyCustomCaptcha(){ $pass = true; $customCaptcha = Extension::where('act', 'custom-captcha')->where('status', 1)->first(); if ($customCaptcha) { $captchaSecret = hash_hmac('sha256', request()->captcha, $customCaptcha->shortcode->random_key->value); if ($captchaSecret != request()->captcha_secret) { $pass = false; } } return $pass; } }