Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/twisted/runner/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/twisted/runner/__pycache__/inetdconf.cpython-310.pyc
o

�b��@s�dZddlmZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZGdd�d�ZGd
d�d�Z	Gdd�de�Z
Gdd�de�ZdS)z
Parser for inetd.conf files
�)�Optionalc@�eZdZdZdS)�InvalidConfErrorz$
    Invalid configuration file
    N��__name__�
__module__�__qualname__�__doc__�r
r
�:/usr/lib/python3/dist-packages/twisted/runner/inetdconf.pyr
�rc@r)�InvalidInetdConfErrorz!
    Invalid inetd.conf file
    Nrr
r
r
rr
rr
c@r)�InvalidServicesConfErrorz
    Invalid services file
    Nrr
r
r
rrrrc@r)�UnknownServicez
    Unknown service name
    Nrr
r
r
rrrrc@s@eZdZUdZdZdZeeed<ddd�Z	dd�Z
d	d
�ZdS)�SimpleConfFilez�
    Simple configuration file parser superclass.

    Filters out comments and empty lines (which includes lines that only
    contain comments).

    To use this class, override parseLine or parseFields.
    �#N�defaultFilenamecCs�d}|dur|jrt|j�}d}z.|��D]}|�|j�}|dkr'|d|�}|��}|s.q|�|�qW|r=|��dSdS|rF|��ww)z�
        Parse a configuration file

        If file is None and self.defaultFilename is set, it will open
        defaultFilename and use it.
        FNT���)r�open�	readlines�find�commentChar�strip�	parseLine�close)�self�filer�line�commentr
r
r�	parseFile2s&
��
�zSimpleConfFile.parseFilecCs4z
|j|���WdStytdt|���w)z�
        Override this.

        By default, this will split the line on whitespace and call
        self.parseFields (catching any errors).
        zInvalid line: N)�parseFields�split�
ValueErrorr
�repr)rrr
r
rrQs
�zSimpleConfFile.parseLinecGsdS)z 
        Override this.
        Nr
)r�fieldsr
r
rr ]szSimpleConfFile.parseFields�N)rrrr	rrr�str�__annotations__rrr r
r
r
rr%s
	
rc@s<eZdZdZdZdZdZdZdZdZ	dZ
dZdZdd�Z
dS)�InetdServicez3
    A simple description of an inetd service.
    Nc

Cs:||_||_||_||_||_||_||_||_|	|_dSr%)	�name�port�
socketType�protocol�wait�user�group�program�programArgs)
rr)r*r+r,r-r.r/r0r1r
r
r�__init__rs
zInetdService.__init__)rrrr	r)r*r+r,r-r.r/r0r1r2r
r
r
rr(csr(c@s&eZdZdZdZddd�Zdd�ZdS)	�	InetdConfz>
    Configuration parser for a traditional UNIX inetd(8)
    z/etc/inetd.confNcCs&g|_|durt�}|��||_dSr%)�services�ServicesConfr�
knownServices)rr6r
r
rr2�s

zInetdConf.__init__c
Gs�|�d�dgdd�\}}|jj�||fd�}	|	s:|�d�s:zt|�}	d}Wnty9td|�d|�d���w|j�t	||	|||||||�	�dS)	zx
        Parse an inetd.conf file.

        Implemented from the description in the Debian inetd.conf man page.
        �.N�zrpc/�unknownzUnknown service: z (�))
r!r6r4�get�
startswith�int�
BaseExceptionr�appendr()
r�serviceNamer+r,r-r.r0r1r/r*r
r
rr �s,	���zInetdConf.parseFieldsr%�rrrr	rr2r r
r
r
rr3�s

r3c@s$eZdZdZdZdd�Zdd�ZdS)r5zj
    /etc/services parser

    @ivar services: dict mapping service names to (port, protocol) tuples.
    z
/etc/servicescCs
i|_dSr%)r4)rr
r
rr2�s
zServicesConf.__init__cGsfz
|�d�\}}t|�}Wntytdt|�����w||j||f<|D]	}||j||f<q'dS)N�/zInvalid port/protocol: )r!r=r>rr#r4)rr)�portAndProtocol�aliasesr*r,�aliasr
r
rr �s���zServicesConf.parseFieldsNrAr
r
r
rr5�s
r5N)r	�typingr�	Exceptionrr
rrrr(r3r5r
r
r
r�<module>s>4

Spamworldpro Mini