CasperSecurity

Current Path : /proc/self/root/lib/python3/dist-packages/softwareproperties/__pycache__/
Upload File :
Current File : //proc/self/root/lib/python3/dist-packages/softwareproperties/__pycache__/AptAuth.cpython-310.pyc

o

U�7e�@s�ddlmZddlZddlZddlZddlZddlZddlZddlZddlm	Z	ejZ
dd�ZeZed�ed�ed�ed	�ed
�Gdd�d�Z
dS)
�)�print_functionN)�PIPEcCs|S�N�)�err�</usr/lib/python3/dist-packages/softwareproperties/AptAuth.py�dummy$srz;Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>z:Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>zBUbuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>zAUbuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>zBUbuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com>c@s>eZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�ZdS)�AptAuth�/cCsz||_t��|_tj�|jd�|_t|jd��}|�	d|j�Wd�n1s*wY|jtj
d<t�|j
�dS)Nzapt.conf�wz
DIR "%s";
�
APT_CONFIG)�rootdir�tempfile�mkdtemp�tmpdir�os�path�join�aptconf�open�write�environ�atexit�register�_cleanup_tmpdir)�selfr
�frrr�__init__/s
�zAptAuth.__init__cCst�|j�dSr)�shutil�rmtreer)rrrrr8szAptAuth._cleanup_tmpdirc	Cs�gd�}g}tj|ttdd�}d}|j��D]8}|�d�}|ddvr'|d}|dd	kr=|d
}tj�t	|d���
�}|s@q|�d||t|�f�d}q|S)
N)�/usr/bin/apt-key�--quiet�advz
--with-colonsz--batchz--fixed-list-modez--list-keysT)�stdout�stderr�text��:r)�pub�uid�	r(��z%s %s
%s)
�
subprocess�runrr#�
splitlines�split�datetime�date�
fromtimestamp�int�	isoformat�append�_)	r�cmd�res�process�name�line�fields�key�expiryrrr�list;s 
zAptAuth.listcC�"dddd|g}tj|td�jdkS)Nr r!�
--fakeroot�add�r$r�r-r.r�
returncode)r�filenamer8rrrrCM�zAptAuth.addcCsgd�}tj|td�jdkS)N)r r!rB�updaterDrrE)rr8rrrrIQszAptAuth.updatecCrA)Nr r!rB�rmrDrrE)rr>r8rrrrJUrHz
AptAuth.rmN)r
)	�__name__�
__module__�__qualname__rrr@rCrIrJrrrrr	.s
	r	)�
__future__rrr1�gettextrrr-rrr7r�N_r	rrrr�<module>s$
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY