ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/up2date_client/__pycache__/rhnChannel.cpython-36.pyc
3

c8h@sddlmZddlmZddlmZddlmZddlmZddlZejddd	Ze	ed
sdeje_
ej
ZGdddZGd
ddZ
dddZgZdadddZddZddZddZdS))up2dateAuth)
up2dateLog)
up2dateErrors)config)	rhnserverNzrhn-client-toolsT)Zfallbackugettextc@sDeZdZddZddZddZddZd	d
ZddZd
dZ	dS)
rhnChannelcKs*i|_x|jD]}|||j|<qWdS)N)dictkeys)selfkwargskwr /usr/lib/python3.6/rhnChannel.py__init__szrhnChannel.__init__cCs
|j|S)N)r	)ritemrrr__getitem__szrhnChannel.__getitem__cCs||j|<dS)N)r	)rrvaluerrr__setitem__szrhnChannel.__setitem__cCs|jd|jdkS)Nname)r	)rotherrrr__lt__!szrhnChannel.__lt__cCs
|jjS)N)r	r
)rrrrr
$szrhnChannel.keyscCs
|jjS)N)r	values)rrrrr'szrhnChannel.valuescCs
|jjS)N)r	items)rrrrr*szrhnChannel.itemsN)
__name__
__module____qualname__rrrrr
rrrrrrrsrc@s<eZdZddZddZddZddZd	d
ZddZd
S)rhnChannelListcCs
g|_dS)N)list)rrrrr.szrhnChannelList.__init__cCs|jj|dS)N)rappend)rchannelrrr
addChannel3szrhnChannelList.addChannelcCs|jS)N)r)rrrrchannels7szrhnChannelList.channelscCs$x|jD]}|d|kr|SqWdS)Nlabel)r)rchannelnamer rrr
getByLabel:szrhnChannelList.getByLabelcCs
|j|S)N)r%)rr$rrr	getByName>szrhnChannelList.getByNamecCs.g}x$|jD]}|d|kr|j|qW|S)Ntype)rr)rr'r"r rrr	getByTypeAs
zrhnChannelList.getByTypeN)	rrrrr!r"r%r&r(rrrrr-srcCsdg}t|d}xP|jD]D}|ddkrR|d|d<d|d|d|df|d<|j|qW|S)	N)timeoutr'up2dater#rz%s channel %s from  %surldescription)getChannelsr"r)r)r"ZsourceChannelsZ
sourceChannelrrrgetChannelDetailsKs
r.c
Cs:tj}tj}to|rtatj|d}tj	sFt
jtd|j
jtj	}x|D]}|rr|d|krrq\tdtjd}x2|jD]&}	|	dkr|d|d<q||	||	<qW|dr
|d|d	<|d<|d
<|d<|jd|d	|jd
|jdtj|q\Wttjdkr6t
jtdtS)zG return rhnChannelList containing list of channel we are subscribed to )r)zUnable to Locate SystemIdr#r*)r'r+Z
last_modifiedversionZchannelOverriderr,Zsummaryz'WARNING: Channel overridden locally: %sz=-------: If you see this warning outside of the leapp processz$-------: contact CloudLinux support.rzEThis system may not be updated until it is associated with a channel.)rZinitUp2dateConfigrZinitLogselected_channelsrr	RhnServerrgetSystemIdrZNoSystemIdError_r*ZlistChannelsrZgetServerlURLFromMirrorr
Zlog_mer!lenrZNoChannelsError)
forcelabel_whitelistr)ZcfglogsZup2dateChannelsZchanr keyrrrr-^s2

$

r-cCs dattdd|}t|dS)NcSs|dfS)Nr)xrrr<lambda>szsetChannels.<locals>.<lambda>)r6)r0r	mapr-)ZtempchannelsZ	whitelistrrrsetChannelssr>cCstj}|jjtj|||S)N)rr1r*subscribeChannelsrr2)r"usernamepasswdr8rrrr?sr?cCstj}|jjtj|||S)N)rr1r*unsubscribeChannelsrr2)r"r@rAr8rrrrBsrB)N)NNN)Zup2date_clientrrrrrgettextZtranslationthasattrrr3rrr.Zcmdline_pkgsr0r-r>r?rBrrrr<module>s$


(