✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server.blackpussy.asia ​🇻​♯➤ 5.14.0-611.20.1.el9_7.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 163.245.207.76 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗞 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ mail,mb_send_mail
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /usr/share//av-userside-plugin.sh
#!/usr/bin/bash

DIRECTADMIN_PLUGIN="/usr/local/directadmin/plugins/Imunify"
CPANEL_PLUGIN="/usr/local/cpanel/base/frontend/jupiter/imunify"
AV_USERSIDE_PLUGIN_FLAG="/var/imunify360/av-userside-plugin.installed"
I360_USERSIDE_PLUGIN_FLAG="/var/imunify360/i360-userside-plugin.installed"
IS_I360_PACKAGE=false

# Get the name of installed panel
get_panel() {
    if [ -e /usr/local/cpanel/cpanel ]; then
        printf "cpanel\n"
    elif [ -e /usr/local/directadmin/directadmin ]; then
        printf "directadmin\n"
    elif [ -e /usr/sbin/plesk ]; then
        printf "plesk\n"
    else
        return 1
    fi
}

install_cpanel() {
    local conf_dir="antivirus_conf"
    if "${IS_I360_PACKAGE}"; then
        if [[ -f /var/imunify360/myimunify-freemium.flag ]]; then
            conf_dir="myimunify_conf"
        else
            conf_dir="conf"
        fi
    fi

    for theme_dir in /usr/local/cpanel/base/frontend/*; do
        [[ -d "${theme_dir}" ]] || continue
        local theme
        theme=$(basename "${theme_dir}")

        if [[ "${theme}" != "jupiter" ]]; then
            mkdir -p "/usr/local/cpanel/base/frontend/${theme}/imunify"
            cp -a "${CPANEL_PLUGIN}" "/usr/local/cpanel/base/frontend/${theme}"
        fi
        /usr/local/cpanel/scripts/install_plugin "/etc/sysconfig/imunify360/cpanel/${conf_dir}" --theme "${theme}"

        if "${IS_I360_PACKAGE}" && [[ -e "${AV_USERSIDE_PLUGIN_FLAG}" ]]; then
            # remove av plugin if it exists
            /usr/local/cpanel/scripts/uninstall_plugin "/etc/sysconfig/imunify360/cpanel/antivirus_conf" --theme "${theme}"
            rm -f "${AV_USERSIDE_PLUGIN_FLAG}"
        fi
    done
    touch "$(get_plugin_flag)"
}

install_directadmin() {
    local enabled_plugin="${DIRECTADMIN_PLUGIN}/user"
    local disabled_plugin="${DIRECTADMIN_PLUGIN}/.user"

    if [[ -d "${disabled_plugin}" ]] && [[ -n "$(ls -A "${disabled_plugin}")" ]]; then
        rm -rf "${enabled_plugin}"
        mv "${disabled_plugin}" "${enabled_plugin}"
    fi
    touch "$(get_plugin_flag)"
}

install_plesk() {
    if ! check_plugin_flag; then
        touch "$(get_plugin_flag)"
    fi
}

remove_cpanel() {
    local conf_dir="antivirus_conf"
    if "${IS_I360_PACKAGE}"; then
        conf_dir="conf"
    fi

    for theme_dir in /usr/local/cpanel/base/frontend/*; do
        [[ -d "${theme_dir}" ]] || continue
        local theme
        theme=$(basename "${theme_dir}")

        /usr/local/cpanel/scripts/uninstall_plugin "/etc/sysconfig/imunify360/cpanel/${conf_dir}" --theme "${theme}"

        if [[ -d "/usr/local/cpanel/base/frontend/${theme}/imunify" ]]; then
            rm -rf "/usr/local/cpanel/base/frontend/${theme}/imunify"
        fi
    done
    remove_plugin_flag
}

remove_directadmin() {
    local enabled_plugin="${DIRECTADMIN_PLUGIN}/user"
    local disabled_plugin="${DIRECTADMIN_PLUGIN}/.user"

    if [[ -d "${enabled_plugin}" ]] && [[ -n "$(ls -A "${enabled_plugin}")" ]]; then
        rm -rf "${disabled_plugin}"
        mv "${enabled_plugin}" "${disabled_plugin}"
    fi
    remove_plugin_flag
}

remove_plesk() {
    if check_plugin_flag; then
        remove_plugin_flag
    fi
}

update_cpanel() {
    if check_plugin_flag; then
        install_cpanel
    else
        printf "User-side plugin is not installed. Skipping update...\n"
    fi
}

update_directadmin() {
    if ! check_plugin_flag && [[ -e "${DIRECTADMIN_PLUGIN}/user" ]]; then
        remove_directadmin
    fi
}

update_plesk() {
    install_plesk
}

update_package_config_cpanel() {
    for theme_dir in /usr/local/cpanel/base/frontend/*; do
        [[ -d "${theme_dir}" ]] || continue
        local theme
        theme=$(basename "${theme_dir}")

        local theme_path="/usr/local/cpanel/base/frontend/${theme}/imunify/assets/js/config.js"
        if [[ -f "${theme_path}" ]]; then
            if ! grep -q "IMUNIFY_PACKAGE" "${theme_path}"; then
                printf "var IMUNIFY_PACKAGE = '360'\n" > "${theme_path}"
            else
                sed -i -E "s/IMUNIFY_PACKAGE = 'AV'/IMUNIFY_PACKAGE = '360'/" "${theme_path}"
            fi
        fi
    done
}

update_package_config_directadmin() {
    install_directadmin
}

update_package_config_plesk() {
    printf "Updating package config for Plesk is not implemented.\n"
}

# Get the appropriate flag based on package type
get_plugin_flag() {
    if "${IS_I360_PACKAGE}"; then
        echo "${I360_USERSIDE_PLUGIN_FLAG}"
    else
        echo "${AV_USERSIDE_PLUGIN_FLAG}"
    fi
}

# Check if plugin flag exists based on package type
check_plugin_flag() {
    if "${IS_I360_PACKAGE}"; then
        # For 360, check if at least one flag exists
        if [[ -e "${I360_USERSIDE_PLUGIN_FLAG}" ]] || [[ -e "${AV_USERSIDE_PLUGIN_FLAG}" ]]; then
            return 0
        else
            return 1
        fi
    else
        # For AV, check only AV flag
        if [[ -e "${AV_USERSIDE_PLUGIN_FLAG}" ]]; then
            return 0
        else
            return 1
        fi
    fi
}

# Remove appropriate flag based on package type
remove_plugin_flag() {
    if "${IS_I360_PACKAGE}"; then
        rm -f "${I360_USERSIDE_PLUGIN_FLAG}"
    else
        rm -f "${AV_USERSIDE_PLUGIN_FLAG}"
    fi
}

main() {
    local panel; panel=$(get_panel)

    if [[ -z "${panel}" ]]; then
        printf "Detected panel doesn't support av user side plugin\n"
        exit 0
    fi

    for arg in "$@"; do
        if [[ "$arg" =~ ^package= ]]; then
            local imunify_package="${arg#*=}"
            if [[ "${imunify_package}" == "360" ]]; then
                IS_I360_PACKAGE=true
            else
                IS_I360_PACKAGE=false
            fi
        fi
    done

    case "${1}" in
        "-r")
            "remove_${panel}"
            ;;
        "-u")
            "update_${panel}"
            ;;
        "-update-package")
            "update_package_config_${panel}"
            ;;
        "-i")
            "install_${panel}"
            ;;
        "")
            "install_${panel}"
            ;;
        *)
            printf "Unrecognized option: %s\n" "${1}"
            exit 1
            ;;
    esac
}

main "$@"

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
20 Aug 2026 6.54 PM
root / root
0755
GConf
--
17 Jan 2026 3.22 PM
root / root
0755
GeoIP
--
14 Jan 2026 4.39 PM
root / root
0755
ImageMagick-6
--
24 Jul 2026 4.57 AM
root / root
0755
Modules
--
17 Jan 2026 3.15 PM
root / root
0755
X11
--
27 May 2026 4.58 AM
root / root
0755
aclocal
--
11 Sep 2026 4.57 AM
root / root
0755
aclocal-1.16
--
17 Jan 2026 3.15 PM
root / root
0755
adobe
--
17 Jan 2026 3.22 PM
root / root
0755
almalinux-logos
--
27 May 2026 4.58 AM
root / root
0755
almalinux-release
--
27 May 2026 4.58 AM
root / root
0755
alsa
--
27 May 2026 4.58 AM
root / root
0755
alsa-card-profile
--
2 Sep 2026 6.52 AM
root / root
0755
alt-php-els-meta
--
20 Mar 2026 4.57 AM
root / root
0755
anaconda
--
22 May 2026 12.05 PM
root / root
0755
apache2
--
8 Sep 2026 10.55 PM
root / root
0755
appdata
--
27 May 2026 4.58 AM
root / root
0755
applications
--
17 Jan 2026 3.22 PM
root / root
0755
audit
--
4 Apr 2026 8.12 PM
root / root
0755
augeas
--
14 Jan 2026 3.47 PM
root / root
0755
authselect
--
14 Jan 2026 3.47 PM
root / root
0755
autoconf
--
17 Jan 2026 3.15 PM
root / root
0755
automake-1.16
--
17 Jan 2026 3.15 PM
root / root
0755
awk
--
14 Jan 2026 3.47 PM
root / root
0755
backgrounds
--
22 May 2026 12.05 PM
root / root
0755
bash-completion
--
8 Sep 2026 9.54 AM
root / root
0755
bison
--
17 Jan 2026 3.22 PM
root / root
0755
cmake
--
4 Apr 2026 10.03 PM
root / root
0755
cracklib
--
27 May 2026 4.58 AM
root / root
0755
crypto-policies
--
27 May 2026 4.58 AM
root / root
0755
dbus-1
--
17 Jan 2026 3.22 PM
root / root
0755
defaults
--
17 Jan 2026 3.22 PM
root / root
0755
desktop-directories
--
2 Oct 2024 9.00 PM
root / root
0755
dict
--
2 Oct 2024 9.00 PM
root / root
0755
doc
--
22 Aug 2026 4.57 AM
root / root
0755
dovecot
--
17 Jan 2026 3.16 PM
root / root
0755
dpkg
--
2 Apr 2026 4.57 AM
root / root
0755
drirc.d
--
27 May 2026 4.58 AM
root / root
0755
egl
--
17 Jan 2026 3.22 PM
root / root
0755
emacs
--
17 Jan 2026 3.15 PM
root / root
0755
empty
--
2 Oct 2024 9.00 PM
root / root
0555
empty.sshd
--
29 Jul 2026 11.09 PM
root / root
0711
et
--
17 Jan 2026 3.22 PM
root / root
0755
factory
--
25 Jun 2026 12.27 AM
root / root
0755
file
--
27 May 2026 4.58 AM
root / root
0755
fio
--
14 Jan 2026 3.49 PM
root / root
0755
firstboot
--
22 May 2026 12.05 PM
root / root
0755
fish
--
28 May 2026 9.34 PM
root / root
0755
flatpak
--
28 May 2026 9.34 PM
root / root
0755
fontconfig
--
14 Jan 2026 3.47 PM
root / root
0755
fonts
--
17 Jan 2026 3.22 PM
root / root
0755
fwupd
--
27 May 2026 4.58 AM
root / root
0755
games
--
2 Oct 2024 9.00 PM
root / root
0755
gawk
--
14 Jan 2026 3.47 PM
root / root
0755
gcc-11
--
4 Apr 2026 10.16 PM
root / root
0755
gdb
--
8 Sep 2026 9.54 AM
root / root
0755
gdm
--
17 Jan 2026 3.22 PM
root / root
0755
gettext
--
8 Sep 2026 9.54 AM
root / root
0755
gettext-0.21
--
14 Jan 2026 3.47 PM
root / root
0755
ghostscript
--
17 Jan 2026 3.22 PM
root / root
0755
gir-1.0
--
17 Jan 2026 3.22 PM
root / root
0755
glib-2.0
--
8 Sep 2026 9.54 AM
root / root
0755
glvnd
--
17 Jan 2026 3.22 PM
root / root
0755
gnome
--
17 Jan 2026 3.22 PM
root / root
0755
gnupg
--
17 Jan 2026 3.13 PM
root / root
0755
graphviz
--
17 Jan 2026 3.22 PM
root / root
0755
groff
--
14 Jan 2026 3.47 PM
root / root
0755
grub
--
27 May 2026 4.58 AM
root / root
0755
gtk-2.0
--
7 Apr 2023 7.55 AM
root / root
0755
gtk-3.0
--
26 Aug 2026 1.27 PM
root / root
0755
gtk-doc
--
31 Aug 2026 10.12 AM
root / root
0755
help
--
2 Oct 2024 9.00 PM
root / root
0755
hwdata
--
27 May 2026 4.58 AM
root / root
0755
i18n
--
3 Aug 2026 10.11 AM
root / root
0755
icons
--
17 Jan 2026 3.22 PM
root / root
0755
icu
--
17 Jan 2026 3.22 PM
root / root
0755
idl
--
2 Oct 2024 9.00 PM
root / root
0755
ima
--
14 Jan 2026 4.38 PM
root / root
0755
imunify-notifier
--
7 Jul 2026 8.56 AM
root / root
0755
imunify360
--
14 Aug 2026 4.57 AM
root / root
0755
info
--
12 Sep 2026 4.57 AM
root / root
0755
ipmitool
--
14 Jan 2026 4.39 PM
root / root
0755
iproute2
--
27 May 2026 4.58 AM
root / root
0755
iso-codes
--
17 Jan 2026 3.22 PM
root / root
0755
kdump
--
8 Apr 2026 6.11 PM
root / root
0755
keyutils
--
14 Jan 2026 3.47 PM
root / root
0755
libdrm
--
27 May 2026 4.58 AM
root / root
0755
libgpg-error
--
14 Jan 2026 3.47 PM
root / root
0755
libreport
--
14 Jan 2026 3.47 PM
root / root
0755
libthai
--
17 Jan 2026 3.14 PM
root / root
0755
libtool
--
17 Jan 2026 3.22 PM
root / root
0755
libwmf
--
17 Jan 2026 3.22 PM
root / root
0755
licenses
--
22 Aug 2026 4.57 AM
root / root
0755
locale
--
5 Aug 2026 4.57 AM
root / root
0755
lua
--
14 Jan 2026 3.47 PM
root / root
0755
makedumpfile
--
8 Apr 2026 6.11 PM
root / root
0755
man
--
14 Jan 2026 3.47 PM
root / root
0755
mdadm
--
2 Sep 2026 4.57 AM
root / root
0755
metainfo
--
27 May 2026 4.58 AM
root / root
0755
microcode_ctl
--
11 Aug 2026 4.04 PM
root / root
0755
mime
--
17 Jan 2026 3.15 PM
root / root
0755
mime-info
--
2 Oct 2024 9.00 PM
root / root
0755
misc
--
27 May 2026 4.58 AM
root / root
0755
modulefiles
--
21 Sep 2025 9.06 AM
root / root
0755
myspell
--
17 Jan 2026 3.22 PM
root / root
0755
mysql
--
22 Aug 2026 4.57 AM
root / root
0755
named
--
15 Aug 2026 4.57 AM
root / named
0750
nano
--
14 Jan 2026 3.49 PM
root / root
0755
omf
--
2 Oct 2024 9.00 PM
root / root
0755
os-prober
--
14 Jan 2026 3.47 PM
root / root
0755
osinfo
--
27 May 2026 4.58 AM
root / root
0755
p11-kit
--
3 Aug 2026 2.23 PM
root / root
0755
pam.d
--
8 Sep 2026 12.43 PM
root / root
0755
perl5
--
17 Jan 2026 3.18 PM
root / root
0755
pgsql
--
24 Jul 2026 4.57 AM
root / root
0755
pipewire
--
3 Sep 2026 4.57 AM
root / root
0755
pixmaps
--
27 May 2026 4.58 AM
root / root
0755
pkgconfig
--
15 Aug 2026 4.57 AM
root / root
0755
pki
--
19 Nov 2025 10.11 AM
root / root
0755
plymouth
--
22 May 2026 12.05 PM
root / root
0755
polkit-1
--
21 Sep 2025 9.50 AM
root / root
0755
poppler
--
17 Jan 2026 3.22 PM
root / root
0755
publicsuffix
--
14 Jan 2026 3.47 PM
root / root
0755
python3-wheels
--
27 May 2026 4.58 AM
root / root
0755
redhat-release
--
27 May 2026 4.58 AM
root / root
0755
rootfiles
--
14 Jan 2026 4.38 PM
root / root
0755
screen
--
17 Jan 2026 3.13 PM
root / root
0755
selinux
--
4 Apr 2026 9.13 PM
root / root
0755
sgml
--
17 Jan 2026 3.14 PM
root / root
0755
smartmontools
--
27 May 2026 4.58 AM
root / root
0755
sounds
--
17 Jan 2026 3.22 PM
root / root
0755
spa-0.2
--
2 Sep 2026 6.52 AM
root / root
0755
sssd
--
25 Jul 2026 4.57 AM
root / root
0755
sssd-kcm
--
25 Jul 2026 4.57 AM
root / root
0755
systemd
--
26 Jun 2026 4.57 AM
root / root
0755
systemtap
--
8 Sep 2026 9.54 AM
root / root
0755
tabset
--
14 Jan 2026 4.38 PM
root / root
0755
tcl8
--
17 Jan 2026 3.15 PM
root / root
0755
tcl8.6
--
17 Jan 2026 3.15 PM
root / root
0755
terminfo
--
21 Sep 2025 9.24 AM
root / root
0755
themes
--
17 Jan 2026 3.22 PM
root / root
0755
thumbnailers
--
27 May 2026 4.58 AM
root / root
0755
tracker3
--
17 Jan 2026 3.22 PM
root / root
0755
tracker3-miners
--
17 Jan 2026 3.22 PM
root / root
0755
vim
--
17 Jan 2026 3.15 PM
root / root
0755
wayland-sessions
--
2 Oct 2024 9.00 PM
root / root
0755
wireplumber
--
27 May 2026 4.58 AM
root / root
0755
xdg-desktop-portal
--
17 Jan 2026 3.22 PM
root / root
0755
xfsprogs
--
21 Sep 2025 1.01 PM
root / root
0755
xml
--
17 Jan 2026 3.22 PM
root / root
0755
xsessions
--
2 Oct 2024 9.00 PM
root / root
0755
zoneinfo
--
8 Aug 2026 4.57 AM
root / root
0755
zsh
--
17 Aug 2026 8.54 AM
root / root
0755
av-userside-plugin.sh
6.014 KB
12 Aug 2026 7.44 AM
root / root
0744
config.site
0.859 KB
21 Sep 2025 12.23 PM
root / root
0644
magic
1.12 MB
5 Apr 2026 12.57 AM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF