⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.24
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
python3.9
/
site-packages
/
dns
/
__pycache__
/
View File Name :
ipv4.cpython-39.opt-1.pyc
a Me @ sd d Z ddlZddlmZ ddlZeedddZeeef eddd Z eeef edd dZ dS )zIPv4 helper functions. N)Union)addressreturnc C s4 t | dkrtjjd| d | d | d | d f S )zConvert 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 )lendns exceptionSyntaxError)r r ,/usr/lib/python3.9/site-packages/dns/ipv4.py inet_ntoa s r )textr c C s t | ts| }n| }|d}t|dkr6tjj|D ]8}| sNtjjt|dkr:|d t dkr:tjjq:z"dd |D }t jdg|R W S ty tjjY n0 d S ) zConvert an IPv4 address in text form to binary form. *text*, a ``str`` or ``bytes``, the IPv4 address in textual form. Returns a ``bytes``. .r r r 0c S s g | ]}t |qS r )int).0partr r r
= zinet_aton.
.
ZBBBBN) isinstancebytesencodesplitr r r r isdigitordstructpack Exception)r Zbtextpartsr br r r inet_aton' s r# c C s t jt j| S )zVerify 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 Zipv4r r# )r r r r canonicalizeC s r$ )__doc__r typingr Z dns.exceptionr r strr r# r$ r r r r
s