Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
share /
hplip /
fax /
__pycache__ /
[ HOME SHELL ]
Name
Size
Permission
Action
coverpages.cpython-310.pyc
8.53
KB
-rw-r--r--
fax.cpython-310.pyc
20.54
KB
-rw-r--r--
faxdevice.cpython-310.pyc
1.28
KB
-rw-r--r--
__init__.cpython-310.pyc
125
B
-rw-r--r--
ledmfax.cpython-310.pyc
17.85
KB
-rw-r--r--
ledmsoapfax.cpython-310.pyc
3.1
KB
-rw-r--r--
marvellfax.cpython-310.pyc
17.89
KB
-rw-r--r--
pmlfax.cpython-310.pyc
19.76
KB
-rw-r--r--
soapfax.cpython-310.pyc
15.09
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ledmfax.cpython-310.pyc
o �/�a � � @ s d dl mZ d dlZd dlZd dlZd dlmZmZmZ d dl Z d dl Z d dlZd dlZd dlm mZ d dlT d dlT d dlT d dlmZmZmZmZmZ d dlmZ ddlT e �de j�Zd Zd ZdZdZd Z dZ!dZ"dZ#dZ$dZ%dZ&dZ'dZ(G dd� de)�Z*G dd� de+�Z,dS )� )�divisionN)�BytesIO� to_bytes_utf8� to_unicode)�*)�device�utils�codes�dime�status)r � s HTTP/\d.\d\s(\d+)�� �� �� i� i� � i� a� <?xml version="1.0" encoding="UTF-8"?><!-- THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF ORIGIN.--><prdcfgdyn2:ProductConfigDyn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:prdcfgdyn2="http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2009/03/16" xmlns:prdcfgdyn="http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2007/11/05" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2009/03/16 ../schemas/ledm2/ProductConfigDyn.xsd http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2007/11/05 ../schemas/ProductConfigDyn.xsd http://www.hp.com/schemas/imaging/con/dictionaries/1.0/ ../schemas/dd/DataDictionaryMasterLEDM.xsd"><prdcfgdyn2:ProductSettings><dd:TimeStamp>%s</dd:TimeStamp></prdcfgdyn2:ProductSettings></prdcfgdyn2:ProductConfigDyn>a� <?xml version="1.0" encoding="UTF-8"?><!--Sample XML file generated by XMLSPY v5 rel. 4 U (http://www.xmlspy.com)--><faxcfgdyn:FaxConfigDyn xmlns:faxcfgdyn="http://www.hp.com/schemas/imaging/con/ledm/faxconfigdyn/2009/03/03" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:fax="http://www.hp.com/schemas/imaging/con/fax/2008/06/13" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/faxconfigdyn/2009/03/03 ../schemas/FaxConfigDyn.xsd"><faxcfgdyn:SystemSettings><dd:PhoneNumber>%s</dd:PhoneNumber></faxcfgdyn:SystemSettings></faxcfgdyn:FaxConfigDyn>a� <?xml version="1.0" encoding="UTF-8"?><!--Sample XML file generated by XMLSPY v5 rel. 4 U (http://www.xmlspy.com)--><faxcfgdyn:FaxConfigDyn xmlns:faxcfgdyn="http://www.hp.com/schemas/imaging/con/ledm/faxconfigdyn/2009/03/03" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:fax="http://www.hp.com/schemas/imaging/con/fax/2008/06/13" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/faxconfigdyn/2009/03/03 ../schemas/FaxConfigDyn.xsd"><faxcfgdyn:SystemSettings><dd:CompanyName>%s</dd:CompanyName></faxcfgdyn:SystemSettings></faxcfgdyn:FaxConfigDyn>a <?xml version="1.0" encoding="UTF-8"?><FaxPCSendDyn xmlns="http://www.hp.com/schemas/imaging/con/ledm/printtofaxdyn/2008/11/24" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/printtofaxdyn/2008/11/24 ../schemas/FaxPCSendDyn.xsd"><FaxPCSendConfig><FaxTxPhoneNumber>%s</FaxTxPhoneNumber><NumPages>%d</NumPages><TTI_Control>TTI_Off</TTI_Control></FaxPCSendConfig></FaxPCSendDyn>aH <?xml version="1.0" encoding="UTF-8" ?><FaxPCSendDyn xmlns="http://www.hp.com/schemas/imaging/con/ledm/printtofaxdyn/2008/11/24" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/printtofaxdyn/2008/11/24 ../schemas/FaxPCSendDyn.xsd"><PageConfig><PageNum>%d</PageNum><Width>1728</Width><Height>2200</Height><ImageType>BW</ImageType><Compression>mh</Compression><HorizontalDPI>%d</HorizontalDPI><VerticalDPI>%d</VerticalDPI></PageConfig></FaxPCSendDyn>a� <?xml version="1.0" encoding="UTF-8"?><Job xmlns="http://www.hp.com/schemas/imaging/con/ledm/jobs/2009/04/30" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:fax="http://www.hp.com/schemas/imaging/con/fax/2008/06/13" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/jobs/2009/04/30 ../schemas/Jobs.xsd"><JobUrl>%s</JobUrl><JobState>Canceled</JobState></Job>c @ st e Zd Zdddedfdd�Zdd� Zdd� Zd d � Zeee�Z dd� Z d d� Zeee �Z ddd�Z dd� ZdS )� LEDMFaxDeviceNFc C s@ t �| |||||� d | _d | _| jdkr| j| _d S d| _d S )N�net� localhost)� FaxDevice�__init__�send_fax_thread�upload_log_thread�bus�host� http_host)�self� device_uri�printer_name�callback�fax_type�disable_dbus� r! �/usr/share/hplip/fax/ledmfax.pyr J s � zLEDMFaxDevice.__init__c C s� d|| j t|�|f }t�|� | �|�d�� t� }| jd|dd�r, | jd|dd�s#|�� }t�|� | � � t �|�}|d u rDtS zt |�d��}W |tkS ttfy` t}Y |tkS w )NzbPUT %s HTTP/1.1 Connection: Keep-alive User-agent: hplip/2.0 Host: %s Content-length: %d %s�utf-8� � ��timeoutr )r �len�log�log_data� writeLEDM�encoder �readLEDM�getvalue� closeLEDM�http_result_pat�match�HTTP_OK�int�group� ValueError� TypeError� HTTP_ERROR)r �url�post�data�responser1 �coder! r! r"