Edit File: update_hooks.cpython-311.opt-1.pyc
� ��\h� � �J � d dl Z d dlZd dlmZ d dlmZmZ d dlmZm Z d dl mZmZm Z d dlmZ d dlmZ d dlmZmZ d d lmZ d d lmZ ddlmZ e j e� � Zd ZdZed� � � Z ed� � � Z!d� Z"defd�Z#ed� � � Z$ e � � d� � � Z%d� Z&dS )� N)�Path)� web_server�svcctl)�ModsecVendorsError�PanelException)�atomic_rewrite� file_hash�log_error_and_ignore)�files)�Modsec)�modsec_app_version_detector�waf_rules_configurator)�use_modsec_lock)�HackerTrapHitsSaver� )�HostingPanelz*_Disable_WP_Redirect.confzSecRuleRemoveById 33355 33357c � �< K � |r�t � � }|� � � ru|� � � � d {V �� t | |� � � d {V �� t j � � � d {V �� t � � � d {V �� t � � � d {V �� d S d S d S �N)r �is_installed�apply_modsec_files_update�_update_iprecordr �init�0_update_account_compromise_prevention_rule_state�_update_app_based_rules)�_� is_updated�hps �U/opt/imunify360/venv/lib/python3.11/site-packages/im360/subsys/panels/update_hooks.py�update_vendorsr s� � � � �� ,� �^�^�� �?�?��� ,��.�.�0�0�0�0�0�0�0�0�0� #�1�j�1�1�1�1�1�1�1�1�1�%�*�,�,�,�,�,�,�,�,�,�B�D�D�D�D�D�D�D�D�D�)�+�+�+�+�+�+�+�+�+�+�+� ,� ,� ,� ,� c � �2 K � t | |� � � d {V ��S r )r )r r s r �update_iprecordr"