403Webshell
Server IP : 209.205.66.10  /  Your IP : 216.73.216.173
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User :  ( 1006)
PHP Version : 8.5.8
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/__pycache__/unohelper.cpython-310.pyc
o

BYZc�*�@sXddlZddlZddlZddlZddlmZmZmZddlm	Z	m
Z
ddlmZ
ddlmZddlmZmZmZddlmZmZmZmZm Z!m"Z#m$Z%m&Z'dd�Z(d	d
�Z)dd�Z*d
d�Z+Gdd�d�Z,Gdd�d�Z-Gdd�d�Z.dd�Z/dd�Z0dd�Z1dd�Z2dd�Z3dd �Z4iZ5d!d"�Z6Gd#d$�d$e�Z7Gd%d&�d&e
e7�Z8Gd'd(�d(eee7�Z9dS))�N)�
XTypeProvider�XSingleComponentFactory�XServiceInfo)�RuntimeException�XCurrentContext)�ALL)�IN�OUT�INOUT)�	MAYBEVOID�BOUND�CONSTRAINED�	TRANSIENT�READONLY�MAYBEAMBIGUOUS�MAYBEDEFAULT�	REMOVABLEcCs4d}|tkr
d}|S|tkrd}|S|tkrd}|S)Nz[]z[inout]z[out]z[in])�PARAM_MODE_INOUT�PARAM_MODE_OUT�
PARAM_MODE_IN��mode�ret�r�+/usr/lib/python3/dist-packages/unohelper.py�_mode_to_str,s��rcCs�d}t|@r
|d}t|@r|d}t|@r|d}t|@r"|d}t|@r*|d}t|@r2|d}t|@r:|d}t|@rB|d	}|��S)
N�z
removable z
maybedefault zmaybeambiguous z	readonly z
transient zconstrained zbound z
maybevoid )	�PROP_ATTR_REMOVABLE�PROP_ATTR_MAYBEDEFAULT�PROP_ATTR_MAYBEAMBIGUOUS�PROP_ATTR_READONLY�PROP_ATTR_TRANSIENT�PROP_ATTR_CONSTRAINED�PROP_ATTR_BOUND�PROP_ATTR_MAYBEVOID�rstriprrrr�_propertymode_to_str6s$r&c
Cst|tj�s$t|tj�s$t|tj�s$t|tj�s$t|tj�s$t|tj�r/|�t	|�d�dSt�
�}|j�d|�}|�d�t
|d�rW|��}|D]}|�d|d�qJn|�d�|�d�t
|d�rz|��}|D]}|�d|jd�qln|�d�|�|�}|�t�}|�d	�|D]K}|�d|jjd
|j�|j}	|j}
|�d�tdt|	��D]#}|dkr�|�d
�|�t|
|j�d
|	|jd
|
|j�q�|�d�q�|�t�}|�d�|D]}|�dt|j �d|jjd
|jd�q�dS)N�
z com.sun.star.beans.IntrospectionzSupported services:
�getSupportedServiceNamesz  z
  unknown
