403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.156
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/hplip/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/hplip/__pycache__/doctor.cpython-310.pyc
o

�K0j�2�@sjdZdZdZdZddlZddlZddlZddlZddlTddl	Tzddl
mZmZm
Z
mZmZmZmZWn(ey\ZzdejdvrHed�n
e�d	�e�d
�WYdZ[ndZ[wwddlTddlmZed	dd
fded	dd
fejejdejejejej ej!ej"gZ#e$Z%dZ&dZ'dZ(da)dZ*dZ+dZ,dIdd�Z-dd�Z.dd�Z/dd�Z0dd�Z1gggfdd�Z2dJdd �Z3e�4e�z#e
�5eeeee#e$e6fe7e8e9fd
�Z:e:j;d!gd"�dd#�\Z<Z=Z>Z?Z@ZAWnejBy�Zze�CejD�e-�WYdZ[ndZ[wwe�Ed$��r
e�Fd%�d%Z(e<D]e\ZGZHeGd&k�r#eIZ%d
Z'e�Jd'�e-��qeGd(k�r,eHZ&�qeGd)v�r;e�Jd*�e-��qeGd+k�rJe�Jd,�e-��qeGd-v�r`eH�K��L�Z(e�Fe(��s^e-��qeGd.k�rid
Z+�qeGd/k�rpd
Z,�q�z�e�M�dk�r�e�Cd0eeNeO�f�e�d
�e:�Pd	�de:_Qe:�R�ejS�Td1eUjV�ZWejS�XeW��r�ze�YeW�Wn
eZ�y�Ynwe�[eW�e�\ej]�e�^d2e�_eW��e�^d	�e'�r�e�M�dk�r�e�Cd3�e3d
�e`�ad4d5�Z@eebe$e@�Zcecjd�e�e�fe�_d6��e1ecjd�e�fe�_d7��e�gd8d
�Zheh�r)e.eh�Zhe�ieh�Zjejdk�r(e�Cd9�ne�Cd:�e�fe�_d;��e,�rBec�keld
�\ZmZnnec�keld�\ZmZnem�sPen�r�ec�o��s_ec�p��s_ec�q��re2ec�o�ec�p�ec�q��e/ecjd�ecjd�re$ec�o�ec�p�ec�q��e�fe�_d<��e�fe�_d=��e�secjdjte%e@de&�e�fe�_d>��e0ec�e�u�Zvev�r�e�fe�_d?��e�w�\ZxZyevD]
Zze�Cd@ez��q�e�fe�_dAex��ec�{�Z|e|�r�e�fe�_dB��e|D]Zze�CdCez�e�fe�_dDe���q�e*�re�fe�_dE��e�fe�_dF��e�fd	�e�fd	�e�fdG�e3d�WdSe}�y4e�CdH�e3d
�YdSw)Kz1.0z(Self Diagnse Utility and Healing Utilityz	hp-doctorzqTool checks for the deprecated, plug-in, dependencies, queues, permission issues and provides self diagnose steps�N)�*)�utils�tui�module�queues�os_utils�services�
smart_install�cupsext��)�DependenciesCheck�nameTzUsage: %s [OPTIONS]�summary)zRun in interactive mode:z-i or --interactive (Default)�optionFF�textcCs2|dkr
t�tt�t�t|ttt�td�dS)Nr�)r�	log_title�	__title__�__version__�format_text�USAGE�__mod__�
clean_exit)�typ�r�/usr/share/hplip/doctor.py�usageMsrcCsJttkr	|d7}nttkr|d7}tr|d7}tr|dt7}|d7}|S)Nz -i z -u z -n z -l%sz -s )�MODE�INTERACTIVE_MODE�GUI_MODE�PERFORM_IN_NON_INTERACTIVE_MODE�	LOG_LEVEL)�cmdrrr�append_optionsUs
r$cCs\t��stdkr|j��dkrt�d�nt�d�|��andats,t�	d�t
d�tS)NF�sudozENTER SUDO PASSWORDzENTER ROOT/SUPERUSER PASSWORDTzV3 incorrect attempts. (or) Insufficient permissions(i.e. try with sudo user).
Exiting.�)r�running_as_root�VALID_AUTHENTICATION�passwordObj�getAuthTyper�title�check_password�log�errorr)�corerrr�authenticatefs


r0cCs�|��}|tkrt�dddgd�\}}n2|tkr$t�dddgd�\}}n"|tkr4t�dddgd�\}}n|tkr?t�d�dSt�d�dS|re|dkred	}t	|�}t
�|�}|d
kr]dSt�t�d��dS)
NzPFound Plugin version mismatch. Press 'y' to re-install the plugin(y=yes*, n=no):�y�nzDPlugins corrupted. Press 'y' to re-install the plugin(y=yes*, n=no):zDPlugin's are missing. Press 'y' to install the plugin(y=yes*, n=no):zPlugin's already installedTz#No plug-in printers are configured.z	hp-pluginrzSFailed to install Plugin. Please run 'hp-plugin' command to install plugin manuallyF)
�get_plugin_status�PLUGIN_VERSION_MISMATCHr�enter_choice�PLUGIN_FILES_CORRUPTED�PLUGIN_NOT_INSTALLED�PLUGIN_INSTALLEDr-�infor$r�execute�bold)r/�
plugin_sts�ok�
user_inputr#�stsrrr�install_plugin}s(


r@cCsn|��rt�d�t�d�dSt�d|j|jf�t�t�	d�ddgd�\}}|r/|dkr5t
d�dSdS)NzThis distro is supported.zNo Deprecated items are foundzCThis distro (i.e %s  %s) is either deprecated or not yet supported.zZThe diagnosis is limited on unsupported platforms. Do you want to continue?(y=yes*, n=no):r1r2r)�validate_distro_versionr-�debugr9r.�distro_name�distro_versionrr5�redr)r/r=r>rrr�deprecated_check�s
�rFcCs�t|�r2t�t�d��t�t�dtd���|D]}d|vr*t�d|df�qt�d|�qt|�rVt�t�d��t�t�dtd���|D]	}t�d|�qLt|�rzt�t�d��t�t�dtd���|D]}t�d|�qpdSdS)	NzMissing Required Dependencies�-�cupsz7'%s' package is missing or '%s' service is not running.z%'%s' package is missing/incompatible zMissing Optional DependencieszMissing Commandsz'%s' is missing)�lenr-r9r;r.)�required_dependencies�optional_dependencies�missing_cmd�packages_to_installr#rrr�display_missing_dependencies�s&�rNcCs>t��trt�d�z		q
tyYnwt�|�dS)Nz'

Please close this terminal manually. )�mod�unlockInstance�DONOT_CLOSE_TERMINALr-r9�KeyboardInterrupt�sys�exit)�	exit_coderrrr�s
��rzhl:gnid:f:w)
zsummary-only�helpz	help-restzhelp-manz	help-desc�interactive�guizlang=zlogging=rB)�handle_device_printer�HPLIP_DEBUGrBz-nz*NON_INTERACTIVE mode is not yet supported.z-d)z-uz--guizGUI is not yet supported.z-fz%Option from file is not yet supported)z-lz	--loggingz-wz--summary-onlyz%s %sz%s/hp-doctor.logzUpgrade log saved in: %sz0Non Interactive mode should be run in root mode.�	configurez
ui-toolkitz#

Checking for Deprecated items....z 

Checking for HPLIP updates....z
hp-upgradez^Failed to upgrade latest HPLIP. Is hp-upgrade already running (i.e. foreground or background)?z#Failed to locate hp-upgrade utilityz

Checking for Dependencies....z

Checking Permissions....z$

Checking for Configured Queues....z*

Checking for HP Properitery Plugin's....z<

Checking for 'CD-ROM'/'Smart Install' Detected Devices....zDSmart Install is Enabled in '%s' Printer. This needs to be disabled.z4
Refer link '%s' to disable Smart Install manually.
z!

Checking for Printer Status....z<'%s' Printer is either Powered-OFF or Failed to communicate.zTurn On Printer and re-run %sz9
Please reboot the system before performing any function.z
Diagnose completed...
zxMore information on Troubleshooting,How-To's and Support is available on http://hplipopensource.com/hplip-web/index.htmlz	User exit)r)r)~rrr�__doc__�getopt�osrS�getpass�base.g�base.strings�baserrrrrrr	�ImportError�e�args�check_extension_module_envr-�	exceptionrT�installer.core_install�checkr
�USAGE_SPACE�
USAGE_MODE�
USAGE_OPTIONS�
USAGE_HELP�USAGE_LOGGING1�USAGE_LOGGING2�USAGE_LOGGING3rrr�
DEVICE_URIr!r"r(�IS_RESTART_REQrQ�SUMMARY_ONLYrr$r0r@rFrNr�
set_module�Moduler �UI_TOOLKIT_QT3�UI_TOOLKIT_QT4�UI_TOOLKIT_QT5rO�parseStdOpts�opts�
device_uri�printer_name�mode�
ui_toolkit�loc�GetoptErrorr.�msg�getenv�	set_level�o�a�NON_INTERACTIVE_MODE�warn�lower�strip�geteuid�queryString�ERROR_RUNNING_AS_ROOT�lockInstance�quiet�	showTitle�path�normpath�prop�user_dir�log_file�exists�remove�OSError�set_logfile�	set_where�LOG_TO_CONSOLE_AND_FILErBr;�sys_conf�get�
MODE_CHECK�depr/�initr9�which�upgrade_cmdr:r?�validate�DEPENDENCY_RUN_AND_COMPILE_TIME�
num_errors�	num_warns�get_required_deps�get_optional_deps�get_cmd_to_run�install_missing_dependencies�
main_functionr)� get_smartinstall_enabled_devices�smart_ins_dev_list�get_SmartInstall_tool_info�url�	tool_name�printer�get_communication_error_devs�comm_err_devrRrrrr�<module>sB(


��
�



�����











�

�

�







�





�

Youez - 2016 - github.com/yon3zu
LinuXploit