Linux moon.hostseba.com 4.18.0-553.51.1.lve.el8.x86_64 #1 SMP Tue May 6 15:14:12 UTC 2025 x86_64
LiteSpeed
Server IP : 103.174.152.68 & Your IP : 216.73.216.9
Domains :
Cant Read [ /etc/named.conf ]
User : julaysp1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
imunify360 /
venv /
share /
imunify360 /
scripts /
Delete
Unzip
Name
Size
Permission
Date
Action
migrate_csf
[ DIR ]
drwxr-xr-x
2025-09-13 06:27
check-detached.py
1.11
KB
-rwxr-xr-x
2025-07-23 06:47
check_recurrent.py
1.85
KB
-rwxr-xr-x
2025-08-22 12:13
create_default_config
1.23
KB
-rwxr-xr-x
2025-07-23 06:47
csf_tool
2.75
KB
-rwxr--r--
2025-08-22 12:13
delay_on_cron_call.py
1.12
KB
-rwxr-xr-x
2025-08-28 14:27
disable_3rd_party_ids
1.01
KB
-rwxr--r--
2025-08-22 12:13
imunify-disable-cpu-accounting.sh
792
B
-rwxr--r--
2025-07-23 06:47
imunify-doctor.sh
17.1
KB
-rwxr--r--
2025-07-23 06:47
imunify-force-update.sh
3.16
KB
-rwxr--r--
2025-07-23 06:47
lfd_block.py
2.96
KB
-rwxr--r--
2025-08-22 12:13
mk_apache_conf_digest.pl
3.54
KB
-rwxr--r--
2025-08-22 12:13
purge-clamav
535
B
-rwxr-xr-x
2025-07-23 06:47
remove_hardened_php.py
3.92
KB
-rwxr-xr-x
2025-08-22 12:13
rules_checker.py
10.8
KB
-rw-r--r--
2025-08-22 12:13
send-notifications
7.66
KB
-rwsrwx---
2025-07-23 06:47
setup_cagefs.py
3.72
KB
-rwx------
2025-08-28 14:27
track-fpfn-submissions.sh
3.8
KB
-rwxr-xr-x
2025-07-23 06:47
update_components_versions.py
4.46
KB
-rwxr-xr-x
2025-07-23 06:47
whitelist_cache.py
1.46
KB
-rwxr-xr-x
2025-08-22 12:13
Save
Rename
#!/bin/bash # # This script exit codes # 0 means OK # 1 some error or csf is not installed # function is_csf_installed { if which csf >/dev/null 2>&1; then echo "csf is installed" return 0 else echo "csf is not installed" return 1 fi } function enable_csf { systemctl start csf systemctl start lfd csf --enable # add csf to autostart } function disable_csf { systemctl stop csf systemctl stop lfd csf --disable # remove csf from autostart } function edit_allow_list { FILE=$1 mapfile -t ip_comment < $FILE if [ "$2" = "remove" ] ; then for instance in "${ip_comment[@]}" do IFS=';' read -r ip comment <<< $instance if [ ! -z $ip ]; then sed -i "/$ip/d" /etc/csf/csf.allow local rc=$? test $rc = 0 || return $rc fi done # remove imunify360 whitelist file sed -i "/imunify360.txt/d" /etc/csf/csf.allow sed -i "/^# csf_tool/d" /etc/csf/csf.allow remove_bins_from_pignore fi if [ "$2" = "add" ] ; then add_bins_to_pignore echo $'\n# csf_tool: ' >> /etc/csf/csf.allow for instance in "${ip_comment[@]}" do echo $instance IFS=';' read -r ip comment <<< $instance local out=`csf --add $ip "$comment" 2>&1` local rc=$? test $rc = 0 || return $rc done fi } BINS_TO_IGNORE="exe:/var/ossec/bin/ossec-monitord \ exe:/var/ossec/bin/ossec-analysisd\ exe:/var/ossec/bin/ossec-remoted" ignore_file=/etc/csf/csf.pignore function remove_bins_from_pignore { for exe in $BINS_TO_IGNORE; do sed -i "\|${exe}|d" $ignore_file done } function add_bins_to_pignore { should_restart=false for exe in $BINS_TO_IGNORE; do if ! grep -q $exe $ignore_file ; then echo "$exe" >> $ignore_file should_restart=true fi done if $should_restart; then echo 'Restarting CSF to apply pignore changes' csf --restartall > /dev/null fi } if [ "$1" = "" ] ; then echo "Usage: $0 enable/disable/status/coop_install" exit 1 fi if [ "$1" = "status" ] ; then is_csf_installed exit $? fi if [ "$1" = "enable" ] then is_csf_installed >/dev/null || exit 1 enable_csf exit $? fi if [ "$1" = "disable" ] then is_csf_installed >/dev/null || exit 1 disable_csf exit $? fi if [ "$1" = "coop_install" ] then is_csf_installed >/dev/null || exit 1 edit_allow_list /etc/csf/imunify_allow.conf add exit $? fi if [ "$1" = "remove" ] then edit_allow_list /etc/csf/imunify_allow.conf remove exit $? fi