403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/apport/crashdb_impl/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/apport/crashdb_impl/__pycache__/github.cpython-314.pyc
+
e��i-����Rt^RIt^RIt^RIt^RIt^RIt^RIHtH	t	^RI
Ht^RIH
t
Ht^RIt^RIt!RR4t]!RR7!R	R
44t!RR]P(P*4tR#)
z)Crash database implementation for Github.N)�Callable�Mapping)�	dataclass)�Any�Selfc��a�]tRt^toRt]P
!4tRV3RlRlltV3RlRltV3RlRlt	V3R	lR
lt
V3RlRltV3R
lRltV3RlRlt
V3RltRtVtR#)�Githubz:Wrapper around Github API, used to log in and post issues.Nc�8<�V^8�dQhRS[RS[R,RR/#)��	client_id�message_callbackN�return)�strr)�format�
__classdict__s"��</usr/lib/python3/dist-packages/apport/crashdb_impl/github.py�__annotate__�Github.__annotate__s)���1�1��1�08�4��1�	
�1�c�V�WnRVnRVnRVnRVnW nR#�Ng)�_Github__client_id�_Github__authentication_data�_Github__access_token�_Github__cooldown�_Github__expiryr)�selfrrs&&&r�__init__�Github.__init__s.��%��<@��"�"��������
� 0�rc�,<�V^8�dQhRS[RS[RS[/#�r
�url�datar
)rr)rrs"�rrr(s"���.�.��.�C�.�C�.rc���RR/pVP'dRVP2VR&\PPWP	R4VRR7p\PPVRR	7;_uu_4p\P!VP44uuR
R
R
4\P!4Vn
# +'giMT;i \PPd0pTP'dTPRRTR
24ThR
p?ii;i\P!4Tn
R
# \P!4Tn
i;i)zCPosts the given data to the given URL.
Uses auth token if available�Acceptzapplication/vnd.github.v3+jsonztoken �
Authorizationzutf-8�POST)r"�headers�methodg@)�timeoutNzFailed connectionzFailed connection to z6.
Please check your internet connection and try again.)r�urllib�request�Request�encode�urlopen�json�loads�read�time�_Github__last_request�error�URLErrorr)rr!r"r'r+�response�errs&&&    r�_post�Github._post(s$���=�>������)/��0C�0C�/D�'E�G�O�$��.�.�(�(��k�k�'�*�G�F�)�
��	.����'�'���'�=�=���z�z�(�-�-�/�2�>�=�#'�)�)�+�D��>�=���|�|�$�$�	��$�$�$��%�%�'�+�C�5�1K�L��
�I��	��>�#'�)�)�+�D���$�)�)�+�D��sH�)C �$C
�(
C �
C	�C �E�C � D.�?*D)�)D.�.E�E*c�,<�V^8�dQhRS[RS[RS[/#r �r�dictr)rrs"�rrr?s"���=�=�c�=��=�#�=rc�`�VPV\PPV44#)z$Authenticate against the GitHub API.)r8r*�parse�	urlencode)rr!r"s&&&r�api_authentication�Github.api_authentication?s"���z�z�#�v�|�|�5�5�d�;�<�<rc�2<�V^8�dQhRS[RS[RS[RS[/#)r
�owner�repor"r
r;)rrs"�rrrCs)���1�1�C�1�s�1�$�1�3�1rc�`�RVRVR2pVPV\P!V44#)z'Open a new issue on the GitHub project.zhttps://api.github.com/repos/�/z/issues)r8r/�dumps)rrCrDr"r!s&&&& r�api_open_issue�Github.api_open_issueCs0��-�e�W�A�d�V�7�C���z�z�#�t�z�z�$�/�0�0rc� <�V^8�dQhRS[/#�r
r
)r)rrs"�rrrHs�����4�rc��RVPRR/pRpVPW!4pRpVR,pVR,pVP'd#VPRVPW%R	74RVPR
VR
,RR/VnVR
,Vn\
VR,4\P!4,VnV#)z2Enters login process. At exit, login process ends.r�scope�public_repoz$https://github.com/login/device/codez�Posting an issue requires a Github account. If you have one, please follow these steps to log in.

