One Hat Cyber Team
Your IP :
216.73.216.180
Server IP :
162.240.179.46
Server :
Linux vps-14493116.nutrivittasaude.com.br 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
lve
/
modlscapi
/
hooks
/
View File Name :
lsapi_patch_cpanel_hook.sh
#!/usr/bin/bash LOG="/usr/share/lve/modlscapi/logs/lsapi_patch.log" RES=$(cat "/usr/local/cpanel/Cpanel/WebServer/Supported/apache.pm" | grep "lsapi") if [ -z "$RES" ]; then current_path=$(pwd) common_path_of_cpanel="/usr/share/lve/modlscapi/tars/" cd "$common_path_of_cpanel" || exit if [ -e "apache_pm.patch" ]; then cd /usr/local/cpanel/Cpanel/WebServer/Supported || exit patch -N -i $common_path_of_cpanel/apache_pm.patch if [ $? != 0 ]; then echo "$(date +%Y-%m-%d_%H:%M) - Error applying patch..." >> "$LOG" cd "$current_path" || exit exit 1 else echo "$(date +%Y-%m-%d_%H:%M) - Patch was applied correctly..." >> "$LOG" cd "$current_path" || exit exit 0 fi else echo "$(date +%Y-%m-%d_%H:%M) - Cannot find apache_pm.patch..." >> "$LOG" cd "$current_path" || exit exit 1 fi else echo "$(date +%Y-%m-%d_%H:%M) - Already patched..." >> "$LOG" exit 0 fi