CasperSecurity

Current Path : /lib/python3.10/__pycache__/
Upload File :
Current File : //lib/python3.10/__pycache__/_bootsubprocess.cpython-310.pyc

o

`�wis
�@s.dZddlZGdd�d�Zdd�Zdd�ZdS)	z�
Basic subprocess implementation for POSIX which only uses os functions. Only
implement features required by setup.py to build C extension modules when
subprocess is unavailable. setup.py is not used on Windows.
�Nc@seZdZddd�Zdd�ZdS)�PopenNcCs||_||_d|_dS�N)�_cmd�_env�
returncode)�self�cmd�env�r
�&/usr/lib/python3.10/_bootsubprocess.py�__init__s
zPopen.__init__c	Cs�t��}|dkr=z.|jdurt�|jd|j|j�nt�|jd|j�Wt�d�|j	SWt�d�|j	St�d�wt�|d�\}}t�|�|_	|j	S)Nr�)
�os�forkr�execver�execv�_exit�waitpid�waitstatus_to_exitcoder)r�pid�_�statusr
r
r�waits

�
�z
Popen.waitr)�__name__�
__module__�__qualname__rrr
r
r
rrs
rcCs�g}dD]\}}tt|�t|�d�D]	}|�t|��qq|�d�d�|�}t|ttf�r2|}nt|t�r;|g}ndS|D]}t|t�sIdS|sNdS|D]
}||vrZdSqPq?dS)N))�a�z)�A�Z)�0�9r
z./-�FT)	�range�ord�append�chr�join�
isinstance�tuple�list�str)r�
safe_chars�first�last�ch�
check_strs�argr
r
r�
_check_cmd$s.�



��r2cKs|rtt|���t|�std|����d}t|t�sd�|�}|�d|��}zQt�|�}t�	|�}|r=td|�d|����zt
|d��}|��}Wd�n1sRwYWntycd}YnwWzt�
|�W|StywY|Swzt�
|�Wwty�Yww)	Nzunsupported command: zcheck_output.tmp� z >zCommand z returned non-zero exit status �rb�)�NotImplementedError�reprr2�
ValueErrorr(r+r'r�systemr�open�read�FileNotFoundError�unlink�OSError)r�kwargs�tmp_filenamer�exitcode�fp�stdoutr
r
r�check_outputBsH




�
��������rD)�__doc__rrr2rDr
r
r
r�<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