AnonSec Shell
Server IP : 172.67.216.113  /  Your IP : 172.71.28.146   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/2388322/root/proc/2388322/cwd/backend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /proc/2388322/root/proc/2388322/cwd/backend/webdiskreg.cgi
#!/usr/local/cpanel/3rdparty/bin/perl

# cpanel - base/backend/webdiskreg.cgi             Copyright 2022 cPanel, L.L.C.
#                                                           All rights reserved.
# [email protected]                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

use Cpanel::Encoder::Tiny ();
use Cpanel::Encoder::URI  ();
use Cpanel::Locale        ();
use Cpanel::Logger        ();

my $WINDOWS_DEFAULT_MAX_SIZE_MB = 47;            # 0x02FAF080 or 50000000 B
my $CPANEL_DEFAULT_MAX_SIZE     = 2147483647;    # 2 GB - 1 byte
my $CPANEL_DEFAULT_MAX_SIZE_MB  = 2048;
my $DWORD_MAX_UNSIGNED_INT_MB   = 4095;
my $DWORD_MAX_UNSIGNED_INT      = 4294967295;    # max value the windows registry will accept for this key

my ($maxFileSize) = split( /\|/, Cpanel::Encoder::URI::uri_decode_str( $ENV{'QUERY_STRING'} ) );

my $locale = Cpanel::Locale->get_handle();

if ( !$maxFileSize || ( $maxFileSize = int($maxFileSize) ) < $WINDOWS_DEFAULT_MAX_SIZE_MB ) {
    $maxFileSize = $CPANEL_DEFAULT_MAX_SIZE;
}
elsif ( $maxFileSize >= $DWORD_MAX_UNSIGNED_INT_MB ) {
    $maxFileSize = $DWORD_MAX_UNSIGNED_INT;
}
else {
    $maxFileSize *= 1048576;    # MB to B
}

$maxFileSize = sprintf( "%x", $maxFileSize );

my $fileName = Cpanel::Encoder::URI::uri_encode_str('WebClientFileSizeLimit.reg');

if ( open( my $wdisk_fh, '<', '/usr/local/cpanel/base/backend/WebClientFileSizeLimit.reg' ) ) {
    print <<EOM;
Content-Type: application/download; name="$fileName";
Content-Disposition: attachment; filename="$fileName";

EOM
    while ( readline($wdisk_fh) ) {
        s/__MAX_FILE_SIZE__/$maxFileSize/g;
        print;
    }
    close($wdisk_fh);
}
else {
    my $logger;
    $logger ||= Cpanel::Logger->new();
    $logger->warn('Unable to locate WebClientFileSizeLimit.reg.');
    my $fileNotFoundTitle = Cpanel::Encoder::Tiny::safe_html_encode_str( $locale->maketext('Unable To Locate File') );
    my $fileNotFoundBody  = Cpanel::Encoder::Tiny::safe_html_encode_str( $locale->maketext('Unable to locate file.') );
    print "Content-type: text/html\r\n\r\n<html><head><title>$fileNotFoundTitle</title></head><body>$fileNotFoundBody</body></html>";
    exit;
}

Anon7 - 2022
AnonSec Team