Linux server2.hpierson.com 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
Apache
: 162.0.216.123 | : 216.73.216.152
28 Domain
?7.4.33
yvffpqmy
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
lve /
modlscapi /
hooks /
[ HOME SHELL ]
Name
Size
Permission
Action
?;
__pycache__
[ DIR ]
drwxr-xr-x
buildlsphp.hook
839
B
-rwxr-xr-x
clearconf.hook
923
B
-rwxr-xr-x
cpanel_check_handlers_hook.sh
1.3
KB
-rwxr-xr-x
cpanel_post_upcp_check_handler...
1.34
KB
-rwxr-xr-x
cpanel_post_upcp_lsapi_hook.py
1.33
KB
-rwxr-xr-x
cpanel_pre_upcp_check_handlers...
1.34
KB
-rwxr-xr-x
cpanelpostupcp.hook
2.03
KB
-rwxr-xr-x
lsapi.hook
1.05
KB
-rwxr-xr-x
lsapi_patch_cpanel_hook.sh
1.01
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cpanelpostupcp.hook
#!/bin/bash # Copyright (c) Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2018 All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #CloudLinux POSTUPCP INSTALL . /usr/share/lve/modlscapi/include/cpanel-common-lve function getEasyApacheVer(){ cat /var/cpanel/easy/apache/profile/_main.yaml | grep version | cut -d":" -f2 | tr -d ' ' | tr -d "'" } log=$(getLogFile) VER=$(getEasyApacheVer) if [ -e "/var/cpanel/conf/apache/main" ]; then if [ ! -e "/var/cpanel/conf/apache/main.bak" ]; then cp /var/cpanel/conf/apache/main /var/cpanel/conf/apache/main.bak fi cat /var/cpanel/conf/apache/main | sed -n '/mod_ruid2\.so/{N;s/.*//;x;d;};x;p;${x;p;}' | sed '/^$/d' > /var/cpanel/conf/apache/main.tmp cat /var/cpanel/conf/apache/main.tmp | sed -n '/mod_ruid2\.conf/{s/.*//;x;d;};x;p;${x;p;}' | sed '/^$/d' > /var/cpanel/conf/apache/main rm -f /var/cpanel/conf/apache/main.tmp fi "$common_path_of_cpanel/utils/checkconfdutil.pm" rebuildscript="/scripts/rebuildhttpdconf" if [ -e "$rebuildscript" ]; then "$rebuildscript" 1>>"$log" 2>>"$log" echo "Rebuilding conf ok..." >> "$log" else echo "Rubuilding failed..." >> "$log" fi restarthttpd="/scripts/restartsrv_httpd" if [ -e "$restarthttpd" ]; then "$restarthttpd" 1>>"$log" 2>>"$log" echo "Restarting apache ok..." >> "$log" else echo "Restarting apache failed..." >> "$log" fi writeToLog "[cpanelpostupcp] hook was successfully executed"
Close