403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/dulwich/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/dulwich/__pycache__/hooks.cpython-313.pyc
�

mEdg8���SrSSKrSSKrSSKJr "SS5r"SS\5r"S	S
\5r"SS\5r"S
S\5r	"SS\5r
g)zAccess to hooks.�N�)�	HookErrorc��\rSrSrSrSrSrg)�Hook�zGeneric hook object.c�,�[UR5e)z�Execute the hook with the given args.

Args:
  args: argument list to hook
Raises:
  HookError: hook execution failure
Returns:
  a hook may return a useful value
)�NotImplementedError�execute)�self�argss  �//usr/lib/python3/dist-packages/dulwich/hooks.pyr
�Hook.execute!s��"�$�,�,�/�/��N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r
�__static_attributes__rrr
rrs
���
0rrc�4�\rSrSrSrSSSjjrSrSrg)	�	ShellHook�.z�Hook by executable file.

Implements standard githooks(5) [0]:

[0] http://www.kernel.org/pub/software/scm/git/docs/githooks.html
Nc�L�XlX lX0lX@lXPlX`lg)a�Setup shell hook definition.

Args:
  name: name of hook for error messages
  path: absolute path to executable file
  numparam: number of requirements parameters
  pre_exec_callback: closure for setup before execution
    Defaults to None. Takes in the variable argument list from the
    execute functions and returns a modified argument list for the
    shell hook.
  post_exec_callback: closure for cleanup after execution
    Defaults to None. Takes in a boolean for hook success and the
    modified argument list and returns the final hook return value
    if applicable
  cwd: working directory to switch to when executing the hook
N)�name�filepath�numparam�pre_exec_callback�post_exec_callback�cwd)rr�pathrrrr s       r
�__init__�ShellHook.__init__6s$��2�	��
� �
�!2��"4���rc
��[U5UR:wa4[SURSURS[U5SU35eURbUR"U6n[
R"[RRURUR5/[U5QURS9nUS:wa;URbUR"S/UQ76 [SURSU35eURbUR"S	/UQ76$g![a% URbUR"S/UQ76 ggf=f)
z!Execute the hook with given args.zHook z. executed with wrong number of args. Expected z. Saw z. args: N�r rz exited with non-zero status r)�lenrrrr�
subprocess�call�osr!�relpathrr �listr�OSError)rr�rets   r
r
�ShellHook.executeXsQ���t�9��
�
�%����	�	�{�"P�QU�Q^�Q^�P_�_e�fi�jn�fo�ep�px�y}�x~���
��!�!�-��)�)�4�0�D�	2��/�/������������9�G�D��J�G�T�X�X��C��a�x��*�*�6��+�+�A�5��5��%��	�	�{�2O�PS�u� U�V�V��&�&�2��.�.�q�8�4�8�8�3���	2��&�&�2��'�'��1�D�1�3�	2�s�+B=D*�**E�E)r rrrrr)NNN��returnN�rrrrrr"r
rrrr
rr.s'������ �
� �D2rrc�"�\rSrSrSrSSjrSrg)�PreCommitShellHook�qzpre-commit shell hook.Nc�t�[RRUSS5n[R	USUSUS9 g)N�hooksz
pre-commitrr%�r)r!�joinrr")rr �
controldirrs    r
r"�PreCommitShellHook.__init__ts1���7�7�<�<�
�G�\�B�����4��x����Drrr/�rrrrrr"rrrr
r3r3qs�� �Err3c�"�\rSrSrSrSSjrSrg)�PostCommitShellHook�zzpost-commit shell hook.Nc�t�[RRUSS5n[R	USUSUS9 g)Nr6zpost-commitrr%r7�rr9rs   r
r"�PostCommitShellHook.__init__}s1���7�7�<�<�
�G�]�C�����4���!���Lrrr/r;rrr
r=r=zs��!�Mrr=c�"�\rSrSrSrSSjrSrg)�CommitMsgShellHook�zcommit-msg shell hook.Nc	��[RRUSS5nSnSn[R	USUSX4U5 g)Nr6z
commit-msgc���SSKnUR5up#[R"US5nUR	US5 SSS5 U4$!,(df   U4$=f)Nr�wb)�tempfile�mkstempr)�fdopen�write)rrH�fdr!�fs     r
�prepare_msg�0CommitMsgShellHook.__init__.<locals>.prepare_msg�sU���!�)�)�+�J�R����2�t�$������Q�� �%��7�N�%�$��7�N�s�A�
Ac���U(aC[USS5nUR5nSSS5 [R"US5 W$[R"US5 g!,(df   NC=f)Nr�rb)�open�readr)�unlink)�successrrM�new_msgs    r
�	clean_msg�.CommitMsgShellHook.__init__.<locals>.clean_msg�sS����$�q�'�4�(�A��f�f�h�G�)��	�	�$�q�'�"����I�I�d�1�g��	)�(�s�A%�%
A3rr7)rr9rrNrWs     r
r"�CommitMsgShellHook.__init__�s?���7�7�<�<�
�G�\�B��	�	�	����,��!�[�Z�	
rrr/r;rrr
rCrC�s
�� �
rrCc�(�\rSrSrSrSSjrSrSrg)�PostReceiveShellHook�zpost-receive shell hook.Nc�~�Xl[RRUSS5n[RUSUSS9 g)Nr6zpost-receiver)r!r)r9r)r!r8rr"r@s   r
r"�PostReceiveShellHook.__init__�s4��$���7�7�<�<�
�G�^�D�����4��h���Krc��[RRUR5(dg[RR5nURUS'[R"UR[R[R[RUS9nSRUVs/sHnSRU5PM sn5nURU5upgURS:wdU(a-SnX�RXg4-n	[U	RSS55eU$s snf![an
[[!U
55U
eSn
A
ff=f)	N�GIT_DIR)�stdin�stdout�stderr�env�
� rs0post-receive exit code: %d
stdout:
%s
stderr:
%szutf-8�backslashreplace)r)r!�existsr�environ�copyr9r'�Popen�PIPEr8�communicate�
returncoder�decoder,�repr)r�client_refsrd�p�ref�in_data�out_data�err_data�err_fmt�err_msg�errs           r
r
�PostReceiveShellHook.execute�s���w�w�~�~�d�m�m�,�,��	0��*�*�/�/�#�C�!�_�_�C�	�N�� � ��
�
� �o�o�!���!�����A��j�j�K�!H�K�S�$�)�)�C�.�K�!H�I�G�!"���w�!7��H�����!�h�W��!�\�\�8�$F�F������w�8J� K�L�L��O��"I���	0��D��I�&�C�/��	0�s+�BD9�9D4�AD9�4D9�9
E�E�E)r9r/r1rrr
r[r[�s��"�L�
0rr[)rr)r'�errorsrrrr3r=rCr[rrr
�<module>r|s`��,�	���
0�
0� @2��@2�FE��E�M�)�M�
��
�:$0�9�$0r

Youez - 2016 - github.com/yon3zu
LinuXploit