403Webshell
Server IP : 77.50.203.18  /  Your IP : 192.168.0.10
Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23
System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64
User : warsnews.ru ( 1001)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/thread-self/root/lib/python3.9/site-packages/tracer/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/lib/python3.9/site-packages/tracer/__pycache__/hooks.cpython-39.pyc
a

"e;�@sHddlZddlmZddlmZiZGdd�de�Zdd�Zdd	�Z	dS)
�N)�
HOOKS_DIRS)�load_sourcec@s eZdZdZdd�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.
	cCs
t�dS�N)�_register_hooks)�self�r�0/usr/lib/python3.9/site-packages/tracer/hooks.py�__init__!szHooksObserver.__init__cCs"|tvrdSdd�t|D�dS)NcSsg|]
}|��qSrr)�.0�frrr	�
<listcomp>(�z*HooksObserver.__call__.<locals>.<listcomp>)�_hooks)r�apprrr	�__call__$szHooksObserver.__call__N)�__name__�
__module__�__qualname__�__doc__r
rrrrr	rsrcs�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.

	cs>t��tkr�n�gD]"}|tvr*gt|<t|�|�q|Sr)�type�listr�append)rr��appsrr	�	decorator;s
zmatch.<locals>.decoratorr)rrrrr	�match+srcCsntD]d}t�|�D]T\}}}|D]D}tj�|�d}zt|tj�||��Wq tybYq Yq 0q qqdS)Nr)r�os�walk�path�splitextr�join�	Exception)Zhook_dir�root�dirs�files�fname�modnamerrr	rDsr)
rZtracer.pathsrZtracer.resources.pycomprr�objectrrrrrrr	�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit