Uname : Linux serv1.rebootns.com 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
Soft : LiteSpeed
Ip : 139.99.125.122
Port : 443
~
/
opt
/
imunify360
/
venv
/
lib64
/
python3.11
/
site-packages
/
defence360agent
/
__pycache__
[ HOME ]
Exec
Submit
sentry.cpython-311.pyc
� ^~C(�)�� �z � d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z m Z mZ ddlZddl Z ddlmZ ddlmZ dZd Zd ZdZdZd ZdZ ed� � ZdZdefd�Zdefd�Zde e defd�Zdedefd�Zdedefd�Z d� Z!d� Z"defd�Z#d� Z$d� Z% d&ded e e& d!ed" d#e e d$e e f d%�Z'dS )'z2Helper for integrate sentry in stand-alone scripts� N)�suppress)�Path)�List�Optional�Literal)�tags)�sentry� imunify360zimunify-antiviruszimunify360-firewallz/var/imunify360/license.jsonz!/var/imunify360/license-free.json� IMUNIFYAV�UNKNOWNz,/opt/imunify360/venv/share/imunify360/sentryzQhttps://6de77a2763bd40c58fc9e3a89285aaa8@im360.sentry.cloudlinux.com/3?timeout=20�returnc � � t � d�� � � � � S # t t f$ r t cY S w xY w)z,Return dsn from the file or the default one.�ascii)�encoding)�SENTRY_DSN_PATH� read_text�strip�OSError�UnicodeDecodeError�SENTRY_DSN_DEFAULT� � �K/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/sentry.py�get_sentry_dsnr sW � �"��(�(�'�(�:�:�@�@�B�B�B���'�(� "� "� "�!�!�!�!�"���s �,/ �A � A c � � t t � � 5 t t fD ]�} t t � � 5 t | � � 5 }t j |� � d cd d d � � cd d d � � c cd d d � � S # 1 swxY w Y d d d � � n# 1 swxY w Y �� d d d � � n# 1 swxY w Y t S )N�id) r � Exception�LICENSE�LICENSE_FREE�FileNotFoundError�open�json�load� UNKNOWN_ID)�filename�files r � get_server_idr'