403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.7/site-packages/isc/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.7/site-packages/isc/__pycache__/coverage.cpython-37.pyc
B

��e]�&�@s�ddlmZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZdZddl
mZmZmZmZmZmZdd�Zdad	d
�Zdd�Zd
d�Zddd�Zdd�Zdd�ZdS)�)�print_functionN)�defaultdictzdnssec-coverage)�dnskey�	eventlist�keydict�keyevent�keyzone�utilscOst||�t�d�dS)N�)�print�sys�exit)�args�kwargs�r�/usr/lib/python3.7/coverage.py�fatals
rTcOsJd|kr|d}|�dd�nd}tr,dan|r8td�|rFt||�dS)zuoutput text, adding a vertical space this is *not* the first
    first section being printed since a call to vreset()�skipNTF�)�pop�
_firstliner)rrrrrr�output'srcCsdadS)zreset vertical spacingTN)rrrrr�vreset8srcCs�|��}yt|�Stk
r$YnXt�d�}|�|�}|sJtd|��|��\}}t|�}|��}|�d�rx|dS|�d�r�|dS|�d�r�|dS|�d	�r�|d
S|�d�r�|dS|�d
�r�|dS|�d�r�|Std|��dS)z� convert a formatted time (e.g., 1y, 6mo, 15mi, etc) into seconds
    :param s: String with some text representing a time interval
    :return: Integer with the number of seconds in the time interval
    z([0-9][0-9]*)\s*([A-Za-z]*)zCannot parse %s�yi�3��moi�'�wi�:	�di�Q�hi�mi�<�szInvalid suffix %sN)	�strip�int�
ValueError�re�compile�match�groups�lower�
startswith)r �r�m�nZunitrrr�
parse_timeAs6








r-cCs�|}|r"tj�|�r"t�|tj�s|tjd}|s8tjj}xB|�tj�D]2}tj�	||�}tj�|�rtt�|tj�rtPd}qFW|S)a1 find the location of a specified command.  if a default is supplied
    and it works, we use it; otherwise we search PATH for a match.
    :param command: string with a command to look for in the path
    :param default: default location to use
    :return: detected location for the desired command
    �PATHN)
�os�path�isfile�access�X_OK�environ�defpath�split�pathsep�join)Zcommand�defaultZfpathr0Z	directoryrrr�set_pathks
r:c	
CsDtdtj�t�d�d��}tjtddd�}|j	dt
ddd	d
�|j	ddd
t
ddd�|j	ddt
ddd�|j	ddt
ddd�|j	ddt
ddd�|j	dddt
d dd�|j	d!d"|t
d#dd�|j	d$d%t
d&d'dd(�|j	d)d*d+d,d-d.�|j	d/d0d+d,d1d.�|j	d2d3d4d+d,d5d.�|j	d6d7d8tjd9�|��}|j
�rJ|j�rJtd:�n*|j
�sZ|j�rn|j
�rfd;nd<|_nd|_|j�r�t|j�d=k�r�td>�d?d@�|jD�|_y|j�r�t|j�}||_Wntk
�r�YnXy|j�r�t|j�}||_Wntk
�rYnXy|j�r(t|j�}||_Wntk
�r@YnXy<|j�r||j}t|j�}|dAk�rnd|_nt��||_Wntk
�r�YnX|j�r�|j�r�|S|j�r*|j�r*y:t|jdA|j|j�}|j�p�|j|_|j�p�|j|_Wn4tk
�r(}ztdB|j|�Wdd}~XYnX|j�s@tdC�dD|_|S)Ez8Read command line arguments, set global 'args' structureznamed-compilezoneZsbinz: checks future zDNSKEY coverage for a zone)�description�zone�*Nz5zone(s) to check(default: all zones in the directory))�type�nargsr9�helpz-Kr0�.z&a directory containing keys to process�dir)�destr9r>r@�metavarz-f�filenamezzone master file�file)rCr>r@rDz-m�maxttlzthe longest TTL in the zone(s)�timez-d�keyttlzthe DNSKEY TTLz-r�resignZ1944000z:the RRSIG refresh interval in seconds [default: 22.5 days]z-c�compilezonezpath to 'named-compilezone'z-l�
checklimit�0zDLength of time to check for DNSSEC coverage [default: 0 (unlimited)])rCr>r9r@rDz-z�no_ksk�
store_trueFz#Only check zone-signing keys (ZSKs))rC�actionr9r@z-k�no_zskz"Only check key-signing keys (KSKs)z-Dz--debugZ
debug_modezTurn on debugging outputz-vz	--version�version)rPrRz)ERROR: -z and -k cannot be used together.ZKSKZZSKr
z)ERROR: -f can only be used with one zone.cSs4g|],}t|�dkr,|ddkr,|dd�n|�qS)r
���rAN)�len)�.0�xrrr�
<listcomp>�szparse_args.<locals>.<listcomp>rz"Unable to load zone data from %s: z�WARNING: Maximum TTL value was not specified.  Using 1 week
	 (604800 seconds); re-run with the -m option to get more
	 accurate results.i�:	) r:r/r0r8r	�prefix�argparse�ArgumentParser�prog�add_argument�strrR�
parse_argsrQrNr�keytyperErTr<rGr-r#rIrJrLrHrrK�	Exceptionrr)	rK�parserrr+�kr*Zlimr<�errrr^�s�



















"r^c
Cspt�}td�yt|j|j|jd�}Wn2tk
rX}ztdt|��Wdd}~XYnXx<|D]4}|�	t
�|jr�|�t
�q`|�t
|j
|j�q`Wt
d�t�yt|�}Wn2tk
r�}ztdt|��Wdd}~XYnXd}|j�s|�d|j|jt
��sXd}nJxH|jD]>}y|�||j|jt
��s6d}Wnt
d|�YnX�qWt�|�rfd	nd
�dS)Nz;PHASE 1--Loading keys to check for internal timing problems)r0ZzonesrIz'ERROR: Unable to build key dictionary: z9PHASE 2--Scanning future key events for coverage failuresz#ERROR: Unable to build event list: FTz&ERROR: Coverage check failed for zone r
r)r^rrr0r<rIr`rr]Zcheck_prepubr�sepZ
check_postpubrGrJrrZcoverager_rLrr
)rZkdrc�keyZelist�errorsr<rrr�main�s:"

"
rg)N)Z
__future__rr/rrYZglobr$rHZcalendarZpprint�collectionsrr[Ziscrrrrrr	rrrrr-r:r^rgrrrr�<module>s& 	*
x

Youez - 2016 - github.com/yon3zu
LinuXploit