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 : inet.cpython-310.pyc
o x7�_� � @ s^ d Z ddlZddlZddlZejZejZdd� Zdd� Zdd� Z d d � Z dd� Zdd d�ZdS )z*Generic Internet address helper functions.� Nc C s. | t kr tj�|�S | tkrtj�|d�S t�)a Convert the textual form of a network address into its binary form. *family* is an ``int``, the address family. *text* is a ``str``, the textual address. Raises ``NotImplementedError`` if the address family specified is not implemented. Returns a ``bytes``. T)�AF_INET�dns�ipv4� inet_aton�AF_INET6�ipv6�NotImplementedError)�family�text� r �*/usr/lib/python3/dist-packages/dns/inet.py� inet_pton! s r c C s, | t kr tj�|�S | tkrtj�|�S t�)a0 Convert the binary form of a network address into its textual form. *family* is an ``int``, the address family. *address* is a ``bytes``, the network address in binary form. Raises ``NotImplementedError`` if the address family specified is not implemented. Returns a ``str``. )r r r � inet_ntoar r r )r �addressr r r � inet_ntop6 s r c C sN z t j�| � tW S ty& zt j�| d� tW Y S ty% t�w w )z�Determine the address family of a textual-form network address. *text*, a ``str``, the textual address. Raises ``ValueError`` if the address family cannot be determined from the input. Returns an ``int``. T)r r r r � Exceptionr r � ValueError�r r r r �af_for_addressK s ��r c C sf zt j�| �d }|dko|dkW S ty2 zt j�| d�d }|dkW Y S ty1 t�w w )z�Is the textual-form network address a multicast address? *text*, a ``str``, the textual address. Raises ``ValueError`` if the address family cannot be determined from the input. Returns a ``bool``. r �� �� T� )r r r r r r )r �firstr r r �is_multicasta s ��r c C sP z t j�| � W dS ty' zt j�| d� W Y dS ty& Y Y dS w w )z{Is the specified string an IPv4 or IPv6 address? *text*, a ``str``, the textual address. Returns a ``bool``. TF)r r r r r r r r r � is_addressw s ��r c C s� | \}}|du rt |�}|tkr||fS |tkrg|�d�}|dk r'||ddfS |d|� }||d d� }|�� rA||dt|�fS z ||dt�|�fW S tyf tj }tj |||d�^�^ }} }| Y S w td|� ���)aY Given a "high-level" address tuple, i.e. an (address, port) return the appropriate "low-level" address tuple suitable for use in socket calls. If an *af* other than ``None`` is provided, it is assumed the address in the high-level tuple is valid and has that af. If af is ``None``, then af_for_address will be called. N�%r � )�flagszunknown address family )r r r �find�isdigit�int�socket�if_nametoindex�AttributeError�AI_NUMERICHOST�getaddrinfor ) � high_tuple�afr �port�i�addrpart�scope�ai_flags�_�tupr r r �low_level_address_tuple� s* �r/ )N) �__doc__r! �dns.ipv4r �dns.ipv6r r r r r r r r/ r r r r �<module> s
Close