One Hat Cyber Team
Your IP :
18.118.140.120
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:
safe_removeacct.cpython-39.pyc
a �g� � @ sd d Z ddlZddlZddlZej�dd� ddlmZ ddlm Z dd� Z dd � Zed kr`e� dS )zremoveacct wrapper for T2C� Nz/opt/support/lib)�cpuser_safe_arg)�cpuwatch_execvc C s* t jdd�} | jddtd� | �� }|jS )zParse commandline argumentsz�Wrapper around CPanel removeacct. Do not use this unless you have a valid backup of the account, as it is irreversible. Improper use may result in loss of access and disciplinary action.)�description�userzAccount to destroy)�help�type)�argparse�ArgumentParser�add_argumentr � parse_argsr )�parser�args� r �./opt/tier2c/safe_removeacct.pyr s �r c C s6 t � } d}t�tj�|��s&t�d� td| g� dS )z<main: parse args, determine size, prompt, and run removeacctz�WARNING: This cannot be undone. Please confirm that you have a valid backup of this account. Misuse of this tool can lead to downgrading of access and disciplinary action.zExiting on user inputz$/usr/local/cpanel/scripts/removeacctN)r �radsZ prompt_y_nZcolorZred�sys�exitr )r �msgr r r �main s � r �__main__) �__doc__r r r �path�insertZ arg_typesr Zrun_cmdr r r �__name__r r r r �<module> s
Simpan