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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/hplip/setup.pyo
lJcE@s&"dZdZdZdZddkZddkZddkZddkZddk	Z	ddkZddk
Z
yddkZWnej
onXddk
TddklZlZlZlZlZddklZdZd	Ze	id
e	iZeddefd
eddefeieieiei ei!ddde"fddde"fddde"fddde"fddde"fddde"fddde"fddde"fei#ei$ei%ei&ei'd dd!e"fd"d#de"fdd$de"fd%d&de"fd'd(de"fd)d*defei(d+d,d-e"fd.d/d-e"fd0d1d-e"fd2d3d-e"fd4d5d-e"fd6d7d-e"fd8d9d-e"fd:d;d-e"fd<d=d-e"fd>d?d-e"fd@dAd-e"fdBdCd-e"fei ei)dDddEe"fdFddEe"fdGddEe"fdHddEe"fdIddEe"fdJddEefdKddEefei ei*dLddMe"fdNddMe"fg4Z+dOZ,dPZ-ei.eeeee+e/e0fe1e2fdQeZ3e3i4dRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dagdbe"\Z5Z6Z7Z8Z9Z:dZ7dZ;dZ<eZ=eZ>dZ?e"Z@eZAdcZBe"ZCx"e5D]\ZDZEeDddjo
e"ZAqfeDdjo
eEZ7qfeDdjo
eEZ;qfeDdjo
eEZ6qfeDdjodgZFeEiGdnD]ZHeFeHiIiJq[FZ<eiKe<e"pe3iLdodpgqqfeDdjoe"e"Z>Z=eEiJiIZExeEiGdnD]ZMeMiJdjoe3iLdodugneMiJdsjo
eZ=q{eMiJdtjo%eNiOpePiQdvqeZ>q{q{WqfeDdwjo=yeReEZBWqeSj
oe3iLdodxgqXqfeDdjo
eZ@qfeDdjo
eZCqfqfWye3iTd~ZUWneVj
o
dZUnXePiWdeUe8e0jose9djo3eiXp"ePiQdeeiYdcq>qBeiZp"ePiQdeeiYdcqBne8e0joe9djoyddk[Tddk\l]Z]Wn-ej
o!ePiQdeiYdcnXeCoePi^dne_ei`Zaebiceaeddeaeede:djoSefigdddZ:e:iIdjo'eheiijZ:ePiWde:qSne:iIdjodZky.e:iGd\ZlZHdimelekgZ:Wn.eSj
o"e:Zldime:ekgZ:nXePiWde:endZodelZpePiWdepeoiqepeNirZsesoeaiteoq:	dZ:ne:djoePiWdngePiWde:euiveue:e:eN_jy ejiwejixejiye:Wnejizj
onXye]i{e<eUeBZ|Wn-ezj
o!ePiQdeiYdcnXeai}e|e|i~eaiq"y*ddkl_Z_lZddklZWn-ej
o!ePiQdeiYdcnXe_ei`ZaedeUeBe6eCZei~yePiWdeaiWq"ej
oeiYd~q"Xnyeie,eCoePiQdeiYdcne@pePidePidneUoeieUeB\Z6ZZne6o]e<djoPeiZ<e<djoeiYd~nePide<d~ePidne6p"e3ie6deie<Z6nePiePide6ePide6iddZe6iddZeie6\	ZZZ<ZZZZZZePiWdeeie6ZepeigdeejoePiQdeiYdcneigdeeefjoe>o
e"Z>neieiIZeigdeZeieigdddZeejo[eoSeideidZeo,eNioeidq
eidq
neiZeieiddidddZeieZeidgZx:eiD],Zx#eeD]ZePiWdeq-WqWeidgZx:eiD],Zx#eeD]ZePiWdeq|WqkWe=oxeide@o_eejoRePiddimeeeidd\ZZ=epeiYd~qqne=oe@o
eZ7neZe6ejofeee6joUdZxLeo@edeZeee6joede7ZPnedc7Zq_Wne@pe7djo~x{eooeePideZ7e7iIiJdjoePideiYd~ne7pe7iIiJdjo
eZ7neZxNeiD]@Zx7eeD]+Ze7ejoePiQde"ZPqhqhWqWWxNeiD]@Zx7eeD]+Ze7ejoePiQde"ZPqqWqWx9e7D]1ZeeijoePiQdee"ZqqWeoPqqWqGneZ7ePide7eieiddidddZeiIiddiddZePideieeZe"ZedjoeZePiQdne\ZZePideeokePidee@pOePideid\ZZepeiYd~nep
eZqzq~neoe"Zeidd\ZZepeiYd~neoe"ZxeoeePidZeiIiJdjoePideiYd~neZeiieoeiieoeidoe
iedidZneedidZyeieidcZWnej
o
dZnXeoePidenePiQdeid\ZZepeiYd~neo
eZqAnePiQdeoPqqWqtePiQdeiYdcne@od\ZZnxYeoQeePidZeiJiIdjoePideiYd~nPqWxYeoQeePidZeiJiIdjoePideiYd~nPqWePiePidePideePide7ePideePideePideePiWdeie-\ZZePiWdeefeideiiep1eie7ideedee\ZZn.eie7ideeede\ZZePiWdeefeidgZeejpe7eejoePiQdeiYdcqne>o"eNiOoePiQde"Z>ne>oAyddklZWqBej
oe"Z>ePidqBXnePide>oxeide@o_eejoRePiddimeeeidd\ZZ>epeiYd~qqne>o*	e@oedZ;nedZeejofeeejoUdZxLeo@edeZeeejoede7ZPnedc7ZqWne@pe;djo{xxeoleePideZ;e;iIiJdjoePideiYd~ne;pe;iIiJdjo
eZ;neZxNeiD]@Zx7eeD]+Ze;ejoePiQde"ZPq$q$WqWxNeiD]@Zx7eeD]+Ze;ejoePiQde"ZPququWqdWx6e;D].ZedjoePiQdee"ZqqWeoPq~q~WqneZ;ePide;eigdeZeNio!eejo
dZqkdZneejo
dZndZxZeD]8Zeied~joeZePiWdePqrqrWePiQdeiYdce@od\ZZnxYeoQeePidZeiJiIdjoePideiYd~nPqWxYeoQeePidZeiJiIdjoePideiYd~nPq>WePiePidePideePide;ePideePideePideeideiiep1eie;ideedee\ZZn.eie;ideeede\ZZePiWdeefeidgZePiWeeejpe;eejoePiQdeiYdcneide@o
e"Z>nxeoeePidiJiIZedjoePideiYd~nep
dZnedjZ>edjoPnePiQdqWe>oMeiedeZyeiWn ezj
oePiQdq Xzd~ZeZxeoedc7Zy(eheiZeheiZWnEezj
o9ePiQdeide"ZedjoPqqXeZPqWeoNx eoeoeePideZneePidZeiJiIdjoePideiYd~neo+epeiJiIdjo
eZneedjoePiQdqneZx3eD]+ZHeHdjoePiQde"ZPqzqzWepqnPqWxeoeoeePideZneePidZeiJiIdjoePideiYd~neo+epeiJiIdjo
eZneedjoePiQdqnPqWyeieeieWn ezj
oePiQdq XePid	nWdeiXq ne=oe"Zeid
e@oeAo
eZqb!n.eid\ZZepeiYd~neoweidZe7od
e7ZUndeZUeed~jodeUZndeUZePiWeeieq!nWn ej
oePiQdnXePidePiddS(s9.0sPrinter/Fax Setup Utilityshp-setupsInstalls HPLIP printers and faxes in the CUPS spooler. Tries to automatically determine the correct PPD file to use. Allows the printing of a testpage. Performs basic fax parameter setup.iN(t*(tdevicetutilsttuitmodelstmodule(tcupscCs3titd|||ti||dS(Nid(tpmtupdatetintRtformat_bytes(tctstt((s/usr/share/hplip/setup.pytplugin_download_callback2ss\*NickName:\s*\"(.*)"ttnamesAUsage: %s [MODE] [OPTIONS] [SERIAL NO.|USB bus:device|IP|DEVNODE]tsummarysAutomatic mode:s-a or --auto (-i mode only)toptions.To specify the port on a multi-port JetDirect:s9--port=<port> (Valid values are 1\*, 2, and 3. \*default)sNo testpage in automatic mode:s-x (-i mode only)s%To specify a CUPS printer queue name:s1-p<printer> or --printer=<printer> (-i mode only)s!To specify a CUPS fax queue name:s%-f<fax> or --fax=<fax> (-i mode only)sType of queue(s) to install:sW-t<typelist> or --type=<typelist>. <typelist>: print*, fax\* (\*default) (-i mode only)s%To specify the device URI to install:s1-d<device> or --device=<device> (--qt4 mode only)s/Remove printers or faxes instead of setting-up:s -r or --rm or --remove (-u only)s[SERIAL NO.|USB ID|IP|DEVNODE]theadingsUSB bus:device (usb only):sx"xxx:yyy" where 'xxx' is the USB bus and 'yyy' is the USB device. (Note: The ':' and all leading zeros must be present.)s3Use the 'lsusb' command to obtain this information.sIPs (network only):s$IPv4 address "a.b.c.d" or "hostname"sDEVNODE (parallel only):s"/dev/parportX", X=0,1,2,...s#SERIAL NO. (usb and parallel only):s"serial no."sSetup using GUI mode:s
$ hp-setuptexamples%Setup using GUI mode, specifying usb:s$ hp-setup -b usbs'Setup using GUI mode, specifying an IP:s$ hp-setup 192.168.0.101s$One USB printer attached, automatic:s$ hp-setup -i -asUSB, IDs specified:s$ hp-setup -i 001:002sNetwork:s$ hp-setup -i 66.35.250.209sNetwork, Jetdirect port 2:s$$ hp-setup -i --port=2 66.35.250.209s	Parallel:s$ hp-setup -i /dev/parport0s%USB or parallel, using serial number:s$ hp-setup -i US12345678AsUSB, automatic:s$ hp-setup -i --auto 001:002s!Parallel, automatic, no testpage:s!$ hp-setup -i -a -x /dev/parport0sParallel, choose device:s$ hp-setup -i -b parsx1. If no serial number, USB ID, IP, or device node is specified, the USB and parallel busses will be probed for devices.tnotes-2. Using 'lsusb' to obtain USB IDs: (example)s
   $ lsusbs9         Bus 003 Device 011: ID 03f0:c202 Hewlett-Packards   $ hp-setup --auto 003:011sn   (Note: You may have to run 'lsusb' from /sbin or another location. Use '$ locate lsusb' to determine this.)s?3. Parameters -a, -f, -p, or -t are not valid in GUI (-u) mode.s
hp-makeuritseealsoshp-probecCsDddk}dGHti|GHtd}|id}||fS(NiRs
Username: s
Password: (tgetpasstlogtboldt	raw_input(tpromptRtusernametpassword((s/usr/share/hplip/setup.pytshowPasswordUInscCs8tiidodStiidodSdSdS(Ns/etc/init.d/cupss/etc/init.d/cups restarts/etc/init.d/cupsyss/etc/init.d/cupsys restartskillall -HUP cupsd(tostpathtexists(((s/usr/share/hplip/setup.pytrestart_cupsxs
trun_as_root_oksaxp:P:f:t:b:d:rsttl=sfilter=ssearch=sfind=smethod=s	time-out=stimeout=sprinter=sfax=stype=sport=tautosdevice=trmtremovethandle_device_printeris-xs-Ps-ps	--printers-fs--faxs-ds--devices-bs--bust,t	error_msgsInvalid bus names-ts--typetprinttfaxs
Invalid type.s;Cannot enable fax setup - HPLIP not built with fax enabled.s--ports7Invalid port number. Must be between 1 and 3 inclusive.s-as--autos-rs--rms--removeisparam=%stqt3sX%s requires GUI support (try running with --qt4). Also, try using interactive (-i) mode.sX%s requires GUI support (try running with --qt3). Also, try using interactive (-i) mode.(t	setupforms,Unable to load Qt3 support. Is it installed?s+-r/--rm/--remove not supported in qt3 mode.slastWindowClosed()squit()tuitloctsystemsUsing system locale: %sRtutf8t.s&Trying to load .qm file for %s locale.shplip_%s.qmsName of .qm file: %ssUsing default 'C' localesUsing locale: %ssEUnable to connect to HPLIP I/O. Please (re)start HPLIP and try again.(tQApplicationtQMessageBox(tSetupDialogs,Unable to load Qt4 support. Is it installed?sStarting GUI loop...s*-r/--rm/--remove not supported in -i mode.s](Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)s
Using connection type: %stdevicess
Setting up device: %s
shpfax:shp:sModel=%sssupport-typesUnsupported printer model.sfax-typetplugint	installedt0sPLUG-IN INSTALLATIONs	hp-pluginshp-plugin -itseriestSeriest_thpsfound print queue '%s'thpfaxsfound fax queue '%s'sPRINT QUEUE SETUPs;One or more print queues already exist for this device: %s.s, s>
Would you like to install another print queue for this devicetnis_%dsL
Please enter a name for this print queue (m=use model name:'%s'*, q=quit) ?tqs	OK, done.tmsKA print queue with that name already exists. Please enter a different name.sIA fax queue with that name already exists. Please enter a different name.saInvalid character '%s' in printer name. Please enter a name that does not contain this character.sUsing queue name: %sshp-thp_s!Locating PPD file... Please wait.s'Unable to find an appropriate PPD file.s
Found PPD file: %ssDescription: %ssU
Note: The model number may vary slightly from the actual model number on the device.s0
Does this PPD file appear to be the correct onesB
Would you like to specify the path to the correct PPD file to usesH
Please enter the full filesystem path to the PPD file to use (q=quit) :s.gztrisDescription for the file: %ss?No PPD 'NickName' found. This file may not be a valid PPD file.s
Use this files0File not found or not an appropriate (PPD) file.s2PPD file required. Setup cannot continue. Exiting.sAutomatically setup by HPLIPs8Enter a location description for this printer (q=quit) ?s@Enter additonal information or notes for this printer (q=quit) ?s
Adding print queue to CUPS:sDevice URI: %ssQueue name: %ssPPD file: %ssLocation: %ssInformation: %ssRestarting CUPS...s(Restart CUPS returned: exit=%d output=%ss,You do not have permission to add a printer.saddPrinter() returned (%d, %s)s>Printer queue setup failed. Please restart CUPS and try again.s4Cannot setup fax - HPLIP not built with fax enabled.(R+s*Fax setup disabled - Python 2.3+ required.sFAX QUEUE SETUPs9One or more fax queues already exist for this device: %s.s<
Would you like to install another fax queue for this devicet_faxsJ
Please enter a name for this fax queue (m=use model name:'%s'*, q=quit) ?t t#t/t%s]Invalid character '%s' in fax name. Please enter a name that does not contain this character.sHP-Fax2-hpcupss
HP-Fax-hpcupss
HP-Fax2-hpijssHP-Fax-hpijssFound PDD file: %ssRUnable to find HP fax PPD file! Please check you HPLIP installation and try again.s
Adding fax queue to CUPS:s/You do not have permission to add a fax device.s:Fax queue setup failed. Please restart CUPS and try again.sFAX HEADER SETUPsD
Would you like to perform fax header setup (y=yes*, n=no, q=quit) ?tysPlease enter 'y' or 'n'tdisable_dbussMUnable to communicate with the device. Please check the device and try again.sOCould not communicate with device. Device may be busy. Please wait for retry...iisK
Enter the fax phone number for this device (c=use current:'%s'*, q=quit) ?s6
Enter the fax phone number for this device (q=quit) ?i2sPPhone number length is too long (>50 characters). Please enter a shorter number.s0123456789-(+) sGInvalid characters in phone number. Please only use 0-9, -, (, +, and )sN
Enter the name and/or company for this device (c=use current:'%s'*, q=quit) ?s9
Enter the name and/or company for this device (q=quit) ?sVName/company length is too long (>50 characters). Please enter a shorter name/company.s6Could not communicate with device. Device may be busy.s
Parameters sent to device.sPRINTER TEST PAGEs$
Would you like to print a test pageshp-testpages-p%ss-d%sshp-testpage %sspython ./testpage.py %ss	User exitsDone.(s-Ps-ps	--printer(s-fs--fax(s-ds--device(s-bs--bus(s-ts--type(sprintsfax(s-as--auto(s-rs--rms--remove(RsAutomatically setup by HPLIP(RERFRGRH(RsAutomatically setup by HPLIP(RIR?R@(t__version__t	__title__t__mod__t__doc__tsystgetoptttimetos.pathRtretgziptreadlinetImportErrortbase.gtbaseRRRRRtprntRtNoneRRtcompilet	MULTILINEtnickname_pattTruet
USAGE_MODEtUSAGE_GUI_MODEtUSAGE_INTERACTIVE_MODEtUSAGE_SPACEt
USAGE_OPTIONStFalsetUSAGE_LANGUAGEtUSAGE_LOGGING1tUSAGE_LOGGING2tUSAGE_LOGGING3t
USAGE_HELPtUSAGE_EXAMPLEStUSAGE_NOTESt
USAGE_SEEALSOtUSAGERR"tModuletINTERACTIVE_MODEtGUI_MODEtUI_TOOLKIT_QT3tUI_TOOLKIT_QT4tmodtparseStdOptstoptst
device_uritprinter_nametmodet
ui_toolkitR/tfax_nametbustsetup_printt	setup_faxtmakeuriR$ttestpage_in_auto_modetjd_portR&totat_[1]tsplittxtlowertstriptvalidateBusListtusagetaatpropt	fax_buildRterrorR	t
ValueErrortargstparamt
IndexErrortdebugtcanEnterGUIModetexittcanEnterGUIMode4tqtR.R-twarnR3targvtapptQObjecttconnecttSIGNALtSLOTt	user_conftgettstrt
QTextCodectlocaletetltjointQTranslatorttranstqm_filetloadtlocalization_dirtloadedtinstallTranslatortQLocalet
setDefaultt	setlocaletLC_ALLt	normalizetErrort	SetupFormtwt
setMainWidgettshowt	exec_looptPyQt4.QtGuiR4tui4.setupdialogR5tdlgtexec_tKeyboardInterrupttsetPasswordCallbacktinfotmakeURItsane_uritfax_uritconnection_tabletgetDeviceUritprobeDevicesRtreplacet	print_uritparseDeviceURItback_endtis_hptmodeltserialtdev_filethosttzctporttqueryModelByURItmqtSUPPORT_TYPE_NONEt
FAX_TYPE_NONEtFAX_TYPE_NOT_SUPPORTEDtnormalizeModelNamet
norm_modeltPLUGIN_NONER7tto_boolt	sys_statetplugin_installedtheadertwhicht	hp_plugint	gui_buildR0t
getSystemPPDstppdstxstript
default_modeltstripModel2tstripped_modeltgetSupportedCUPSDevicestinstalled_print_devicestkeystdtptinstalled_fax_devicestftwarningtenter_yes_notoktprinter_default_modeltiR
Rtname_okRtINVALID_PRINTER_NAME_CHARStgetPPDFile2t	print_ppdt	enter_ppdtdesctanst
user_inputt	file_pathR R!tisfiletendswithtGzipFiletreadtnicknametfiletsearchtgrouptAttributeErrortlocationtruntstatustoutputtsetPasswordPromptt
addPrintertencodet
status_strR+tfax_default_modeltfax_typethpcups_buildt
FAX_TYPE_SOAPtfax_ppd_nametfindtfax_ppdtgetFaxDevicetopenttriestgetPhoneNumtcurrent_phone_numtgetStationNametcurrent_station_nametsleept	phone_numtlentstation_nametsetStationNametsetPhoneNumtclosetprint_test_pagetcmd(((s/usr/share/hplip/setup.pyt<module>s
(		
					








6















"



	 









"
*!
&


*


	



!








*$



&
















!















	









!









(



	
(









Youez - 2016 - github.com/yon3zu
LinuXploit