Open the following URL. When requested, write this code to enable apport to open an issue.
URL:  {url}
Code: {code}�verification_uri�	user_codezLogin required)r!�code�device_code�
grant_typez,urn:ietf:params:oauth:grant-type:device_code�interval�
expires_in)	rr@rrrr�intr2r)rr"r!r6�promptrQs&     r�	__enter__�Github.__enter__Hs����T�-�-�w�
�F��4���*�*�3�5��
�	��)�*����$��� � � ��!�!�"2�F�M�M�c�M�4U�V�
��)�)��h�}�5�6��H�&
��"�
#�:�.����H�\�2�3�d�i�i�k�A��
��rc�$<�V^8�dQhRS[RR/#)r
�_r
N)r)rrs"�rrrhs�����3��4�rc�0�RVnRVnRVnR#r)rrr)rr[s&*r�__exit__�Github.__exit__hs��%)��"������
rc� <�V^8�dQhRS[/#rK)�bool)rrs"�rrrms���!H�!H��!Hrc��VP'g\R4h\P!4pVPWP,
,
pW,VP
8�d0VP'dVP
RR4\R4hV^8�d\P!V4RpVPW0P4pRV9dFVR,R8XdR#VR,R	8Xd\VR
,4VnR#\RV24hRV9dVR,Vn
R
#\RV24h)z^Asks Github if the user has logged in already.
It respects the wait-time requested by Github.
z9Authentication not started. Use a with statement to do sozFailed loginz0Github authentication expired. Please try again.zGithub authentication expiredz+https://github.com/login/oauth/access_tokenr4�authorization_pendingF�	slow_downrTzUnknown error from Github: �access_tokenTzUnknown response from Github: )r�RuntimeErrorr2rr3rr�sleepr@rVr)r�current_time�waittimer!r6s&    r�authentication_complete�Github.authentication_completems'���)�)�)��K��
��y�y�{���?�?�l�5H�5H�&H�I���"�T�]�]�2��$�$�$��%�%�"�$V���>�?�?��a�<��J�J�x� �;���*�*�3�0J�0J�K���h���� �$;�;���� �K�/�"%�h�z�&:�";�����!<�X�J�G�H�H��X�%�"*�>�":�D����;�H�:�F�G�Grc�&<�V^8�dQh/S[;R&#)r
r3)�float)rrs"�rrrs�����'�r)�__access_token�__authentication_data�__client_id�
__cooldown�__expiry�__last_requestr�N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r2r3rr8r@rHrXr]ri�__annotate_func__�__static_attributes__�__classdictcell__�rs@rrrsd����D� �I�I�K�N�1�1�.�.�.=�=�1�1�
��@��
!H�!H�i�rrT)�frozenc�,a�]tRt^�toV3RltRtVtR#)�IssueHandlec�&<�V^8�dQh/S[;R&#)r
r!)r)rrs"�rr�IssueHandle.__annotate__�s����	�H�r�N)rtrurvrwryrzr{r|s@rrr�s����rrc�a�]tRt^�toRtV3RlRltV3RlRltR+V3RlRlltR,V3R	lR
lltV3RlRlt	R
t
V3RlRltRtRt
V3RlRltV3RlRltV3RlRltV3RlRltV3RlRltRtV3RlRltV3RlR ltV3R!lR"ltV3R#lR$ltR+V3R%lR&lltV3R'lR(ltR-R)ltR*tVtR#).�
CrashDatabasezbGithub crash database.
This is a Apport CrashDB implementation for interacting with Github issues
c�N<�V^8�dQhRS[R,RS[S[S[3,RR/#)r
�	auth_fileN�optionsr
r;)rrs"�rr�CrashDatabase.__annotate__�s.���*�*�#��*�*�t�C��H�~�*�$�*rc��\PPPWV4VR,VnVR,VnVR,Vn\VR,4VnRVn	RVn
R#)z<Initialize some variables. Login is delayed until necessary.�repository_owner�repository_name�
github_app_id�labelsN)�apport�crashdbr�rr�r��app_id�setr��	issue_url�github)rr�r�s&&&rr�CrashDatabase.__init__�sc�����$�$�-�-�d�w�G� '�(:� ;���&�'8�9����o�.����'�(�+�,������%)��rc�r<�V^8�dQhRS[S[S[3,RS[S[S[S[S[,,3,/#)r
�reportr
)rrrr<�list)rrs"�rrr��s7���

�

�W�S�#�X�%6�

�4��S�4�PS�9�_�@T�;U�

rc��RpVP4Fwr4VRVRVR2,
pK	RRRVR\VP4/#)	z>Formats report info as markdown and creates Github issue JSON.�z**z**
z

