403Webshell
Server IP : 172.67.179.166  /  Your IP : 162.159.110.123
Web Server : nginx/1.20.2
System : Linux 172-104-110-161.ip.linodeusercontent.com 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64
User : www ( 1000)
PHP Version : 8.1.9
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/wwwroot/lenovo-drivers.com/wordpress/wp-content/plugins/cloudflare/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/lenovo-drivers.com/wordpress/wp-content/plugins/cloudflare/index.php
<?php
if (!defined('ABSPATH')) { // Exit if accessed directly
    exit;
}

$config = new Cloudflare\APO\Integration\DefaultConfig(file_get_contents('config.json', true));
$logger = new Cloudflare\APO\Integration\DefaultLogger($config->getValue('debug'));
$dataStore = new Cloudflare\APO\WordPress\DataStore($logger);
$wordpressAPI = new Cloudflare\APO\WordPress\WordPressAPI($dataStore);

$pluginData = get_plugin_data(CLOUDFLARE_PLUGIN_DIR.'cloudflare.php');
$pluginVersion = $pluginData['Version'];

wp_register_style('cf-corecss', plugins_url('stylesheets/cf.core.css', __FILE__), null, $pluginVersion);
wp_enqueue_style('cf-corecss');
wp_register_style('cf-componentscss', plugins_url('stylesheets/components.css', __FILE__), null, $pluginVersion);
wp_enqueue_style('cf-componentscss');
wp_register_style('cf-hackscss', plugins_url('stylesheets/hacks.css', __FILE__), null, $pluginVersion);
wp_enqueue_style('cf-hackscss');
wp_enqueue_script('cf-compiledjs', plugins_url('compiled.js', __FILE__), null, $pluginVersion);
?>
<div id="root" class="cloudflare-partners site-wrapper"></div>
<script>
//Set global absolute base url
window.absoluteUrlBase = '<?php echo plugins_url('/cloudflare/'); ?>';

cfCSRFToken = '<?php echo wp_create_nonce(\Cloudflare\APO\WordPress\WordPressAPI::API_NONCE); ?>';
localStorage.cfEmail = '<?php echo $dataStore->getCloudFlareEmail(); ?>';

/*
 * A callback for cf-util-http to proxy all calls to our backend
 *
 * @param {Object} [opts]
 * @param {String} [opts.method] - GET/POST/PUT/PATCH/DELETE
 * @param {String} [opts.url]
 * @param {Object} [opts.parameters]
 * @param {Object} [opts.headers]
 * @param {Object} [opts.body]
 * @param {Function} [opts.onSuccess]
 * @param {Function} [opts.onError]
 */
window.RestProxyCallback = (opts) => {
    // Only proxy external REST calls
    if (opts.url.lastIndexOf('http', 0) === 0) {
        if (!opts.parameters) {
            opts.parameters = {};
        }

        // WordPress Ajax Action
        opts.parameters['action'] = '<?php echo \Cloudflare\APO\WordPress\Hooks::WP_AJAX_ACTION; ?>'

        if (opts.method.toUpperCase() === 'GET') {
            var clientAPIURL = '<?php echo \Cloudflare\APO\API\Client::ENDPOINT; ?>';
            var pluginAPIURL = '<?php echo \Cloudflare\APO\API\Plugin::ENDPOINT; ?>';

            // If opts.url begins with clientAPIURL or pluginAPIURL,
            // remove the API URL and assign the rest to proxyURL
            if (opts.url.substring(0, clientAPIURL.length) === clientAPIURL) {
                opts.parameters['proxyURL'] = opts.url.substring(clientAPIURL.
                    length);
                opts.parameters['proxyURLType'] = 'CLIENT';
            } else if (opts.url.substring(0, pluginAPIURL.length) === pluginAPIURL) {
                opts.parameters['proxyURL'] = opts.url.substring(pluginAPIURL.length);
                opts.parameters['proxyURLType'] = 'PLUGIN';
            }
        } else {
            if (!opts.body) {
                opts.body = {};
            }

            opts.body['cfCSRFToken'] = cfCSRFToken;
            opts.body['proxyURL'] = opts.url;
        }

        // WordPress Ajax Global
        opts.url = ajaxurl;
    } else {
        // To avoid static files getting cached add the version number
        // to the url
        var versionNumber = '<?php echo $pluginVersion; ?>';
        opts.url = absoluteUrlBase + opts.url + '?ver=' + versionNumber;
    }
}
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit