__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

aptanhua@216.73.217.152: ~ $
3

�b�W&�@s~dZddlZddlZddlZddlZddlZddlZddlm	Z	m
Z
mZGdd�dejj
�ZGdd�dejj
�ZGd	d
�d
ejj
�ZGdd�de�ZGd
d�de�ZGdd�de�ZGdd�de�Zejjd�Zejjd�Zejjd�Zejjd�Zejjd�Zejjd�ZedededededediZeZdZd Z d!Z!d"Z"dd#d$efd%d&�Z#dd#d$efd'd(�Z$d/d)d*�Z%d+d,�Z&d-d.�Z'dS)0zDNS TSIG support.�N�)�long�string_types�	text_typec@seZdZdZdS)�BadTimez8The current time is not within the TSIG's validity time.N)�__name__�
__module__�__qualname__�__doc__�rr�/usr/lib/python3.6/tsig.pyrsrc@seZdZdZdS)�BadSignaturez#The TSIG signature fails to verify.N)rrr	r
rrrrr
 sr
c@seZdZdZdS)�	PeerErrorz;Base class for all TSIG errors generated by the remote peerN)rrr	r
rrrrr%src@seZdZdZdS)�
PeerBadKeyz$The peer didn't know the key we usedN)rrr	r
rrrrr*src@seZdZdZdS)�PeerBadSignaturez*The peer didn't like the signature we sentN)rrr	r
rrrrr/src@seZdZdZdS)�PeerBadTimez%The peer didn't like the time we sentN)rrr	r
rrrrr4src@seZdZdZdS)�PeerBadTruncationz=The peer didn't like amount of truncation in the TSIG we sentN)rrr	r
rrrrr9srzHMAC-MD5.SIG-ALG.REG.INTz	hmac-sha1zhmac-sha224zhmac-sha256zhmac-sha384zhmac-sha512ZSHA224ZSHA256ZSHA384ZSHA512ZSHA1ZMD5����FTc
Cs�t|t�r|j�}t|�\}
}|r\tj||d�}	t|�}|dkr\|	jtj	d|��|	j|�tj	d|�}|	j|�|	j|dd��|r�|	j|j
��|	jtj	dtjj
��|	jtj	dd��|td�}|d?td�@}|td	�@}tj	d
|||�}|
|}t|�}|dk�rtd��tj	d||�|}|�rF|	j|�|	j|�n
|	j|�|	j�}tj	dt|��}|||||}|
�r�tj||d�}	t|�}|	jtj	d|��|	j|�nd}	|||	fS)
ajReturn a (tsig_rdata, mac, ctx) tuple containing the HMAC TSIG rdata
    for the input parameters, the HMAC MAC calculated by applying the
    TSIG signature algorithm, and the TSIG digest context.
    @rtype: (string, string, hmac.HMAC object)
    @raises ValueError: I{other_data} is too long
    @raises NotImplementedError: I{algorithm} is not supported
    )�	digestmodrz!H�Nz!I� i��l��z!HIHz TSIG Other Data is > 65535 bytesz!HH)�
isinstancer�encode�
get_algorithm�hmac�new�len�update�struct�pack�
to_digestable�dnsZ
rdataclass�ANYr�
ValueErrorZdigest)�wire�keyname�secret�time�fudge�original_id�error�
other_data�request_mac�ctx�multi�first�	algorithmZalgorithm_namerZml�idZ	long_time�
upper_time�
lower_timeZtime_macZpre_macZolZpost_mac�macZmpack�
tsig_rdatarrr�signWsN





r9c

Cs t||||||||||	|
||�
S)N)r9)
r'r(r)r*r+r,r-r.r/r0r1r2r3rrr�hmac_md5�sr:cCs�tjd|dd��\}|dkr&tjj�|d8}|dd�tjd|�|d|�}|}
tjj||
�\}}|
|}
tjd||
|
d��\}}}}|td�d>|td�}|
d7}
||
|
|�}|
|7}
tjd||
|
d	��\}}}|
d	7}
||
|
|�}|
|7}
|
||k�r tjj�|dk�rv|t	k�r:t
�n<|tk�rJt�n,|t
k�rZt�n|tk�rjt�ntd
|��||}||}||k�s�||k�r�t�t|||||||||||	|
|�
\}}}||k�r�t�|S)a*Validate the specified TSIG rdata against the other input parameters.

    @raises FormError: The TSIG is badly formed.
    @raises BadTime: There is too much time skew between the client and the
    server.
    @raises BadSignature: The TSIG signature did not validate
    @rtype: hmac.HMAC objectz!H�
�rrz!HIHHrz!HHH�zunknown TSIG error code %d)r!�unpackr$�	exception�	FormErrorr"�name�	from_wirer�BADSIGr�BADKEYr�BADTIMEr�BADTRUNCrrrr9r
)r'r(r)Znowr/Z
tsig_startr8�
tsig_rdlenr0r1r2ZadcountZnew_wire�current�aname�usedr5r6r+�mac_sizer*r7r,r-Z
other_sizer.Ztime_lowZ	time_highZjunkZour_macrrr�validate�sN
$ 





rLcCs\t|t�rtjj|�}y|j�tjjt|fSt	k
rVt
dt|�d��YnXdS)z�Returns the wire format string and the hash module to use for the
    specified TSIG algorithm

    @rtype: (string, hash constructor)
    @raises NotImplementedError: I{algorithm} is not supported
    zTSIG algorithm z is not supportedN)rrr$rA�	from_textr#�hashZhashes�_hashes�KeyError�NotImplementedError�str)r3rrrr�s
rcCsz|}tjj||�\}}||}tjd|||d��\}}}}	|d7}||||	�}
||	7}|||krrtjj�||
fS)zlReturn the tsig algorithm for the specified tsig_rdata
    @raises FormError: The TSIG is badly formed.
    z!HIHHr;)r$rArBr!r>r?r@)r'r8rGrHrIrJr5r6r+rKr7rrr�get_algorithm_and_mac�s rS)NFT)(r
rr!Z
dns.exceptionr$Zdns.hashZdns.rdataclassZdns.nameZ_compatrrrr?ZDNSExceptionrr
rrrrrrArMZHMAC_MD5Z	HMAC_SHA1ZHMAC_SHA224ZHMAC_SHA256ZHMAC_SHA384ZHMAC_SHA512rOZdefault_algorithmrCrDrErFr9r:rLrrSrrrr�<module>sL5
5

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 585 B 0644
__init__.cpython-36.pyc File 585 B 0644
_compat.cpython-36.opt-1.pyc File 1.27 KB 0644
_compat.cpython-36.pyc File 1.27 KB 0644
dnssec.cpython-36.opt-1.pyc File 10.59 KB 0644
dnssec.cpython-36.pyc File 10.66 KB 0644
e164.cpython-36.opt-1.pyc File 2.6 KB 0644
e164.cpython-36.pyc File 2.6 KB 0644
edns.cpython-36.opt-1.pyc File 4.3 KB 0644
edns.cpython-36.pyc File 4.3 KB 0644
entropy.cpython-36.opt-1.pyc File 3.21 KB 0644
entropy.cpython-36.pyc File 3.21 KB 0644
exception.cpython-36.opt-1.pyc File 3.61 KB 0644
exception.cpython-36.pyc File 3.82 KB 0644
flags.cpython-36.opt-1.pyc File 2.12 KB 0644
flags.cpython-36.pyc File 2.12 KB 0644
grange.cpython-36.opt-1.pyc File 904 B 0644
grange.cpython-36.pyc File 962 B 0644
hash.cpython-36.opt-1.pyc File 475 B 0644
hash.cpython-36.pyc File 475 B 0644
inet.cpython-36.opt-1.pyc File 2.26 KB 0644
inet.cpython-36.pyc File 2.26 KB 0644
ipv4.cpython-36.opt-1.pyc File 1.33 KB 0644
ipv4.cpython-36.pyc File 1.33 KB 0644
ipv6.cpython-36.opt-1.pyc File 2.92 KB 0644
ipv6.cpython-36.pyc File 2.92 KB 0644
message.cpython-36.opt-1.pyc File 31.86 KB 0644
message.cpython-36.pyc File 31.86 KB 0644
name.cpython-36.opt-1.pyc File 26.49 KB 0644
name.cpython-36.pyc File 26.49 KB 0644
namedict.cpython-36.opt-1.pyc File 2.79 KB 0644
namedict.cpython-36.pyc File 2.79 KB 0644
node.cpython-36.opt-1.pyc File 5.4 KB 0644
node.cpython-36.pyc File 5.4 KB 0644
opcode.cpython-36.opt-1.pyc File 2 KB 0644
opcode.cpython-36.pyc File 2 KB 0644
query.cpython-36.opt-1.pyc File 13.43 KB 0644
query.cpython-36.pyc File 13.43 KB 0644
rcode.cpython-36.opt-1.pyc File 2.43 KB 0644
rcode.cpython-36.pyc File 2.43 KB 0644
rdata.cpython-36.opt-1.pyc File 14.02 KB 0644
rdata.cpython-36.pyc File 14.02 KB 0644
rdataclass.cpython-36.opt-1.pyc File 2.45 KB 0644
rdataclass.cpython-36.pyc File 2.45 KB 0644
rdataset.cpython-36.opt-1.pyc File 9.29 KB 0644
rdataset.cpython-36.pyc File 9.33 KB 0644
rdatatype.cpython-36.opt-1.pyc File 4.4 KB 0644
rdatatype.cpython-36.pyc File 4.4 KB 0644
renderer.cpython-36.opt-1.pyc File 9.51 KB 0644
renderer.cpython-36.pyc File 9.6 KB 0644
resolver.cpython-36.opt-1.pyc File 34.94 KB 0644
resolver.cpython-36.pyc File 34.94 KB 0644
reversename.cpython-36.opt-1.pyc File 2.53 KB 0644
reversename.cpython-36.pyc File 2.53 KB 0644
rrset.cpython-36.opt-1.pyc File 5.12 KB 0644
rrset.cpython-36.pyc File 5.12 KB 0644
set.cpython-36.opt-1.pyc File 7.72 KB 0644
set.cpython-36.pyc File 7.72 KB 0644
tokenizer.cpython-36.opt-1.pyc File 14.17 KB 0644
tokenizer.cpython-36.pyc File 14.17 KB 0644
tsig.cpython-36.opt-1.pyc File 6.06 KB 0644
tsig.cpython-36.pyc File 6.06 KB 0644
tsigkeyring.cpython-36.opt-1.pyc File 1.03 KB 0644
tsigkeyring.cpython-36.pyc File 1.03 KB 0644
ttl.cpython-36.opt-1.pyc File 1.29 KB 0644
ttl.cpython-36.pyc File 1.29 KB 0644
update.cpython-36.opt-1.pyc File 6.93 KB 0644
update.cpython-36.pyc File 6.93 KB 0644
version.cpython-36.opt-1.pyc File 450 B 0644
version.cpython-36.pyc File 450 B 0644
wiredata.cpython-36.opt-1.pyc File 2.27 KB 0644
wiredata.cpython-36.pyc File 2.27 KB 0644
zone.cpython-36.opt-1.pyc File 29.43 KB 0644
zone.cpython-36.pyc File 29.43 KB 0644