PATH:
opt
/
imunify360
/
venv
/
share
/
imunify360
/
scripts
#!/opt/imunify360/venv/bin/python3 -u """Notify the Go resident agent to synchronize ipsets. Used as a CSF post-hook script: after CSF restarts, ipsets need to be restored. Sends IPSET_SYNC RPC to the resident agent which handles the full synchronization (restore outdated ipsets, consistency check, rule updates). """ import json import socket import sys SOCKET_PATH = "/var/run/defence360agent/generic_sensor.sock.2" TIMEOUT = 30 def main() -> None: with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as sock: sock.settimeout(TIMEOUT) sock.connect(SOCKET_PATH) msg = json.dumps({"method": "IPSET_SYNC"}).encode() + b"\n" sock.sendall(msg) if __name__ == "__main__": try: main() except (ConnectionRefusedError, FileNotFoundError): pass except socket.timeout: pass except Exception as exc: print(f"ipset_sync: {exc}", file=sys.stderr)
[-] 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]