CasperSecurity

Current Path : /proc/thread-self/root/usr/share/python3/debpython/__pycache__/
Upload File :
Current File : //proc/thread-self/root/usr/share/python3/debpython/__pycache__/files.cpython-310.pyc

o

年f-
�@s�ddlZddlmZmZddlmZmZmZddlm	Z	m
Z
ddlmZe�
e�Zddd�Zdd	d
�Zdd�Zd
d�Zdd�ZdS)�N)�walk�environ)�abspath�isfile�join)�Popen�PIPE)�
PUBLIC_DIR_RE�z.pyccs��t|�}t|ttf�r|D]}t|�D]}|VqqdSt|�r+|�|�r+|VdStt|��D]\}}}|D]
}|�|�rEt||�Vq8q1dS)z6Generate *.py file names available in given directory.N)	�tuple�
isinstance�list�from_directoryr�endswithrrr)�dname�
extensions�item�fn�root�dirs�
file_names�r�%/usr/share/python3/debpython/files.pyrs"���

���rccs��t|�}t��}d|d<tdd|ftt|d�}|��\}}|jdkr)td|��|jdd	d
�}|�	�D]
}|�
|�r>|Vq4dS)z4Generate *.py file names available in given package.zC.UTF-8�LC_ALLz
/usr/bin/dpkgz-L)�stdout�stderr�envrzcannot get content of %szutf-8�replace)�errorsN)rr�copyrr�communicate�
returncode�	Exception�decode�
splitlinesr)�package_namerr�processrr�linerrr�from_package.s �
�

��r(ccs �|D]
}|�|�r
|VqdS)z4Generate *.py file names that match given directory.N)�
startswith)�filesrrrrr�filter_directory>s�
��r+ccsb�tdd�|D��}tdd�|D��}|D]}t�|�}|r.|�d�}||vs+||vr.|VqdS)z3Generate *.py file names that match given versions.css�|]}d|VqdS)z%d.%dNr��.0�irrr�	<genexpr>Gs�z filter_public.<locals>.<genexpr>css�|]	}t|d�VqdS)rN)�strr,rrrr/Hs��N)�setr	�match�group)r*�versions�vstr�shared_vstrr�
public_dir�versrrr�
filter_publicEs�

��r:ccs(�t|�}|D]
}|�|�s|VqdS)z<Removes files with matching extensions from given generator.N)rr)r*rrrrr�filter_out_extQs�
��r;)r
)�logging�osrr�os.pathrrr�
subprocessrr�	debpythonr	�	getLogger�__name__�logrr(r+r: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