!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/3ros/simplesamlphp/modules/logpeek/www/   drwxrwxr-x
Free 13.78 GB of 61.93 GB (22.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     index.php (1.67 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

function logFilter($objFile$tag$cut){
    if (!
preg_match('/^[a-f0-9]{10}$/D'$tag)) throw new Exception('Invalid search tag');
    
    
$i 0;
    
$results = array();
    
$line $objFile->getPreviousLine();
    while(
$line !== FALSE && ($i++ < $cut)){
        if(
strstr($line'[' $tag ']')){
            
$results[] = $line;
        }
        
$line $objFile->getPreviousLine();
    }
    
$results[] = 'Searched ' $i ' lines backward. ' count($results) . ' lines found.';
    
$results array_reverse($results);
    return 
$results;
}


$config SimpleSAML_Configuration::getInstance();
$session SimpleSAML_Session::getInstance();

SimpleSAML_Utilities::requireAdmin();

$logpeekconfig SimpleSAML_Configuration::getConfig('module_logpeek.php');
$logfile $logpeekconfig->getValue('logfile''/var/simplesamlphp.log');
$blockSize $logpeekconfig->getValue('blocksz'8192);

$myLog = new sspmod_logpeek_File_reverseRead($logfile$blockSize);


$results NULL;
if (isset(
$_REQUEST['tag'])) {
    
$results logFilter($myLog$_REQUEST['tag'], $logpeekconfig->getValue('lines'500));
}


$fileModYear date("Y"$myLog->getFileMtime());
$firstLine $myLog->getFirstLine();
$firstTimeEpoch sspmod_logpeek_Syslog_parseLine::getUnixTime($firstLine$fileModYear);
$lastLine $myLog->getLastLine();
$lastTimeEpoch sspmod_logpeek_Syslog_parseLine::getUnixTime($lastLine$fileModYear);
$fileSize $myLog->getFileSize();

$t = new SimpleSAML_XHTML_Template($config'logpeek:logpeek.php');
$t->data['results'] = $results;
$t->data['trackid'] = $session->getTrackID();
$t->data['timestart'] = date(DATE_RFC822$firstTimeEpoch);
$t->data['endtime'] = date(DATE_RFC822$lastTimeEpoch);
$t->data['filesize'] = $fileSize;

$t->show();
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4878 ]--