!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/usr/lib/python2.7/site-packages/tuned/exports/   drwxr-xr-x
Free 9.29 GB of 93.48 GB (9.94%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     controller.py (1.91 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
from . import interfaces
import inspect
import tuned.patterns

class ExportsController(tuned.patterns.Singleton):
    """
    Controls and manages object interface exporting.
    """

    def __init__(self):
        super(ExportsController, self).__init__()
        self._exporters = []
        self._objects = []
        self._exports_initialized = False

    def register_exporter(self, instance):
        """Register objects exporter."""
        self._exporters.append(instance)

    def register_object(self, instance):
        """Register object to be exported."""
        self._objects.append(instance)

    def _is_exportable_method(self, method):
        """Check if method was marked with @exports.export wrapper."""
        return inspect.ismethod(method) and hasattr(method, "export_params")

    def _is_exportable_signal(self, method):
        """Check if method was marked with @exports.signal wrapper."""
        return inspect.ismethod(method) and hasattr(method, "signal_params")

    def _export_method(self, method):
        """Register method to all exporters."""
        for exporter in self._exporters:
            args = method.export_params[0]
            kwargs = method.export_params[1]
            exporter.export(method, *args, **kwargs)

    def _export_signal(self, method):
        """Register signal to all exporters."""
        for exporter in self._exporters:
            args = method.signal_params[0]
            kwargs = method.signal_params[1]
            exporter.signal(method, *args, **kwargs)

    def _initialize_exports(self):
        if self._exports_initialized:
            return

        for instance in self._objects:
            for name, method in inspect.getmembers(instance, self._is_exportable_method):
                self._export_method(method)
            for name, method in inspect.getmembers(instance, self._is_exportable_signal):
                self._export_signal(method)

        self._exports_initialized = True

    def start(self):
        """Start the exports."""
        self._initialize_exports()
        for exporter in self._exporters:
            exporter.start()

    def stop(self):
        """Stop the exports."""
        for exporter in self._exporters:
            exporter.stop()

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0038 ]--