403Webshell
Server IP : 209.205.66.10  /  Your IP : 216.73.216.173
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User :  ( 1006)
PHP Version : 8.5.8
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/system-config-printer/troubleshoot/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/system-config-printer/troubleshoot/__pycache__/CheckPrinterSanity.cpython-310.pyc
o

3�b_�@s`ddlmZddlZddlZddlZddlZddlmZmZddl	Z
ddlTGdd�de�Z
dS)�)�GtkN)�TimedOperation�TimedSubprocess�)�*c@s$eZdZdd�Zdd�Zdd�ZdS)�CheckPrinterSanitycCs(t�||d�|�t��|�||_dS)NzCheck printer sanity)�Question�__init__�new_pager�Label�troubleshooter)�selfr�r�C/usr/share/system-config-printer/troubleshoot/CheckPrinterSanity.pyr	!s
zCheckPrinterSanity.__init__c
Cs�i|_|jj}|ds
dS|d}|j��}zSt�d�ttj|d���}t|j|d���}||vrAd|jd<||}||jd<nd|jd<t|j	|d���}||}||jd	<t|j
|f|d���}||jd
<WnYd|jv�rl|jd}	|	d}
tj�
|
�\}}||jd<|d
vr�tj�|�\}
}tjj|
dd�\}}||jd<||jd<n�|dk�r%t�|
�}|��\}}}}}tj��}d|d<|r�dd||g}nd|g}zFt|d||dtjtjtjd�}|��}||jd<|dD]'}|�d�r�q�|�d�}|dk�r||d��d��s|d|�|jd<nq�WnCt�y$Yn:w|dk�r^tj��}d|d<d|d <zt|d!d"d#|
gd|tjtjtjd$�}|��|jd%<Wn
t�y]Ynw|	d&tj@}|dk|jd'<dS)(N�cups_queue_listedF�
cups_queue�)�parent�
is_cups_class�cups_printer_dictT�cups_class_dict�local_cups_queue_attributesz
device-uri�cups_device_uri_scheme)�ipp�http�httpsiw)�defport�remote_server_name�remote_server_port�smb�C�LC_ALL�	nmblookupz-Wi�)r�timeout�args�env�	close_fds�stdin�stdout�stderr�nmblookup_outputr�querying� ���z failed �hp�DISPLAYi�zhp-infoz-d)rr#r$r&r%r'r(r)�hplip_outputzprinter-type�cups_printer_remote)�answersr�
get_window�cups�	setServerr�
Connection�run�getPrinters�
getClasses�getPrinterAttributes�urllib�parse�	splittype�	splithost�
splitnport�smburi�SMBURI�separate�os�environ�copyr�
subprocess�DEVNULL�PIPE�
startswith�find�OSError�CUPS_PRINTER_REMOTE)r
r2�namer�c�printers�queue�classes�attrsr�uri�scheme�rest�hostport�host�port�u�group�share�user�password�new_environr$�p�result�line�spc�rrrr�display&s�





��





�



���


��zCheckPrinterSanity.displaycCs|jS)N)r2)r
rrr�collect_answer�sz!CheckPrinterSanity.collect_answerN)�__name__�
__module__�__qualname__r	rdrerrrrr sbr)�
gi.repositoryrr4rCr@rF�timedopsrr�urllib.parser;�baserrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit