403Webshell
Server IP : 172.24.0.40  /  Your IP : 216.73.216.10
Web Server : Apache
System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64
User : apache ( 48)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.6/site-packages/pexpect/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.6/site-packages/pexpect/__pycache__/utils.cpython-36.pyc
3

�Kp[N�@s�ddlZddlZddlZddlZddlZddlZyeWnek
rRejZYnXej	ddkrje
fZnee
fZdd�Z
ddd�Zdd�Zdd	d
�ZdS)
�N�cCshtjj|�}tjj|�sdStj|�j}tjjd�rZtj	�dkrZt
|tjtjBtj
B@�Stj|tj�S)z�Checks that path is an executable regular file, or a symlink towards one.

    This is roughly ``os.path isfile(path) and os.access(path, os.X_OK)``.
    F�sunosr)�os�path�realpath�isfile�stat�st_mode�sys�platform�
startswith�getuid�bool�S_IXUSR�S_IXGRP�S_IXOTH�access�X_OK)rZfpath�mode�r�/usr/lib/python3.6/utils.py�is_executable_files
rcCsvtjj|�dkrt|�r|S|dkr*tj}|jd�}|s>tj}|jtj�}x&|D]}tjj	||�}t|�rP|SqPWdS)z�This takes a given filename; tries to find it in the environment path;
    then checks if it is executable. This returns the full path to the filename
    if found and executable. Otherwise this returns None.�N�PATH)
rr�dirnamer�environ�get�defpath�split�pathsep�join)�filename�env�pZpathlistrZffrrr�which0s

r$c
Csg}d}d}d}d}d}d}|}x�|D]�}	||ks:||kr�|	dkrH|}q�|	dkrV|}q�|	d	krd|}q�|	j�r�||krvq�|j|�d}|}q�||	}|}q&||kr�||	}|}q&||kr�|	dkr�|}q�||	}q&||kr&|	d	kr�|}q&||	}q&W|dk�r|j|�|S)
aThis splits a command line into a list of arguments. It splits arguments
    on spaces, but handles embedded quotes, doublequotes, and escaped
    characters. It's impossible to do this with a regular expression, so I
    wrote a little state machine to parse the command line. rr��r��\�'�")�isspace�append)
Zcommand_line�arg_list�argZstate_basicZ	state_escZstate_singlequoteZstate_doublequoteZstate_whitespace�state�crrr�split_command_lineEsL




r1cCs�|dk	rtj�|}xpytj||||�Stk
r�tj�d}|jdtjkrz|dk	r||tj�}|dkr|gggfSn�YqXqWdS)z�This is a wrapper around select.select() that ignores signals. If
    select.select raises a select.error exception and errno is an EINTR
    error then it is ignored. Mainly this is used to ignore sigwinch
    (terminal resize). Nr%r)�time�select�InterruptedErrorr
�exc_info�args�errnoZEINTR)ZiwtdZowtdZewtd�timeout�end_time�errrrr�select_ignore_interrupts�s	r;)N)N)rr
rr3r2r7r4�	NameError�error�version_info�strZstring_types�unicoderr$r1r;rrrr�<module>s 
=

Youez - 2016 - github.com/yon3zu
LinuXploit