JezK
Edit File: wordpress.cpython-311.opt-1.pyc
� �j7�:��� �� � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dl m Z mZmZm Z mZ d dlmZ d dlmZ d dlmZ d d lmZmZmZ d d lmZ d dlmZmZmZ d dlm Z m!Z!m"Z"m#Z# d d l$m%Z% d dl&m'Z' d dl(m)Z) d dl*m+Z, d dl*m-Z- d dl.m/Z/ d dl0m1Z1 d dl2m3Z3 d dl4m5Z5m6Z6 d dl7m8Z8m9Z9m:Z: d dl;m<Z<m=Z= d dl*m>Z>m?Z?m@Z@ d dlAmBZB d dlCmDZD ejE eF� � ZG ede jH � � ZI ede jH � � ZJ ede jH � � ZK ede jH � � ZL ed� � ZM ed � � ZNeMd!z ZOeMd"z ZP e!jQ d#d$d�%� � ZRd&eSd'eTfd(�ZU G d)� d*ee� � ZVdS )+� N)�suppress)�Path)� Coroutine)�ANTIVIRUS_MODE�ConfigValidationError�SystemConfig� UserConfig� Wordpress)� HookEvent)� LicenseCLN)�MessageType)�MessageSink� MessageSource�expect)� hosting_panel)� load_state�register_lock_file� save_state)�Scope�importer�recurring_check�system_packages_info)� check_lock)�IndependentAgentIDAPI)�DAY)�cli)�plugin)�_prepare_ai_bot_settings)�resolve_ai_bot_protection)� tls_check)�WPSite� WordpressSite)�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-processzwp-plugin-statszwp-license-reconvergez-/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.flagzimav.malwarelib.model� MalwareHit)�module�name�default�started_timestamp�returnc �| � t �t � d� � g S t � | � � S )z� Get malware hits cleaned since the given timestamp with lazy import fallback. Returns empty list if imav.malwarelib is not available. Nz;imav.malwarelib not available, returning empty cleaned hits)�_MalwareHit�logger�debug� cleaned_since)r1 s �V/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/plugins/wordpress.py�_get_cleaned_malware_hitsr9 _ s? � � �����I� � � � � ��$�$�%6�7�7�7� c � � e Zd Zej Zd� Zd� Zd� Zd� Z d� Z d� Zd� Zd� Z d ej fd �Zd%defd �Zd� Z eedee�� � d� � � Z eeddee�� � d� � � Z eedde�� � d� � � Zd� Zd� Zd� Zd� Z d� Z!d� Z" e#e$j% � � d� � � Z& e#e$j'