AnonSec Shell
Server IP : 221.132.30.236  /  Your IP : 216.73.216.91   [ Reverse IP ]
Web Server : Apache
System : Linux web3.trangwebvang.net 2.6.32-954.3.5.lve1.4.86.el6.x86_64 #1 SMP Tue Aug 31 17:08:39 UTC 2021 x86_64
User : cherishhotel ( 944)
PHP Version : 5.6.40
Disable Function : exec, system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice, proc_terminate, proc_get_status, proc_close, pfsockopen, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid,dl,symlink
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

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

# cpanel - scripts/build_bandwidthdb_root_cache_in_background
#                                                  Copyright 2022 cPanel, L.L.C.
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

package scripts::build_bandwidthdb_root_cache;

use strict;
use warnings;

use Cpanel::Daemonizer::Tiny ();
use Cpanel::ConfigFiles      ();
use Cpanel::FileUtils::Open  ();

my $orig_dollar_zero = $0;

__PACKAGE__->script() if !caller;

sub script {
    my $pid = Cpanel::Daemonizer::Tiny::run_as_daemon(
        sub {
            ####
            # The next two calls are unchecked because it cannot be captured when running as a daemon
            Cpanel::FileUtils::Open::sysopen_with_real_perms( \*STDERR, $Cpanel::ConfigFiles::CPANEL_ROOT . '/logs/error_log', 'O_WRONLY|O_APPEND|O_CREAT', 0600 );
            open( STDOUT, '>&', \*STDERR ) || warn "Failed to redirect STDOUT to STDERR";

            require Cpanel::BandwidthDB::RootCache;
            Cpanel::BandwidthDB::RootCache->new(
                'import_options' => {
                    before_user => \&_before_user,
                }
            );
        }
    );

    print "Building BandwidthDB RootCache in the background (PID $pid)...\n";

    return;
}

sub _before_user {
    my ($user) = @_;

    $0 = "$orig_dollar_zero - import $user";
    return 1;
}

1;

Anon7 - 2022
AnonSec Team