One Hat Cyber Team
Your IP :
10.30.1.1
Server IP :
103.148.201.5
Server :
Linux web-olt 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
Server Software :
Apache/2.4.52 (Ubuntu)
PHP Version :
8.1.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
samba
/
__pycache__
/
View File Name :
vgp_motd_ext.cpython-310.pyc
o �/aj � @ s( d dl Z d dlmZ G dd� de�ZdS )� N)� gp_xml_extc @ s( e Zd Zdd� Z d dd�Zdd� ZdS ) �vgp_motd_extc C s dS )Nz Unix Settings/Message of the Day� )�selfr r �4/usr/lib/python3/dist-packages/samba/vgp_motd_ext.py�__str__ s zvgp_motd_ext.__str__� /etc/motdc C s� |D ]P\}}| j �|� t| �|v rM|t| � �� D ]2\}}|dkrCt|d��}|r0|�|� n|�� W d � n1 s>w Y | j �t| �|� q| j �� q|D ]k} | j r�| j �| j � d} tj� | j | �}| �|�}|ssqU|�d�} | �d�}|�d�}tj�|�r�t|d��� nd}||jkr�t|d��}|�|j� | j �t| �d|� W d � n1 s�w Y | j �� qUd S ) N�motd�w�'MACHINE/VGP/VTLA/Unix/MOTD/manifest.xml� policysetting�data�text�r� )�gp_db�set_guid�str�items�open�write�truncate�delete�commit� file_sys_path�name�os�path�join�parse�find�exists�readr �store)r �deleted_gpo_list�changed_gpo_listr �guid�settings� attribute�msgr �gpo�xmlr �xml_conf�policyr r �currentr r r �process_group_policy sB �� � ��z!vgp_motd_ext.process_group_policyc C sv i }|j r9d}tj�|j |�}| �|�}|s|S |�d�}|�d�}|�d�}|�d�} tj�d|j�} | j|| <