403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/reportbug/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/reportbug/__pycache__/bugreport.cpython-39.pyc
a

K56a��@sXddlZddlmZddlmZddlZddlZddlTddlmZGdd�de�Z	dS)	�N�)�utils)�debbugs)�*)�text_uic
@sfeZdZdZdZdddddddejddf
d	d
�Zdd�Zd
d�Z	e
e	e�Zdd�Zdd�Z
dd�ZdS)�	bugreportzFEncapsulates a bug report into a convenient object we can pass around.zutf-8�ZdebianTFrNcKs�||_|��D]\}
}t||
|�q||_||_|rht|t�shz|j|_Wqnt	�
d�t�Yqn0n||_||_|	|_
||_||_||_|
|_||_dS)NzSInvalid value for followup, it must be a debianbts.Bugreport instance or an integer)�type�items�setattr�package�subject�
isinstance�intZbug_num�followup�ui�long_message�	TypeError�body�mode�system�incfiles�sysinfo�
debsumsoutput�issource)�selfrr
rrrrrr	rrrZprops�k�v�r�5/usr/lib/python3/dist-packages/reportbug/bugreport.py�__init__*s&
zbugreport.__init__cCs(|dvrt�d|�d|_n||_dS)N)rZ	launchpadz-invalid report type %s, defaulting to debbugsr)rr�_bugreport__type)r�valuerrr�tsetEs�zbugreport.tsetcCs|jS�N)r!�rrrr�tgetMszbugreport.tgetcCst��}d}t�d�}t��}t��}t��}g}tj�dd�}tj�dd�}	tj�dd�}
dD]~}|dkrr|}nZ|dkr�|
r�|
}q�|�	d�q`n:d	tj�||�t
�d
�f}|	r�|r�d||	f}n|	p�|}|�	d||f�q`d
�|�}t
|dd�}
|
�rd�|
�d}nd}t
|dd�}|�r.|d|7}t
|dd�}|jtjk�r�|�s�|jttj|j�di����v�r�tjd|}n|�s�d}n|d7}|j�r�d}nd}|j�stddddd���D],\}}t
||d�}|�r�|d||f7}�q�d||j|f}n:t|d��r*|j�r*|d|j�d�7}d |j||j|f}tj|j�d!tj�}|�rd||�7}|d"d#k�r||d$}n�|d"}|�d%��r�|d&d�}d'||d(f}|d)k�r.g}d*|d$v�r�t��}|d+k�r�|d,|g7}n|d+k�r�|d-g7}d.|d$v�r|d.g7}|�r.d/|d0�|�f}|�r@|d1|7}|�rX|d2d
�|�7}|�rj|d3|7}|dk�r�|d4|7}|�r�|d5|7}|�r�|d6|7}|j �r�d7|||j!|f}nd8|||j!f}t|d9��r�||j"7}t|d:��r�||j#7}|j$�r|d;|j$7}|S)<Nrz/bin/sh�LANG�C�LC_ALL�LANGUAGE)r'�LC_CTYPEr*zLANGUAGE not setz%s (charmap=%s)zlocale charmapz%s (ignored: LC_ALL set to %s)�%s=%s�, Z
pseudoheaders�
�versionzVersion: %s
rZspecialsz

ZSourceZPackageZSeverityZ
JustificationZTagsZFile)ZseverityZ
justification�tags�filenamez%s: %s
z
%s: %s
%s
r0zControl: tags -1 z Followup-For: Bug #%d
%s: %s
%s
�infofuncrZGNU�zGNU/�z%s %s�ZLinuxZSMPrzSMP w/%d CPU threadszSMP w/1 CPU threadZPREEMPTz%s (%s)z; zKernel: %s
zKernel taint flags: %s
zLocale: %s
zShell: /bin/sh linked to %s
z	Init: %s
zLSM: %s
z %s%s%s
-- System Information:
%sz%s%s%s�depinfo�confinfoz
-- debsums errors found:
%s
)%�os�unamer�realpathZget_init_systemZget_lsm_infoZget_kernel_taint_flags�environ�get�append�
subprocessZ	getoutput�join�getattrrZ
MODE_ADVANCEDr�listrZSYSTEMSr�keysZ
NEWBIELINErr�dictr
�hasattrr0Zgeneric_infofunc�
startswith�	cpu_countrrr6r7r)rZunZdebinfoZ	shellpathZinitZlsminfoZtaint_flagsZlocinfoZlangsettingZ
allsettingZlanguagesettingZsetting�envZphZheadersr/rZreportto�attr�name�aZreportr2Zuname_stringZkernZkinfoZthreadsrrr�__unicode__Qs�


���









zbugreport.__unicode__cCs|��Sr$)rKr%rrr�__str__�szbugreport.__str__cs$�fdd�t��D�}dd�|�S)Ncsg|]}d|�jf�qS)r,)r)�.0rr%rr�
<listcomp>��z&bugreport.__repr__.<locals>.<listcomp>z
bugreport(%s)r-)�dirr?)r�paramsrr%r�__repr__�szbugreport.__repr__)�__name__�
__module__�__qualname__�__doc__�charsetrZ
MODE_STANDARDr r#r&�propertyr	rKrLrRrrrrr$s�

	r)
r8rrrr>�
exceptionsrr�objectrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit