PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
defence360agent
/
plugins
/
__pycache__
/
Editing: wordpress.cpython-311.pyc
� ���i�I � � � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZm Z d dl mZ d dlm Z d dlmZmZmZ d dlmZ d d lmZmZmZ d d lmZmZ d dlmZ d dlmZ d d lm Z d dlm!Z! d dl"m#Z# d dl$m%Z%m&Z&m'Z' d dl(m)Z)m*Z* d dlm+Z+m,Z,m-Z- d dl.m/Z/ d dl0m1Z1 ej2 e3� � Z4 edej5 � � Z6 edej5 � � Z7 ed� � Z8 ed� � Z9e8dz Z:e8dz Z;de<de=fd�Z> G d� dee� � Z?dS ) � N)�Path)� Coroutine)�ANTIVIRUS_MODE�SystemConfig)� HookEvent)�MessageType)�MessageSink� MessageSource�expect)� hosting_panel)� load_state�register_lock_file� save_state)�Scope�recurring_check)� check_lock)�DAY)�plugin)� Wordpress��WPSite)�get_sites_by_path�get_sites_for_user�get_installed_sites)�is_secret_expired� rotate_secret)�ChangelogProcessor�IncidentCollector�IncidentSender)�update_disabled_rules_on_sites)�delete_old_wordpress_incidentszwp-gen-authzwp-site-processz-/etc/sysconfig/imunify360/imunify360.config.dzF/opt/imunify360/venv/share/imunify360/11_on_first_install_wp_av.configz 11_on_first_install_wp_av.configz.11_on_first_install_wp_av.flag�started_timestamp�returnc � � ddl m} |� | � � S # t $ r t � d� � g cY S w xY w)z� Get malware hits cleaned since the given timestamp with lazy import fallback. Returns empty list if imav.malwarelib is not available. r )� MalwareHitz;imav.malwarelib not available, returning empty cleaned hits)�imav.malwarelib.modelr% � cleaned_since�ImportError�logger�debug)r"