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: //lib/python3/dist-packages/twisted/words/__pycache__/tap.cpython-38.pyc
U


W[v	�@s�dZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZm
Z
ddlmZmZmZmZGd	d
�d
ejej�Zdd�ZdS)
z
Shiny new words service maker
�N)�strports)�MultiService)�usage)�plugin)�iwords�service)�checkers�credentials�portal�strcredc@s�eZdZejgZdde��dfgZe	j
dgd�ZiZdZ
e�ej�D]>Z
e
jeksVt�e
ee
j<e�e
jdddde
jdf�qD[
d	d
�Zdd�Zd
d�ZdS)�Options�hostnameNz*Name of this server; purely an informative�group)ZmultiUse�-portz2strports description of the port to bind for the  z servercOs tjj|f|�|�g|d<dS)N�groups)rr�__init__)�self�a�kw�r�3/usr/lib/python3/dist-packages/twisted/words/tap.pyr%szOptions.__init__cCs|d�|�tjj��dS)z+Specify a group which should exist
        rN)�append�decode�sys�stdin�encoding)r�namerrr�	opt_group)szOptions.opt_groupcCs|�t�|��dS)z�
        Name of a passwd-style file. (This is for
        backwards-compatibility only; you should use the --auth
        command instead.)
        N)Z
addCheckerrZFilePasswordDB)r�filenamerrr�
opt_passwd.szOptions.opt_passwd)�__name__�
__module__�__qualname__r	ZIUsernamePasswordZsupportedInterfaces�socketZgethostnameZ
optParametersrZCompletionsZcompData�interfacePluginsZplgrZ
getPluginsrZIProtocolPluginr�AssertionErrorrrrrrrrrrs*
��
�rc
Cs�|�dg�}t�|d�}t�||�}t�}|jD]B}|�|d�}|dk	r2|j|�||�}t�||�}|�	|�q2|dD]}	|�
|	�q~|S)N�credCheckersr
rr)�getrZInMemoryWordsRealmr
ZPortalrr$Z
getFactoryrZsetServiceParentZcreateGroup)
Zconfigr&Z
wordsRealmZwordsPortalZmsvcZplgNameZport�factoryZsvc�grrr�makeService6s
r*)�__doc__rr#Ztwisted.applicationrZtwisted.application.servicerZtwisted.pythonrZtwistedrZ
twisted.wordsrrZtwisted.credrr	r
rrZAuthOptionMixinr*rrrr�<module>s$