0x1998 - MANAGER
Düzenlenen Dosya: update_hooks.cpython-311.pyc
� �·i � �V � 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 d dlmZ dd lmZ e j e� � ZdZ dZ!ed� � � 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)�is_force_use_coraza)�use_modsec_lock)�HackerTrapHitsSaver� )�HostingPanelz*_Disable_WP_Redirect.confzSecRuleRemoveById 33355 33357c � �b K � |r�t � � }|� � � r�|� � � � d {V �� t | |� � � d {V �� t j � � � d {V �� t � � � d {V �� t � � � d {V �� t j � � 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_rulesr �graceful_restart_sync)�_� 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$ 2 s( � � � �!�!�Z�0�0�0�0�0�0�0�0�0r"