Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /usr/share/system-config-network/netconfpkg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/system-config-network/netconfpkg/NCDialup.pyo
OLc@sXddkZddklZddklZddklZlZlZl	Z	l
Z
lZlZl
Z
lZddklZddklZlZlZlZlZlZlZddklZdefd	YZd
efdYZdefd
YZdZdZhede6ede6Z hJded6ded6ded6ded6ded6ded6ded6ded6d ed!6d"ed#6d$ed%6d&ed'6d(ed)6d*ed+6d,ed-6d*ed.6d/ed06d1ed26d3ed46d5ed66d7ed86d9ed:6d;ed<6d=ed>6d?ed@6dAedB6dCedD6dEedF6dGedH6dIedJ6dKedL6dMedN6dOedP6dQedR6dSedT6dUedV6dWedX6dYedZ6d[ed\6d]ed^6d_ed`6daedb6dcedd6deedf6dgedh6diedj6dkedl6dmedn6doedp6dqedr6dsedt6duedv6d5edw6dxedy6dzed{6d|ed}6d~ed6dGed6d[ed6ded6ded6ded6ded6ded6ded6ded6ded6ded6ded6ded6d*ed6ded6ded6ded6Z!defdYZ"de"fdYZ#de"fdYZ$de"fdYZ%dZ&dS(iN(tCallback(tCompression(	t_tgetRoottlogtunlinktgetCHAPConft
getPAPConft
WVDIALCONFtmkdirtPPPDIR(tConfSMB(t	Gdtstructtgdtstruct_propertiestGdtstrtGdtlisttGdtbooltGdtinttgdtlist_properties(tNCHardwareListt	PPPOptioncBseZRS((t__name__t
__module__(((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyRst
PPPOptionscBseZeeRS((RRRR(((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyR"stDialup_basec*BseZdZededfdedfdedfdedfdedfdedfd	edfd
edfdedfdedfd
edfdedfdedfdedfdedfdedfdedfdedfdedfdedfdedfdedfdedfdedfdedfdedfd edfd!ed"fd#ed$fd%edfd&edfd'edfd(edfd)edfd*edfd+edfd,edfd-edfd.e	dfg'd/Z
d0Zd1Zd2Z
RS(3sDialup structuretHostnamesTest doc stringtProviderNametLogintPasswordtAuthenticationtMSNs	VALUE="0"tPrefixtAreacodet
RegioncodetPhoneNumbertLocalIPtRemoteIPtPersisttDefRoutetInheritst	ChargeHupt	ChargeInttIhuptDialMaxs	VALUE="3"tLayer2sVALUE="hdlc"tLayer3s
VALUE="trans"tMruRt
StupidModetDialinServertChannelBundlingt	EncapModet
HangupTimeoutsVALUE="600"tDialModesVALUE="manual"tSlaveDevicet	EthDevicetServiceNametAcNametSyncPPPt
InitStringtSecuret
PhoneInNumberRRcCstt|id|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_t|_d|_d|_d|_d|_d|_d|_ d|_!d|_"d|_#d|_$d|_%d|_&d|_'d|_(t)|_)t*|_*dS(NiX(+tsuperRt__init__tNoneRRRRRRRR R!R"R#R$R%R&R'R(R)R*R+R,R-R.RR/R0R1R2R3R4R5R6R7R8R9R:R;R<RR(tself((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyR>QsP																																				cCs!|ipt|_n|iS(N(R(R@((s7/usr/share/system-config-network/netconfpkg/NCDialup.pytcreateCallbacks
cCs!|ipt|_n|iS(N(R(R@((s7/usr/share/system-config-network/netconfpkg/NCDialup.pytcreateCompressions
cCs!|ipt|_n|iS(N(R(R@((s7/usr/share/system-config-network/netconfpkg/NCDialup.pytcreatePPPOptionss
(RRt__doc__R
RRRRRRR>RARBRC(((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyR%sZ	0		tautotmanualiR?i]tAfghanistanictAlbaniaitAlgeriaisAmerican SamoaixtAndorrai6t	Argentinai=t	Australiai+tAustriaiwtBelarusi tBelgiumisBosnia and Hercegovinai7tBrazilisBritish Virgin IslandsigtBulgariatCanadaisCentral African Republici8tChileiVtChinai/tColombiaitCroatiai5tCubaietCyprusisCzech Republici-tDenmarkiftFinlandi!tFrancei1tGermanyitGreeceiTs	Hong Kongi$tHungaryibtIcelandi[tIndiai>t	IndonesiaiatIrelanditIsraeli'tItalyiQtJapanit
KazakhstaniRsKorea NorthiRsKorea Republicit
Liechtensteinirt	Lithuaniai`t
Luxembourgit	Macedoniai<tMalaysiaidtMaltai4tMexicoiutMoldovaiytMonacoitNetherlandsi@sNew ZealandtNorwayit	Palestinei?tPhilippinesi0tPolandi_tPortugaltRomaniatRussiaiAt	SingaporeitSlovakiaitSloveniai"tSpaini.tSwedeni)tSwitzerlandivtTaiwaniBtThailandiZtTurkeyi|tUkrainei,sUnited KingdomsUnited States of AmericaiTtVietnami}tSerbiat
MontenegrotDialupcBs-eZdZhdd6ZdZdZRS(sClass for all Dialup InterfacestMRUR.c	Cs|}|i}xc|iiD]R}|i|}|i|o/t||ot||t||qqW|ido+|ddjo
t|_qt	|_n|i
ot|dp|id
jo
d|_ntidd|i
t}t}x||gD]}|i|i
otidd||i
||i
ido||i
d|_n||i
i|o0||i
||_tidd|iPqqqWntidd	d
S(s*Load the Configuration from the parentConftDEMANDtyesRtisLooking for %ssFound %st*sNo self.login!!!N(tDeviceIdt
intkeydicttkeysthas_keytlentsetattrtinttDM_AUTOR4t	DM_MANUALRthasattrRR?RRR(	R@t
parentConftparenttconftdevidstrtselfkeytconfkeytpapconftchapconf((s7/usr/share/system-config-network/netconfpkg/NCDialup.pytloads8	
!"


!
		
c	CsGtidd|}xh|iiD]W}|i|}t||o-t||ott||||<q&||=q&W|idjozt}t	}t|i
||i<t|i
||i<t|i
||i|g<t|i
||i|g<n|itjod|d<nd|d<tidddS(s$Save the Configuration to parentConfisDialup.saveRRtnos
Dialup.endN(
RRRRtgetattrtstrRR?RRRR4R(	R@RtdeviceidtolddeviceidRRRRR((s7/usr/share/system-config-network/netconfpkg/NCDialup.pytsaves&
 		 
(RRRDRRR(((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyRs

	$t	DslDialupcBskeZdZhdd6dd6dd6Zhdd6d	d
6dd6d
d6dd6dd6ZdZdZRS(s#Class for all DSL Dialup InterfacestSYNCHRONOUSR9tPERSISTR%tDEFROUTER&tPROVIDERRtUSERRtETHR6tSLAVE_DEVICER5tSERVICENAMER7tACNAMER8cCs4|}xL|iiD];}|i|}|i|ot||||qqWx}|iiD]l}|i|}|i|o9||djot||tqt||tqet||tqeWti||||ido|d|_	n|idot
|d|_ndS(s*Load the Configuration from the parentConfRtPASStIDLETIMEOUTN(tkeydictRRRtboolkeydicttTruetFalseRRRRR3(R@RRRRR((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyR>s&

c
	Csti|||||}xe|iiD]T}|i|}t||o't||ot||||<q,d||<q,Wx\|iiD]K}|i|}t||ot||od||<qd||<qW|io^|ioTt	}t
}t|i||i|ig<t|i||i|ig<n|i
ot|i
|d<n|idpd|d<n|idpd|d<n|id	pd
|d	<n|idpd|d<n|id
pd|d
<n|idpd|d<n|idpd|d<n|idpd|d<n|idpd|d<nx*|iD]}	||	p||	=qqW|ido|d=n|idpd|d<n|idS(s$Save the Configuration to parentConfRRRRtCONNECT_TIMEOUTt60tCONNECT_POLLt6tCLAMPMSSt1412tLCP_INTERVALt20tLCP_FAILUREt3t
PPPOE_TIMEOUTt80tPINGt.tFIREWALLtNONEtPIDFILEs/var/run/pppoe-adsl.pidRtPEERDNSN(RRRRRRRRR8RRRRR3Rtwrite(
R@RRRRRRRRti((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyR[s`
 
 		#

(RRRDRRRR(((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyR/s



	t
IsdnDialupcBseZdZhdd6dd6dd6Zhdd6d	d
6Zhdd6dd
6dd6dd6dd6dd6dd6dd6dd6dd6dd6d d!6d"d#6d$d%6d&d'6d(d)6d*d+6d,d-6d.d/6d0d16Zd2Zd3ZRS(4s$Class for all ISDN Dialup InterfacestSECURER;tBUNDLINGR1RR%tDIALMAXR+t
HUPTIMEOUTR3RRRRRtPASSWORDRtENCAPR2tDIALMODER4tPREFIXRtAREACODER t
REGIONCODER!t	PHONE_OUTR"tPHONE_INR<tDNS1t
PrimaryDNStDNS2tSecondaryDNSt	CHARGEHUPR(t	CHARGEINTR)tAUTHRtIHUPR*RR5tL2_PROTR,tL3_PROTR-c	
Cs|}xL|iiD];}|i|}|i|ot||||qqWxc|iiD]R}|i|}|i|o/t||ot||t||qeqeWx}|iiD]l}|i|}|i|o9||djot||tq7t||t	qt||t	qWt
i||||ido+|ddjo
t|_qt	|_n|idpG|`
|d}x4|iD]"}t|}|i
i|qWn|o|ido|d|_n|ido|d|_n|ido+|ddjo
t|_qdt	|_qhn|ii||ido@|dd	jp|dd
jo|ii|q|`n|ido|d|_n|i|idS(
s*Load the Configuration from the parentConftonRRt
PPPOPTIONStLOCAL_IPt	REMOTE_IPtBOOTtCALLBACKtintoutRN(RRRRRRRRRRRRR&RtsplitRtappendtIPtGatewaytOnBootRRRtcommitt
setunmodified(	R@RRRRRtoptionstotopt((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyRsb

!"





"

cCstiddti|||||}xk|iiD]Z}|i|}t||o-t||djot||||<q<d||<q<Wxq|iiD]`}|i|}t||o3t||djot	t||||<qd||<qWxb|i
iD]Q}|i
|}t||o$t||tjod||<qd||<qW|iod|d<nd|d<|i
d	oA|d	djo0|d
o|d
=n|do|d=qn|ioMd}x6|iD]+}|djo|d}n||}qW||d
<n|d
=|i
do|d=n|i
do|d=n|i
do|d=n|i
do|d=n|io|ii|ntidd|io$|ii|d<|ii|nd|d<|ddjo<x9ddddgD]!}	|i
|	o||	=q:q:Wnx*|iD]}
||
p||
=qpqpW|i
d	pd|d	<n|itidddS(s$Save the Configuration to parentConfisIsdnDialup.saveRRtoffRRRRRRt RRRRRs
Callback.saveRtCBHUPtCBDELAYtCBCPtCBCP_MSNsIsdnDialup.save endN(RRRRRRRR?RRRRR&RRRRtTypeR(R@RRRRRRRtvaltkeyR((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyR	s
&
&
&

!







(RRRDRRRRR(((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyRs8





	HtModemDialupcBsheZdZhdd6Zhdd6dd6dd6dd	6d
d6ZdZd
ZdZdZRS(s%Class for all Modem Dialup InterfacessStupid ModeR/tUsernameRRsDial PrefixRs	Area CodeR tPhoneR"c
Csr|i}|ido|d}ntidtt}d|}x|iiD]}|i|}d}|i|o&||i|o|||}n7|ido&|di|o|d|}n|ot|||qZqZWx|i	iD]}|i	|}d}|i|o&||i|o|||}n7|ido&|di|o|d|}n|o!|djot||t
qt||tqWti
||||i|o)||ido||d|_n|io|ii
|n|ido|d|_n|ido|dd	j|_n|id
o|d
d	j|_n|idot|d|_n|idoA|d}	x:|	iD]"}
t|
}|ii|qWn|`|id
o|d
|_n(||ido||ddjo|ido|dido|dido|dd}|dd}
x|iD]}t|djp|d djoqn||idoL||ido8||d|jo#||d|
jo||_PqqWqnndS(s*Load the Configuration from the parentConft
WVDIALSECTtfilenamesDialer sDialer Defaultst0tInit3RRRRRRt	MODEMNAMER'tModemtBaudiN(RRRRRtwvdictRR?Rt
boolwvdictRRRRR:RRR%R&RR3RRRRR'R(R@RRtnameRtsectnameRRtvalueRRRtmodemdevt	modembaudtsect((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyRjs	

$
$$



$	cCs9ti|||||io|i}||d<|}n
d}d}||d<d|}|i|||io|i|d<n|ioMd}x6|iD]+}|djo|d}n||}qW||d	<nd|d	<|iod
|d<nd|d<|iod
|d
<nd|d
<|i	o|i	|d<n|i
ot|i
|d<n|iosti
}	xd|	D]X}
|
i|ijo?|
io1t|
ii|d<t|
ii|d<PqqqWn|idpd|d<n|io|ii|n|i|||dS(s$Save the Configuration to parentConfRRtDefaultRsDialer tPAPNAMERRRRRRRRRt	MODEMPORTt	LINESPEEDRN(RRR'twrite_wvdialRRR?R%R&RR3RRtgetHardwareListtNameRt
DeviceNametBaudRateRRtwrite_peers(R@RRRtdevnameRRRRthwlistthw((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyRsZ
	

















cCstidtt}|id|i|pti||||<nx|iiD]}}|i|}t||o7t	||d
jo!tt	|||||<q`||i|o|||=q`q`Wxd|iiD]S}|i|}t||o"t	||od|||<qd|||<qW||ido||d=n||idpd||d<n|i
ot|i
||d<n|||d	<x*|iD]}||p||=qqW|id
S(sWrite the wvdial sectionRit1RtInittInit1tATZRR'N(RRRtchmodRtConfSMBSubDictRRRRR?RRR:R(R@RRRRRR((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyRs:

&!
 

cCsttd}tii|pt|n|o||jot||n||}yWt|d}td||f}|i	|dt
id|||iWnt
j
onXdS(Ns/peers/tws5connect "/usr/bin/wvdial --remotename %s --chat '%s'"s
i(RR
tostpathtisdirR	RtopenRRRtlchtclosetKeyError(R@RRRtpeerdirRtmfiletline((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyR6s
(	RRRDRRRRRR(((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyR]s


	a	A	*s Harald Hoyer <harald@redhat.com>('R tnetconfpkg.NCCallbackRtnetconfpkg.NCCompressionRtnetconfpkg.NC_functionsRRRRRRRR	R
tnetconfpkg.confRtnetconfpkg.gdtRR
RRRRRt
netconfpkgRRRRRRt	DialModest__country_codeRRRRt
__author__(((s7/usr/share/system-config-network/netconfpkg/NCDialup.pyt<module>s@4k








































































Iq

haha - 2025