One Hat Cyber Team
Your IP :
3.129.149.196
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
tier2c
/
__pycache__
/
Edit File:
mv_backup.cpython-39.pyc
a �gV � @ sv d Z ddlmZ ddlZddlZddlZej�dd� ddlm Z m Z eeef d�dd�Zd d � Z edkrre � dS )z%Move cpanel backups to and from /home� )�PathNz/opt/support/lib)�cpmove_file_type�path_in_home)�returnc C sD t jtd�} | jddtdd� | jddtdd� | �� }|j|jfS ) z0Validate and return source and destination paths)�description�srcZSOURCEzcPanel backup file)�metavar�type�help�dstZDESTINATIONzdestination folder) �argparse�ArgumentParser�__doc__�add_argumentr r � parse_argsr r )�parser�args� r �./opt/tier2c/mv_backup.pyr s ��r c C sx t � \} }|�| j�}z.tt�t| ��dt�t|��� | �|� W n. tyr } zt � |� W Y d}~n d}~0 0 dS )z<Validate input, then move a cpanel backup in or out of /homez->N)r �joinpath�name�print�shlex�quote�str�rename�OSError�sys�exit)�sourceZdest_dir�dest�excr r r �main s r"