HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/twisted/conch/client/__pycache__/options.cpython-38.pyc
U


W[1�@sFddlmZmZddlmZddlmZddlZGdd�dej�Z	dS)�)�SSHClientTransport�
SSHCiphers)�usage)�unicodeNc
@s@eZdZddddgdddgdddgd	d
dgdddd
gddddgdddgddddgddddgddddgg
Zdddgdddgdd d!gd"d#d$gd%d&d'gd(d)d*gd+d,d-ggZejd.ge��eje	j
��d/d0�eje	j��d1d0�eje
jd2d0�d3�e��ejd4d0�ejd5d6d7�gd8�Zd9d:�Zd;d<�Zd=d>�Zd?d@�ZdAdB�ZdCdD�ZdS)E�ConchOptions�user�lNzLog in using this user name.Zidentity�i�ciphers�c�macs�mZport�pz7Connect to this port.  Server must be on the same port.Zoption�ozIgnored OpenSSH options�host-key-algorithms�zknown-hostszFile to check for host keys�user-authenticationsz%Types of user authentications to use.ZlogfilezFile to log to, or - for stdout�version�VzDisplay version number only.�compress�CzEnable compression.�log�vz#Enable logging (defaults to stderr)Znox11�xz+Disable X11 connection forwarding (default)�agent�Az&Enable authentication agent forwarding�noagent�az1Disable authentication agent forwarding (default)Z	reconnect�rz2Reconnect to the server if the connection is lost.)rrzciphers to choose from)�descrzmacs to choose fromz"host key algorithms to choose from)rr
rrZcommandZargumentT)r�repeat)ZmutuallyExclusiveZ
optActionsZextraActionscOs$tjj|f|�|�g|_d|_dS)N)r�Options�__init__�	identitysZconns)�self�args�kw�r'�>/usr/lib/python3/dist-packages/twisted/conch/client/options.pyr"8szConchOptions.__init__cCs|j�|�dS)z&Identity for public-key authenticationN)r#�append)r$r	r'r'r(�opt_identity=szConchOptions.opt_identitycCs8|�d�}|D]}|tjkrt�d|�q||d<dS)zSelect encryption algorithms�,zUnknown cipher type '%s'r
N)�splitr�	cipherMap�sys�exit)r$r
Zcipherr'r'r(�opt_ciphersAs


zConchOptions.opt_cipherscCsLt|t�r|�d�}|�d�}|D]}|tjkr"t�d|�q"||d<dS)zSpecify MAC algorithms�utf-8�,zUnknown mac type '%r'rN)�
isinstancer�encoder,r�macMapr.r/)r$rZmacr'r'r(�opt_macsJs



zConchOptions.opt_macscCsLt|t�r|�d�}|�d�}|D]}|tjkr"t�d|�q"||d<dS)zSelect host key algorithmsr1r2zUnknown host key type '%r'rN)r3rr4r,r�supportedPublicKeysr.r/)r$ZhkasZhkar'r'r(�opt_host_key_algorithmsTs



z$ConchOptions.opt_host_key_algorithmscCs&t|t�r|�d�}|�d�|d<dS)z/Choose how to authenticate to the remote serverr1r2rN)r3rr4r,)r$Zuasr'r'r(�opt_user_authentications^s

z%ConchOptions.opt_user_authentications)�__name__�
__module__�__qualname__Z
optParametersZoptFlagsrZCompletionsZCompleteUsernamesZCompleteMultiListrr-�keysr5rr7ZCompleteUserAtHostZ	CompleterZcompDatar"r*r0r6r8r9r'r'r'r(rs`





��	����
���	

r)
Ztwisted.conch.ssh.transportrrZtwisted.pythonrZtwisted.python.compatrr.r!rr'r'r'r(�<module>s