�titlezIssue submitted via apport�bodyr�)�itemsr�r�)rr��
body_markdown�key�values&&   r�_format_report�CrashDatabase._format_report�sW���
� �,�,�.�J�C��r�#��d�5�'��6�6�M�)�
�1��M��d�4�;�;�'�
�	
rNc�4<�V^8�dQhRS[R,RS[/#)r
�user_message_callbackNr
)rr)rrs"�rrr��s�����8�d�?��f�rc��\VPV4;_uu_4pVP4'gKVuuRRR4# +'giR#;irs)rr�ri)rr�r�s&& r�
_github_login�CrashDatabase._github_login�s:��
�D�K�K�!6�
7�
7�6��4�4�6�6���8�
7�
7�
7�s�A�A�A	c�d<�V^8�dQhRS[S[S[3,RS[R,RS[R,RS[/#)r
r��progress_callbackNr�r
)rrrrr)rrs"�rrr��sD���5�5���S��!�5�$�d�?�5� (�$��	5�

�5rc��VPV4'gQhVPV4VnVPf\R4hVP	V4pVP
fVPe3VPPVPVP
V4pMERV9d4RV9d-VPPVR,VR,V4pM\R4h\VR,R7#)zQUpload given problem report return a handle for it.
In Github, we open an issue.
zFailed to login to Github�SnapGitOwner�SnapGitNamez9Couldn't determine which repository to file the report in�html_url�r!)	�acceptsr�r�rer�r�r�rHr)rr�r�r�r"r6s&&&&  r�upload�CrashDatabase.upload�s����|�|�F�#�#�#�#��(�(�)>�?����;�;���:�;�;��"�"�6�*���$�$�,��1F�1F�1N��{�{�1�1��%�%�t�';�';�T��H��v�
%�-�6�*A��{�{�1�1��~�&��}�(=�t��H��K��
��x�
�3�4�4rc�T<�V^8�dQhRS[PPRS[RS[/#)r
r��handler
)r�r��Reportrr)rrs"�rrr��s-�����f�m�m�&:�&:��K��TW�rc��VP#)z`Return a URL that should be opened after report has been uploaded
and upload() returned handle.
r�)rr�r�s&&&r�get_comment_url�CrashDatabase.get_comment_url�s���z�z�rc��\R4h�z?This method is not relevant for Github database implementation.��NotImplementedError)r�crash_idr�s&&&r�_mark_dup_checked�CrashDatabase._mark_dup_checked����!�M�
�	
rc�&<�V^8�dQhRS[RS[/#�r
r�r
�rVr`)rrs"�rrr��s���
�
�3�
�4�
rc��\R4hr�r��rr�s&&r�
can_update�CrashDatabase.can_update�r�rc��\R4hr�r�)rr�r��	master_ids&&&&r�close_duplicate�CrashDatabase.close_duplicate�r�rc��\R4hr�r�r�s&&r�download�CrashDatabase.download�r�rc�4<�V^8�dQhRS[RS[R,/#�r
r�r
N�rV)rrs"�rrr��s���
�
�S�
�S�4�Z�
rc��\R4hr�r�r�s&&r�duplicate_of�CrashDatabase.duplicate_of�r�rc�6<�V^8�dQhRS[RS[S[,/#r�)rVr�r)rrs"�rrr��s���
�
�c�
�d�3�i�
rc��\R4hr�r�r�s&&r�get_affected_packages�#CrashDatabase.get_affected_packages�r�rc�&<�V^8�dQhRS[RS[/#r��rVr)rrs"�rrr��s���
�
�3�
�3�
rc��\R4hr�r�r�s&&r�get_distro_release� CrashDatabase.get_distro_release�r�rc�0<�V^8�dQhRS[S[,/#rK�r�rV)rrs"�rrr�s���
�
�3�s�8�
rc��\R4hr�r��rs&r�get_dup_unchecked�CrashDatabase.get_dup_uncheckedr�rc�4<�V^8�dQhRS[RS[R,/#r�r�)rrs"�rrr�s���
�
�#�
�#��*�
rc��\R4hr�r�r�s&&r�get_fixed_version�CrashDatabase.get_fixed_versionr�rc��\R4hr�r�)rr�r�s&&&r�
get_id_url�CrashDatabase.get_id_url
r�rc�0<�V^8�dQhRS[S[,/#rKr�)rrs"�rrr�s���
�
�S��X�
rc��\R4hr�r�r�s&r�get_unfixed�CrashDatabase.get_unfixedr�rc�0<�V^8�dQhRS[S[,/#rKr�)rrs"�rrr�s���
�
��C��
rc��\R4hr�r�r�s&r�get_unretraced�CrashDatabase.get_unretracedr�rc�&<�V^8�dQhRS[RS[/#r�r�)rrs"�rrr�s���
�
�C�
�D�
rc��\R4hr�r�r�s&&r�is_reporter�CrashDatabase.is_reporterr�rc�*<�V^8�dQhRS[RS[RR/#)r
r��masterr
Nr�)rrs"�rrr�s"���
�
��
�S�
�T�
rc��\R4hr�r�)rr�r�s&&&r�mark_regression�CrashDatabase.mark_regressionr�rc�8<�V^8�dQhRS[RS[R,RR/#)r
r��invalid_msgNr
r�)rrs"�rrr�#s)���
�
��
�*-��*�
�	
�
rc��\R4hr�r�)rr�r�s&&&r�mark_retrace_failed�!CrashDatabase.mark_retrace_failed#s��"�M�
�	
rc�$<�V^8�dQhRS[RR/#r�r�)rrs"�rrr�*s���
�
�c�
�d�
rc��\R4hr�r�r�s&&r�
mark_retraced�CrashDatabase.mark_retraced*r�rc��\R4hr�r�)rr�r��comment�change_description�attachment_comment�
key_filters&&&&&&&r�update�CrashDatabase.update0s��"�M�
�	
r)r�r�r�r�r�r�rs)NN)FNN)rtrurvrwrxrr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrzr{r|s@rr�r��s������*�*�

�

���5�5�@��
�

�
�

�

�

�
�

�
�

�
�

�
�

�
�

�

�
�

�
�

�
�

�
�

�
�
�
�
�
rr�)rxr/r2�urllib.errorr*�urllib.parse�urllib.request�collections.abcrr�dataclassesr�typingrr�apport.crashdbr��
apport.reportrrr�r�r�rr�<module>rsm��/������-�!����uH�uH�p�$��
�
��
�e
�F�N�N�0�0�e
r

Youez - 2016 - github.com/yon3zu
LinuXploit