HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/local/lib/python3.6/site-packages/agent360/plugins/__pycache__/proftpd.cpython-36.pyc
3

3	Egj�@s@ddlZddlZddlZGdd�dej�Zedkr<e�j�dS)�Nc@seZdZdZdd�ZdS)�PluginZproftpdc
Csi}tjd�j�}d}d}d}tj|�}x||dD]p}|drF|d7}y|ddkr\|d7}Wntk
rrYnXy|ddkr�|d7}Wq2tk
r�Yq2Xq2W||d<||d<||d	<|d
d|d<dt|d
d�|d<|d
d
}	d|	i|d<|S)z2
        Current acitive ProFTPD sessions
        z/bin/ftpwho -o jsonr�connections�pid��	uploadingTZidling�idle�serverZserver_typezPID Z
started_ms�msZuptime)�os�popen�read�json�loads�	Exception�str)
�self�config�data�resultZcntrr�rawdata�itemZupdt�r�A/root/tmp/pip-build-f6rmvwrq/agent360/agent360/plugins/proftpd.py�run
s6

z
Plugin.runN)�__name__�
__module__�__qualname__rrrrrrsr�__main__)r
Zpluginsr
Z
BasePluginrr�executerrrr�<module>s