AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.138.170.161
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python2.7/site-packages/ansible/plugins/shell/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /lib/python2.7/site-packages/ansible/plugins/shell/__init__.pyo
�
��\c@`s�ddlmZmZmZeZddlZddlZddlZddl	Z	ddl
Z
ddljZ
ddlmZddlmZddlmZddlmZddlmZe	jd�Zd	efd
��YZdS(i(tabsolute_importtdivisiontprint_functionN(tAnsibleError(t	text_type(tshlex_quote(t	to_native(t
AnsiblePlugins^~[_.A-Za-z0-9][-_.A-Za-z0-9]*$t	ShellBasecB`s�eZd�Zd�Zdddd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Ze
d
�Zd�Zde
ddd
�Zdd�Zd�Zdd�Zd�Zd�ZRS(cC`s\tt|�j�i|_tjrOtj}i|d6|d6|d6|_nd|_dS(NtLANGtLC_ALLtLC_MESSAGES(	tsuperRt__init__tenvtCtDEFAULT_MODULE_SET_LOCALEtDEFAULT_MODULE_LANGtNonettmpdir(tselft
module_locale((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pyR
%s			
cC`ssg|jd�D]}|jd�^q}td�|D��s_tdjt|����n|jd|�dS(Ntsystem_tmpdirst/cs`s!|]}tjj|�VqdS(N(tostpathtisabs(t.0td((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pys	<genexpr>:ss`The configured system_tmpdirs contains a relative path: {0}. All system_tmpdirs must be absolute(t
get_optiontrstriptallRtformatRt
set_option(RRtnormalized_paths((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pyt_normalize_system_tmpdirs2s
+	cC`sdtt|�jd|d|d|�|jj|jd��y|j�Wntk
r_nXdS(Nt	task_keystvar_optionstdirecttenvironment(RRtset_optionsRtupdateRR#R(RR$R%R&((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pyR(@s%
cK`sBdjg|j�D](\}}d|tt|��f^q�S(Nt s%s=%s(tjointitemsRR(Rtkwargstktv((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pyt
env_prefixOscG`stjj|�S(N(RRR+(Rtargs((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pyt	join_pathRscC`s"tjj|j��}|j�S(N(RRtbasenametstrip(Rtpathnamet	base_name((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pytget_remote_filenameVscC`s
|jd�S(NR(tendswith(RR((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pytpath_has_trailing_slashZscC`sEd|g}|j|�g|D]}t|�^q }dj|�S(NtchmodR*(textendRR+(Rtpathstmodetcmdtc((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pyR:]s
cC`sEd|g}|j|�g|D]}t|�^q }dj|�S(NtchownR*(R;RR+(RR<tuserR>R?((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pyR@ds
cC`sRddd||fg}|j|�g|D]}t|�^q-}dj|�S(s5Only sets acls for users as that's really all we needtsetfacls-msu:%s:%sR*(R;RR+(RR<RAR=R>R?((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pyt
set_user_faclks
cC`s:t|�}d}|r%|d7}n|d||jfS(Nsrm -f s-r s%s %s(Rt_SHELL_REDIRECT_ALLNULL(RRtrecurseR>((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pytremovess

cC`s"ddt|�g}dj|�S(Nttests-eR*(RR+(RRR>((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pytexistszsi�c	C`s#|s+dtj�tjdd�f}n|rt|jd�}||jd�kr^|}q�|jd�d}n$|dkr�|jd�}n|}|j||�}d|j||jf}|d	|j	||j||jf7}|rd
|@}d|j
||j	||jf}n|S(
Nsansible-tmp-%s-%siii0RRt
remote_tmpsmkdir -p %s echo %s %ss %s echo %s=%s echo %s %si�s%s umask %o %s %s %sI(ttimetrandomtrandintRRRR2t_SHELL_SUB_LEFTt_SHELL_SUB_RIGHTt
_SHELL_ANDt_SHELL_GROUP_LEFTt_SHELL_GROUP_RIGHT(	RtbasefiletsystemR=Rt
basetmpdirtbasetmpR>t	tmp_umask((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pytmkdtemp~s"%	&%tcC`sH|dkr-tj|�s@t|�}q@n|r@||7}nd|S(s� Return a command to expand tildes in a path

        It can be either "~" or "~username". We just ignore $HOME
        We use the POSIX definition of a username:
            http://pubs.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap03.html#tag_03_426
            http://pubs.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap03.html#tag_03_276

            Falls back to 'current workind directory' as we assume 'home is where the remote user ends up'
        t~secho %s(t_USER_HOME_PATH_REtmatchR(Rtuser_home_pathtusername((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pytexpand_user�s
cC`sd|j|jfS(s-Return the working directory after connectingsecho %spwd%s(RMRN(R((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pytpwd�scC`s�|j�dkr!t|�}ng}|rH|jdd�j�}nd}|j|j�||g�|dk	r�|j|�ndj|�}|S(NRXs#!R*(R4RtreplaceR;RtappendR+(Rt
env_stringtshebangR>targ_patht	cmd_partstnew_cmd((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pytbuild_module_command�scC`s'|jr#|d|j|f7}n|S(s6Append an additional command if supported by the shells %s %s(RO(RR>t
cmd_to_append((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pytappend_command�s	cC`s|S(s_wrap script execution with any necessary decoration (eg '&' for quoted powershell script paths)((RR>((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pyt
wrap_for_exec�sN(t__name__t
__module__R
R#RR(R0R2R7R9R:R@RCtFalseRFRHRWR^R_RgRiRj(((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pyR$s$	
									'		(t
__future__RRRttypet
__metaclass__Rtos.pathRKtreRJtansible.constantst	constantsRtansible.errorsRtansible.module_utils.sixRtansible.module_utils.six.movesRtansible.module_utils._textRtansible.pluginsRtcompileRZR(((sB/usr/lib/python2.7/site-packages/ansible/plugins/shell/__init__.pyt<module>s

Anon7 - 2022
AnonSec Team