403Webshell
Server IP : 172.67.214.6  /  Your IP : 216.73.216.73
Web Server : LiteSpeed
System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : redwjova ( 1790)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /proc/self/root/opt/hc_python/lib/python3.12/site-packages/dns/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /proc/self/root/opt/hc_python/lib/python3.12/site-packages/dns/__pycache__/ipv4.cpython-312.pyc
�

���g�	��h�dZddlZddlmZddlZdedefd�Zdeeefdefd�Z	deeefdefd	�Z
y)
zIPv4 helper functions.�N)�Union�address�returnc�|�t|�dk7rtjj�d|d|d|d|dfzS)z�Convert an IPv4 address in binary form to text form.

    *address*, a ``bytes``, the IPv4 address in binary form.

    Returns a ``str``.
    �z%u.%u.%u.%ur���)�len�dns�	exception�SyntaxError)rs �7/opt/hc_python/lib/python3.12/site-packages/dns/ipv4.py�	inet_ntoarsD���7�|�q���m�m�'�'�'��G�A�J���
�G�A�J���
�K�K�K��textc�F�t|t�s|j�}n|}|jd�}t	|�dk7rt
jj�|D]f}|j�st
jj�t	|�dkDs�<|dtd�k(s�Nt
jj�	|D�cgc]
}t|���}}tjdg|���Scc}w#t$rt
jj�wxYw)z�Convert an IPv4 address in text form to binary form.

    *text*, a ``str`` or ``bytes``, the IPv4 address in textual form.

    Returns a ``bytes``.
    �.rrr�0�BBBB)�
isinstance�bytes�encode�splitrrr
r�isdigit�ord�int�struct�pack�	Exception)r�btext�parts�part�bs     r�	inet_atonr%'s����d�E�"����
�����K�K���E�
�5�z�Q���m�m�'�'�'����|�|�~��-�-�+�+�+��t�9�q�=�T�!�W��C��0��-�-�+�+�+��(�#(�)�5�4�S��Y�5��)��{�{�6�&�A�&�&��
*���(��m�m�'�'�'�(�s�	C<�
C7�C<�7C<�<$D c�z�tjjtjj|��S)z�Verify that *address* is a valid text form IPv4 address and return its
    canonical text form.

    *text*, a ``str`` or ``bytes``, the IPv4 address in textual form.

    Raises ``dns.exception.SyntaxError`` if the text is not valid.
    )r�ipv4rr%)rs r�canonicalizer(Cs(���8�8���c�h�h�0�0��6�7�7r)�__doc__r�typingr�
dns.exceptionrr�strrr%r(�rr�<module>r.sa��$�
���
L�u�
L��
L�(�E�#�u�*�%�(�%�(�8
8�u�S�%�Z�(�
8�S�
8r

Youez - 2016 - github.com/yon3zu
LinuXploit