403Webshell
Server IP : 198.38.94.13  /  Your IP : 216.73.217.33
Web Server : Apache
System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : revivere ( 1140)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/znc.cpython-310.pyc
o

;j	�@stdZddlZddlZddlZddlZddlZddlZe�	e
�Zdd�Zddd�Z
dd	�Zd
d�Zdd
�Zdd�ZdS)zm
znc - An advanced IRC bouncer

.. versionadded:: 2014.7.0

Provides an interface to basic ZNC functionality
�NcCstjj�d�r	dSdS)z2
    Only load the module if znc is installed
    �znc)Fz Module znc: znc binary not found)�salt�utils�path�which�rr�D/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/znc.py�__virtual__sr	�sha256csr|dkr
t�|�}n|dkrt�|�}ntSd�|jd��fdd�td�D��d�}|�|d	�|��|d
<|S)z1
    Create a znc compatible hashed password
    r
�md5zKabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!?.,:;/*-+_()�c3s�|]
}t�����VqdS)N)�random�SystemRandom�choice)�.0�x��crr�	<genexpr>,s�z_makepass.<locals>.<genexpr>�)ZMethod�SaltrZHash)	�hashlibr
r�NotImplemented�name�join�range�update�	hexdigest)�passwordZhasher�h�rrrr�	_makepasss�r!cGsNdd�|D�}|rd�d�|��Sdg}|�|�td|dd���}|d	S)
z�
    Build module using znc-buildmod

    CLI Example:

    .. code-block:: bash

        salt '*' znc.buildmod module.cpp [...]
    cSsg|]
}tj�|�s|�qSr)�osr�exists)r�modulerrr�
<listcomp>Aszbuildmod.<locals>.<listcomp>z$Error: The file ({}) does not exist.z, zznc-buildmod�cmd.runF�Zpython_shell���)�formatr�extend�__salt__�
splitlines)�modules�missing�cmd�outrrr�buildmod6s
r1cC�tddtjd�S)z�
    Write the active configuration state to config file

    CLI Example:

    .. code-block:: bash

        salt '*' znc.dumpconf
    �ps.pkillr��signal)r+r5�SIGUSR1rrrr�dumpconfK�
r7cCr2)z�
    Rehash the active configuration state from config file

    CLI Example:

    .. code-block:: bash

        salt '*' znc.rehashconf
    r3rr4)r+r5�SIGHUPrrrr�
rehashconfXr8r:cCs2ddg}td|dd���}|d�d�}|dS)z|
    Return server version from znc --version

    CLI Example:

    .. code-block:: bash

        salt '*' znc.version
    rz	--versionr&Fr'rz - )r+r,�split)r/r0�retrrr�versiones
r=)r
)�__doc__r�loggingZos.pathr"r
r5Zsalt.utils.pathr�	getLogger�__name__�logr	r!r1r7r:r=rrrr�<module>s

	


Youez - 2016 - github.com/yon3zu
LinuXploit