AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/cloudinit/handlers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/cloudinit/handlers/__pycache__/boot_hook.cpython-310.pyc
o

x[h��@sPddlZddlZddlmZmZmZddlmZe�e	�Z
Gdd�dej�ZdS)�N)�handlers�subp�util)�
PER_ALWAYSc@s*eZdZdgZdd�Zdd�Zdd�ZdS)	�BootHookPartHandlerz#cloud-boothookcKs6tj�|t�|�d�|_d|_|r|��|_dSdS)N�	boothooks)r�Handler�__init__r�	get_ipath�boothook_dir�instance_id�get_instance_id)�self�paths�
datasource�_kwargs�r�>/usr/lib/python3/dist-packages/cloudinit/handlers/boot_hook.pyr	s�zBootHookPartHandler.__init__cCsJt�|�}tj�|j|�}tjt�|�|jdd�}t�	||�
�d�|S)Nr)�prefixi�)r�clean_filename�os�path�joinr�strip_prefix_suffix�dos2unix�prefixes�
write_file�lstrip)r�payload�filename�filepath�contentsrrr�_write_part s
�zBootHookPartHandler._write_partcCs�|tjvrdS|�||�}z|jrdt|j�ini}t�d�tj|g|dd�WdStjy<t	�
td|�YdStyLt	�
td|�YdSw)N�INSTANCE_IDzExecuting boothookF)�
update_env�capturez#Boothooks script %s execution errorz'Boothooks unknown error when running %s)r�CONTENT_SIGNALSr"r�str�LOG�debugr�ProcessExecutionErrorr�logexc�	Exception)r�data�ctyperr�	frequencyr �envrrr�handle_part)s"
��

��zBootHookPartHandler.handle_partN)�__name__�
__module__�__qualname__rr	r"r1rrrrrs
	r)
�loggingr�	cloudinitrrr�cloudinit.settingsr�	getLoggerr2r(rrrrrr�<module>s



Anon7 - 2022
AnonSec Team