PATH:
opt
/
imunify360
/
venv
/
share
/
imunify360
/
scripts
#!/bin/bash # # Disable 3rd party IDS # set -o pipefail AGENT=imunify360-agent SCRIPT=$(basename $0) is_systemctl_avail() { which systemctl >/dev/null 2>&1 } stop_service() { local servicename=$1 if [ "$servicename" = cphulk ] then /usr/local/cpanel/etc/init/stopcphulkd else service $servicename stop fi return $? } disable_service() { local servicename=$1 case "$servicename" in cphulk) whmapi1 disable_cphulk ;; csf) csf --disable ;; *) if is_systemctl_avail then systemctl stop $servicename systemctl disable $servicename else chkconfig --del $servicename fi ;; esac return $? } for servicename in $($AGENT --console-log-level ERROR 3rdparty list) do echo "-- Going to stop and disable $servicename" stop_service $servicename echo "-- RC STOP = $?" disable_service $servicename echo "-- RC DISABLE = $?" done echo "-- DONE --"
[-] imunify-doctor.sh
[edit]
[-] delay_on_cron_call.py
[edit]
[-] create_default_config
[edit]
[-] imunify-disable-cpu-accounting.sh
[edit]
[-] csf_tool
[edit]
[-] ipset_sync.py
[edit]
[-] purge-clamav
[edit]
[-] check-detached.py
[edit]
[-] mk_apache_conf_digest.pl
[edit]
[-] imunify-check-pkg-integrity
[edit]
[-] rules_checker.py
[edit]
[-] check_recurrent.py
[edit]
[+]
migrate_csf
[-] lfd_block.py
[edit]
[-] setup_cagefs.py
[edit]
[-] whitelist_cache.py
[edit]
[-] update_components_versions.py
[edit]
[-] imunify-force-update.sh
[edit]
[-] track-fpfn-submissions.sh
[edit]
[+]
..
[-] disable_3rd_party_ids
[edit]
[-] remove_hardened_php.py
[edit]
[-] send-notifications
[edit]