Server IP : 104.244.120.118  /  Your IP : 216.73.216.198
Web Server : Apache
System : Linux ded5817.inmotionhosting.com 5.14.0-741.22.1.el9_9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 12 14:34:46 UTC 2026 x86_64
User : persoanlinjuryla ( 1006)
PHP Version : 8.5.13
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /../../opt/dedrads/python/../python/../python/../python/../__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //../../opt/dedrads/python/../python/../python/../python/../__pycache__/envinfo.cpython-313.pyc
�

�i�j����SrSSKrSSKrSSKrSSKJr SrSrSrSr	S\S	.r
"S
S\5rSSjr
S
rSr\S:Xa\"5 gg)z+Gather information about system environment�N)�ArgumentParserzDaniel Kzdanielk@inmotionhosting.comz0.1.1z
2016-09-22�uninitiated)�status�versionc�,^�\rSrSrSrU4SjrSrU=r$)�EnvInfoError�zCustom error class for module.c�$>�[TU]U5 g)z#Init with call to base constructor.N)�super�__init__)�self�message�	__class__s  ��/opt/dedrads/envinfo.pyr�EnvInfoError.__init__s���
����!��)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�__static_attributes__�
__classcell__)rs@rrrs���(�"�"rrc���Ub)U[:�a[SRU[55eUb)U[:a[SRU[55e[RRS5(a
S[S'O	S[S'[RRS5(a2S[S	'S
[S'S[S
'[SS:Xa	S[S'OU[RRS5(a1S[S	'S[S'S[S
'[SS:Xa	S[S'/n[SS:Xa[R"S5nO�[RRS5(a�[RRS5(ar[SSS9nUHVn[URS5S5nSUs=::aS:dM/O M3URURS5S5 MX SSS5 OO[S5eU[S'S[S '[$![an[S5UeSnAff=f!,(df   ND=f)!a2
Main function for module, used to acquire environment information.

min_version - If set, require envinfo.py
    to have a version greater than min_version

max_version - If set, require envinfo.py
    to have a version less than max_version

Returns dictionary of environment information. Currently, the only
guaranteed entries are 'type', 'platform', and 'users'. The following
are the keys that which may be present:

  type - General type of environment. Can be 'cpanel' or 'unknown'
  platform - Operating system information
  web_server - Type of webserver. Currently only 'apache'
  users - List of users.

  Apache related keys:

  easyapache - Version of EasyApache if present
  apache_conf - Location of httpd.conf for Apache
  apache_domlogs - Location of Apache domlogs

On error will throw EnvInfoError.
Nz5Minimum version {} is greater than current version {}z2Maximum version {} is less than current version {}z/var/cpanel�cpanel�type�unknownz/etc/apache2/conf/httpd.conf�apache_confz/var/log/apache2/domlogs�apache_domlogs�apache�
web_server�4�
easyapachez!/usr/local/apache/conf/httpd.confz/usr/local/apache/domlogs�3z/var/cpanel/users/z/etc/passwdzutf-8)�encoding�:�i�i}rzCould not read from /etc/passwdz)Unable to make user list for server type.�users�	initiatedr)�__version__r�format�os�path�isdir�DATA�isfile�listdir�exists�open�int�split�append�OSError)�min_version�max_version�	user_list�file_handle�line�uid�es       r�get_datar@s��8��;��#<��C�J�J��[�
�
�	
���;��#<��@�G�G��[�
�
�	
�
�w�w�}�}�]�#�#���V�� ��V��	�w�w�~�~�4�5�5�<��]��!;��
��%��\����<�8�#�!$�D����	�����;�	<�	<�A��]��!<��
��%��\����<�8�#�!$�D����I��F�|�x���J�J�3�4�	�	�����
�	&�	&�
�7�7�>�>�-�(�(��m�g�6�+�Q� +��!�$�*�*�S�/�!�"4�5���#�-��-�-�%�,�,�T�Z�Z��_�Q�-?�@�!,�7�6�)��F�G�G��D��M� �D��N��K���Q�&�'H�I�q�P��Q��
7�6�s0�3I�5-H?�&+H?�?
I�	I�I�I�
I+c	��[[S9nURS5nUR5nUR	SSSSSSS	9 UR	S
SSSSS
S	9 UR	SSSSSS	9 UR	SSSSS9 UR	SSSSSS9 UR5nUR(a;[S[35 [S[S35 [R"S5 URUR4$)z
Parse command line arguments
)�descriptionzOutput optionsz-ez
--environment�store_const�output_type�envzAPrint general system environment information.This is the defualt.)�action�dest�const�helpz-uz--usersr)z4Print list of users rather than general environment.z
--apache-confrz&Print location of Apache's httpd.conf.z-jz--json�
store_truezPrint results in JSON)rFrIz-vz-Vz	--versionz#Print version information and exit.z%Environment Information tool version zLast modified on �.r)rr�add_argument_group�add_mutually_exclusive_group�add_argument�
parse_argsr�printr+�__date__�sys�exitrD�json)�parser�output_group�output_type_group�argss    rrOrOrs<��
��
0�F��,�,�-=�>�L�$�A�A�C���"�"����
��
#�#�
��"�"����
��
C�
#���"�"���
��
5�#������h�|�2I����������
2�������D��|�|�
�5�k�]�C�D�
�!�(��1�-�.���������d�i�i�(�(rc	��[5up[5nUS:XaHWSnU(a![[R
"USSSS95 g[SR
U55 gUS	:XaJS	W;a5[RRS
5 [R"S5 [US	5 gU(a![[R
"WSSSS95 g[5 [S5 [5 [S
RWS55 [SRSR
US555 [SRUS55 [SRUS	55 [SRUS55 [5 [S5 [SR
US55 [5 g![a!n[S5 [U5 SnAGN�SnAff=f)z4Function to be called when run from the command linezError:Nr)T�)�,z: )�	sort_keys�indent�
separators�
rzNo Apache configuration found
�zServer EnvironmentzServer Type:            {}rzOS:                     {}� �platformzWeb Server:             {}r"zApache configuration:   {}zApache domain logs:     {}r zUsers:)rOr@rrPrT�dumps�joinrR�stderr�writerSr,)rD�use_json�data�errorr)s     r�mainrj�s���)�l��[���z��
�g���W�
�����
�
��T�!���
�
�$�)�)�E�"�#�	�
�	%���$��J�J���>�?��H�H�S�M�
�d�=�!�"����
�
��D��{��
�
�G��&�'��G��.�5�5�d�6�l�C�D��,�3�3�C�H�H�T�*�=M�4N�O�
�
�.�5�5�d�<�6H�I�J��.�5�5�d�=�6I�J�K��.�5�5�d�;K�6L�M�N��G��(�O��#�(�(�4��=�)�*��G��Y��
�h��
�e�����s�
G�
H�$H�H�__main__)NN)rr-rRrT�argparser�__maintainer__�	__email__r+rQr0�	Exceptionrr@rOrjrrrr�<module>rpsg��1�	�
��#���)�	����� �K�8��"�9�"�T�n;)�|3�l�z���F�r