!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_tdfonline/php/3ros/simplesamlphp/modules/statistics/bin/   drwxr-xr-x
Free 13.77 GB of 61.93 GB (22.23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     logcleaner.php (2.01 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/env php
<?php


/* This is the base directory of the simpleSAMLphp installation. */
$baseDir dirname(dirname(dirname(dirname(__FILE__))));

/* Add library autoloader. */
require_once($baseDir '/lib/_autoload.php');

/* Initialize the configuration. */
SimpleSAML_Configuration::setConfigDir($baseDir '/config');



$progName array_shift($argv);
$debug FALSE;
$dryrun FALSE;
$output '/tmp/simplesamlphp-new.log';
$infile NULL;

foreach(
$argv as $a) {
    if(
strlen($a) === 0) continue;

    if(
strpos($a'=') !== FALSE) {
        
$p strpos($a'=');
        
$v substr($a$p 1);
        
$a substr($a0$p);
    } else {
        
$v NULL;
    }

    
/* Map short options to long options. */
    
$shortOptMap = array(
        
'-d' => '--debug',
    );
    if(
array_key_exists($a$shortOptMap))  $a $shortOptMap[$a];

    switch(
$a) {
        case 
'--help':
            
printHelp();
            exit(
0);
        case 
'--debug':
            
$debug TRUE;
            break;
        case 
'--dry-run':
            
$dryrun TRUE;
            break;
        case 
'--infile':
            
$infile $v;
            break;
        case 
'--outfile':
            
$output $v;
            break;
        default:
            echo(
'Unknown option: ' $a "\n");
            echo(
'Please run `' $progName ' --help` for usage information.' "\n");
            exit(
1);
        }
}

$cleaner = new sspmod_statistics_LogCleaner($infile);
$cleaner->dumpConfig();
$todelete $cleaner->clean($debug);

echo 
"Cleaning these trackIDs: " join(', '$todelete) . "\n";

if (!
$dryrun) {
    
$cleaner->store($todelete$output);
}

/**
 * This function prints the help output.
 */
function printHelp() {
    global 
$progName;

    
/*   '======================================================================' */
    
echo('Usage: ' $progName ' [options]

This program cleans logs. This script is experimental. Do not run it unless you have talked to Andreas about it. 
The script deletes log lines related to sessions that produce more than 200 lines.

Options:
    -d, --debug            Used when configuring the log file syntax. See doc.
    --dry-run            Aggregate but do not store the results.
    --infile            File input.
    --outfile            File to output the results.

'
);
}


:: 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.4871 ]--