zInterfaces:
�getTypesz	Methods:
� z( rz, z )
zProperties:
z  (z) )!�
isinstance�uno�Type�Char�Bool�ByteSequence�Enum�Any�write�str�getComponentContext�ServiceManager�createInstanceWithContext�hasattrr(r)�typeName�inspect�
getMethods�METHOD_CONCEPT_ALL�
ReturnType�Name�ParameterTypes�ParameterInfos�range�lenr�aMode�aName�
getProperties�PROPERTY_CONCEPT_ALLr&�
Attributes)
�obj�out�ctx�
introspection�names�ii�
interfaces�access�methods�args�infos�i�propsrrrr:Js`
�
�
�
�
��

�


�





2

0�r:cCst|||�S�N)�_FactoryHelper_��clazz�implementationName�serviceNamesrrr�createSingleServiceFactory{sr[c@�eZdZdd�ZdS)�_ImplementationHelperEntrycCs||_||_dSrU)�ctorrZ)�selfr^rZrrr�__init__�
z#_ImplementationHelperEntry.__init__N��__name__�
__module__�__qualname__r`rrrrr]~�r]c@�<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�ImplementationHelpercCs
i|_dSrU)�impls�r_rrrr`��
zImplementationHelper.__init__cCst||�|j|<dSrU)r]ri)r_r^rYrZrrr�addImplementation�sz&ImplementationHelper.addImplementationcCsLt|j���D]}d|dd}|�|�}|djD]}|�|�qqdS)N�/r�
/UNO/SERVICES�)�listri�items�	createKeyrZ)r_�regKey�smgrrS�keyName�key�serviceNamerrr�writeRegistryInfo�s
�z&ImplementationHelper.writeRegistryInfocCs4|j�|d�}|durt|dd��t|j||j�S�Nz is unknown)ri�getrr[r^rZ)r_rYrsrt�entryrrr�getComponentFactory�sz(ImplementationHelper.getComponentFactorycCs*|j�|d�}|durt|dd��|jSry�rirzrrZ)r_rYr{rrrr(�sz-ImplementationHelper.getSupportedServiceNamescCs.|j�|d�}|durt|dd��||jvSryr})r_rYrwr{rrr�supportsService�s
z$ImplementationHelper.supportsServiceN)	rcrdrer`rlrxr|r(r~rrrrrh�srhc@r\)�ImplementationEntrycC�||_||_||_dSrU)�implName�supportedServicesrX)r_r�r�rXrrrr`��
zImplementationEntry.__init__Nrbrrrrr�rfrcCs<|D]}d|jd}|�|�}|jD]}|�|�qqdS)Nrmrn)r�rrr�)rtrs�
seqEntriesr{rurvrwrrr�writeRegistryInfoHelper�s

��r�cC�
t�|�S)z,returns a file-url for the given system path)�pyuno�systemPathToFileUrl)�
systemPathrrrr���
r�cCr�)zVreturns a system path (determined by the system, the python interpreter is running on))r��fileUrlToSystemPath)�urlrrrr��r�r�cCst�||�S)z0returns an absolute file url from the given urls)r��
absolutize)�path�relativeUrlrrrr��sr�cCs,|D]}|j|krt|j||j�SqdSrU)r�r[rXr�)rYrtrsr��xrrr�getComponentFactoryHelper�s

��r�cCs�|j}|�||�}|�d|�}tjdkptjdk}tjdk}|D]S}	|�d|�}
|
�ddd�|sA|	�d	�rA|r=|	d
}	n|	d}	|�||	|
�|
�	�}|�
d�}|��}
|j}|
D]}|�t
|�d
��d|	|�}|�|�qZ|
��q dS)Nz0com.sun.star.registry.ImplementationRegistration�nt�dos�darwinz$com.sun.star.registry.SimpleRegistryrrroz.unoz.dylibz.so�IMPLEMENTATIONSrm)r6r7�os�name�sys�platform�open�endswith�registerImplementation�
getRootKey�openKey�getKeyNames�activate�max�split�insert�close)�toBeExtendedContext�contextRuntime�
componentUrls�
loaderNamert�loader�implReg�isWin�isMac�componentUrl�reg�rootKey�implementationKey�	implNames�extSMGRr��facrrr�addComponentsToContext�s,



�r�c
Cs�d}|jtvrt|j}|Si}t|jj�}t|�dkr@|��}|j}t�|�r.d||j<nt|�dkr:|t|�}t|�dkst|�	��}g}|D]}t�
|�}	|�|	�qJt|�}|t|j<|S)Nr)
�	__class__�_g_typeTablerp�	__bases__rB�popr,�isInterface�__pyunointerface__�keys�
getTypeByName�append�tuple)
r_rrL�traverse�item�bases�lst�typesr��trrr�_unohelper_getHandle�s,

�
�	

r�c@seZdZdd�Zdd�ZdS)�BasecCst|�SrU)r�rjrrrr)�sz
Base.getTypescCsdS)Nrrrjrrr�getImplementationId�szBase.getImplementationIdN)rcrdrer)r�rrrrr��sr�c@s eZdZdZdd�Zdd�ZdS)�CurrentContextz�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
    cCs||_||_dSrU)�hashMap�
oldContext)r_r�r�rrrr`razCurrentContext.__init__cCs.||jvr
|j|S|jdur|j�|�SdSrU)r�r��getValueByName)r_r�rrrr�	s



zCurrentContext.getValueByNameN)rcrdre�__doc__r`r�rrrrr�sr�c@rg)rVcCr�rUrW)r_rXrYrZrrrr`r�z_FactoryHelper_.__init__cC�|jSrU)rYrjrrr�getImplementationName�z%_FactoryHelper_.getImplementationNamecCs
||jvSrU�rZ)r_�ServiceNamerrrr~rkz_FactoryHelper_.supportsServicecCr�rUr�rjrrrr( r�z(_FactoryHelper_.getSupportedServiceNamescCs
|�|�SrU�rX)r_�contextrrrr7#rkz)_FactoryHelper_.createInstanceWithContextcCs|j|g|�R�SrUr�)r_rQr�rrr�%createInstanceWithArgumentsAndContext&sz5_FactoryHelper_.createInstanceWithArgumentsAndContextN)	rcrdrer`r�r~r(r7r�rrrrrVsrV):r,r�r�r��com.sun.star.langrrr�com.sun.star.unorr� com.sun.star.beans.MethodConceptrr<�"com.sun.star.beans.PropertyConceptrF�!com.sun.star.reflection.ParamModerrr	rr
r�$com.sun.star.beans.PropertyAttributerr$rr#r
r"rr!rr rrrrrrrr&r:r[r]rhrr�r�r�r�r�r�r�r�r�r�rVrrrr�<module>s8(

1"

Youez - 2016 - github.com/yon3zu
LinuXploit