⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.24
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.9
/
site-packages
/
tracer
/
__pycache__
/
View File Name :
hooks.cpython-39.opt-1.pyc
a "e; ã @ sH d dl Z d dlmZ d dlmZ i ZG dd„ deƒZdd„ Zdd „ Z dS ) é N)Ú HOOKS_DIRS)Úload_sourcec @ s e Zd ZdZdd„ Zdd„ ZdS )Ú HooksObserverzà Provides interface for calling user hooks When initializing, loads all hooks located in HOOKS_DIRS. Then it can called with application name as argument. Observer ensures calling all hooks defined for the application. c C s t ƒ d S ©N)Ú_register_hooks)Úself© r ú0/usr/lib/python3.9/site-packages/tracer/hooks.pyÚ__init__! s zHooksObserver.__init__c C s" |t vrd S dd„ t | D ƒ d S )Nc S s g | ] }|ƒ ‘qS r r )Ú.0Úfr r r Ú
( ó z*HooksObserver.__call__.
.
)Ú_hooks)r Úappr r r Ú__call__$ s zHooksObserver.__call__N)Ú__name__Ú __module__Ú__qualname__Ú__doc__r r r r r r r s r c s ‡ fdd„}|S )a Decorator for tracer hooks. Example:: from tracer import hooks @hooks.match("foo") def hook_app(): print("Hey, application foo was found") .. note:: You can match multiple applications by calling ``@hooks.match`` with list of them. c s> t ˆ ƒtkrˆ nˆ gD ]"}|tvr*g t|<