403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.6
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u119869361 ( 9600978)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/urllib3/util/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/urllib3/util/__pycache__/ssl_match_hostname.cpython-313.pyc
�

x8j�����SrSSKJr SSKrSSKrSSKrSSKJrJr \R(aSSK	J
r
 Sr"SS	\5r
S
SS
jjrSSjrSSSjjrg)zHThe match_hostname() function from Python 3.5, essential when using SSL.�)�annotationsN)�IPv4Address�IPv6Address�)�_TYPE_PEER_CERT_RET_DICTz3.5.0.1c��\rSrSrSrg)�CertificateError��N)�__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r��A/usr/lib/python3/dist-packages/urllib3/util/ssl_match_hostname.pyr	r	s��rr	c�8�/nU(dgURS5nUSnUSSnURS5nXr:�a[S[U5-5eU(d*[	UR5UR5:H5$US:XaUR
S5 O�URS	5(dURS	5(a&UR
[R"U55 O5UR
[R"U5RS
S55 UH(nUR
[R"U55 M* [R"SS
RU5-S-[R5n	U	RU5$)z`Matching according to RFC 6125, section 6.4.3

http://tools.ietf.org/html/rfc6125#section-6.4.3
F�.rrN�*z,too many wildcards in certificate DNS name: z[^.]+zxn--z\*z[^.]*z\Az\.z\Z)�split�countr	�repr�bool�lower�append�
startswith�re�escape�replace�compile�join�
IGNORECASE�match)
�dn�hostname�
max_wildcards�pats�parts�leftmost�	remainder�	wildcards�frag�pats
          r�_dnsname_matchr.sN���D�
��
�H�H�T�N�E��Q�x�H��a�b�	�I����s�#�I�� �
�:�T�"�X�E�
�	
�
��B�H�H�J�(�.�.�"2�2�3�3�
�3��	
���G��	�	�	�V�	$�	$��(;�(;�F�(C�(C�
	
���B�I�I�h�'�(�	
���B�I�I�h�'�/�/��w�?�@������B�I�I�d�O�$��
�*�*�U�U�Z�Z��-�-��5�r�}�}�
E�C��9�9�X��rc��[R"UR55n[URUR:H5$)amExact matching of IP addresses.

RFC 9110 section 4.3.5: "A reference identity of IP-ID contains the decoded
bytes of the IP address. An IP version 4 address is 4 octets, and an IP
version 6 address is 16 octets. [...] A reference identity of type IP-ID
matches if the address is identical to an iPAddress value of the
subjectAltName extension of the certificate."
)�	ipaddress�
ip_address�rstripr�packed)�ipname�host_ip�ips   r�_ipaddress_matchr7Ps2��
�	�	�f�m�m�o�	.�B���	�	�W�^�^�+�,�,rc�p�U(d[S5eSU;a)[R"USURS55nO[R"U5n/nUR	SS5nUHaupgUS:Xa(Uc[Xq5(a gUR
U5 M3US:XdM;Ub[Xs5(a gUR
U5 Mc U(aZUcWU(dPUR	SS5H:nUH1upgUS	:XdM
[Xq5(a  gUR
U5 M3 M< [U5S
:�a0[SU<SS
R[[U55<35e[U5S
:Xa[SU<SUS<35e[S5e![a SnGNZf=f)aVerify that *cert* (in decoded format as returned by
SSLSocket.getpeercert()) matches the *hostname*.  RFC 2818 and RFC 6125
rules are followed, but IP addresses are not accepted for *hostname*.

CertificateError is raised on failure. On success, the function
returns nothing.
ztempty or no certificate, match_hostname needs a SSL socket or SSL context with either CERT_OPTIONAL or CERT_REQUIRED�%N�subjectAltNamer�DNSz
IP Address�subject�
commonNamerz	hostname z doesn't match either of z, z doesn't match rz/no appropriate subjectAltName fields were found)
�
ValueErrorr0r1�rfind�getr.rr7�lenr	r!�mapr)	�certr%�hostname_checks_common_namer5�dnsnames�san�key�value�subs	         r�match_hostnamerJ_s�����
-�
�	
�

��(�?��*�*�8�4I�h�n�n�S�6I�+J�K�G��*�*�8�4�G�
�H�'+�x�x�0@�"�'E�C��
���%�<���>�%�#B�#B���O�O�E�"�
�L�
 ��"�'7��'G�'G���O�O�E�"��#�w��x��8�8�I�r�*�C�!�
���,�&�%�e�6�6���O�O�E�*�	"�+��8�}�q���,4�d�i�i��D�(�@S�6T�
V�
�	
�

�X��!�	���8�,�o�h�q�k�_�U�V�V��P�Q�Q��G�����s�.F%�F%�%F5�4F5)r)r$z
typing.Anyr%�strr&�int�returnztyping.Match[str] | None | bool)r4rKr5zIPv4Address | IPv6AddressrMr)F)rCz_TYPE_PEER_CERT_RET_DICT | Noner%rKrDrrM�None)�__doc__�
__future__rr0r�typingrr�
TYPE_CHECKING�ssl_r�__version__r>r	r.r7rJrrr�<module>rUs���N�#��	�
�.�	���.���	�z�	�
9:�5��5�!�5�25�5�$�5�p-�$).�@R�
)�@R��@R�"&�@R�
�	@Rr

Youez - 2016 - github.com/yon3zu
LinuXploit