__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

rmhٓ��L�SrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKrSSKrSSK
r
SSKJrJr SSKrSSKJr SSKJr \R0"S5rSqSrSGS
jrSHSjrSGSjrSIS
jrSr Sr!Sr"Sr#Sr$Sr%Sr&Sr'S\
RPS	S4Sjr)Sr*Sr+Sr,S\
RPS4Sjr-S\\.\.4S\/\.\.\0-44Sjr1S\S\\.\.4SS4Sjr2S r3SJSS!.S"jjr4SJS#jr5S$r6S%r7S&r8S'r9S(r:S)r;S*r<S+r=S,r>S-r?S.r@S/rAS0rBS1rCSJS2jrDS3rES4rFS5rGSKS\S6\HSS4S7jjrIS8rJS\K\.4S9jrLS:rMS;rNSJS\S<\\.\.-S-SS4S=jjrOS>rPS?rQS@rRSLSAjrSSBrTSCrUSDrVSJSEjrWSFrX\R�R�rZ\R�R�r[g)Mz/Convenience functions for use in package hooks.�N)�Iterable�Mapping)�impl)�
ProblemReportz[^0-9a-zA-Z_.-]c��[U[5(aURS5n[R	SURSS55$)zsGenerate a valid report key name from a file path.

This will replace invalid punctuation symbols with valid ones.
�UTF-8�.� �_)�
isinstance�bytes�decode�_invalid_key_chars_re�sub�replace)�paths �2/usr/lib/python3/dist-packages/apport/hookutils.py�path_to_keyr*s=��
�$�����{�{�7�#�� �$�$�S�$�,�,�s�C�*@�A�A�TFc��SU;agU(d[U5n[RRU5(a[	XX#U5 gg)avAttach file contents if file exists.

If key is not specified, the key name will be derived from the file
name with path_to_key().

If overwrite is True, an existing key will be updated. If it is False, a
new key with '_' appended will be added instead.

If the contents is valid UTF-8, or force_unicode is True, then the value
will be a string, otherwise it will be bytes.
�../N)r�osr�exists�attach_file��reportr�key�	overwrite�
force_unicodes     r�attach_file_if_existsr 4s?��
��}����$���	�w�w�~�~�d����F�#�-�@�rc�v�SU;ag[R"U[R[R-[R-5n[R
"U5n[RRU5nUR[R"U5R:wdX:wa[R"U5 g[R"UR5(a?[R"US5nUR5R5nSSS5 O[R"U5 gU(aWR!SSS	9$WR!S5$!,(df   N7=f!["a Ws$f=f![$anS
['U53sSnA$SnAff=f)z�Return the contents of the specified path.

If the contents is valid UTF-8, or force_unicode is True, then the value
will a string, otherwise it will be bytes.

Upon error, this will deliver a text representation of the error,
instead of failing.
rzError: invalid path.zError: path contained symlinks.�rbNz#Error: path was not a regular file.rr��errors�Error: )r�open�
O_NOFOLLOW�O_RDONLY�
O_NONBLOCK�fstatr�realpath�st_ino�stat�close�S_ISREG�st_mode�fdopen�read�stripr�UnicodeDecodeError�OSError�str)rr�fd�st�	real_path�f�contents�errors        r�	read_filer=Ls;��&��D�=�)�
�W�W�T�2�=�=�2�;�;�6����F�
G��
�X�X�b�\���G�G�$�$�T�*�	�
�9�9����	�*�1�1�1�T�5F��H�H�R�L�4��<�<��
�
�#�#����2�t�$���6�6�8�>�>�+��%�$�
�H�H�R�L�8���?�?�7�9�?�=�=�	��?�?�7�+�+�%�$��"�	��O�	���&���U���%�%��&�se�F�CF�<F�E3�*F�
F�"F�3
F�=F�F�F�F�F�
F8� 
F3�-F8�3F8c�n�U(d[U5nU(dX ;aUS-
nX ;aM[XS9X'g)akAttach a file to the report.

If key is not specified, the key name will be derived from the file
name with path_to_key().

If overwrite is True, an existing key will be updated. If it is False, a
new key with '_' appended will be added instead.

If the contents is valid UTF-8, or force_unicode is True, then the value
will a string, otherwise it will be bytes.
r)rN)rr=rs     rrrss7����$�����m��3�J�C��m��D�>�F�Krc�"�[R"U5nUR5H�upVU(aXR;aMS[U53n[	U[
5(a"US:XdUR
S5(aX`U'MXU(a&URSUS35nU(aX`U'O	SX'OSX'[RR[R"U5R5n	U	R5US[U53'M� g)	aAttach information about any modified or deleted conffiles.

If conffiles is given, only this subset will be attached. If ui is given,
ask whether the contents of the file may be added to the report; if this is
denied, or there is no UI, just mark it as "modified" in the report.
zmodified.conffile.z	[deleted]z
[inaccessiblez,It seems you have modified the contents of "z@".  Would you like to add the contents of it to your bug report?z
[modified]zmtime.conffile.N)�	packaging�get_modified_conffiles�itemsrrr6�
startswith�yesno�datetime�
fromtimestamprr-�st_mtime�	isoformat)
r�package�	conffiles�ui�modifiedrr;r�response�mtimes
          r�attach_conffilesrO�s����/�/��8�H�"�.�.�*�����.��"�;�t�#4�"5�6���h��$�$���#�x�':�':�?�'K�'K�"�3�K��
��x�x�>�t�f�EO�P��H��&�s��*���&�F�K��!�!�/�/�����
�0F�0F�G��8=���8I����T�!2� 3�4�5�1+rc�8�[R"S[SS9 g)z4Attach information about any Upstart override files.z`apport.hookutils.attach_upstart_overrides() is obsolete. Upstart is dead. Please drop this call.���
stacklevelN��warnings�warn�PendingDeprecationWarning�rrIs  r�attach_upstart_overridesrY�����M�M�	3�!��	rc�8�[R"S[SS9 g)z:Attach information about a package's session upstart logs.z[apport.hookutils.attach_upstart_logs() is obsolete. Upstart is dead. Please drop this call.rQrRNrTrXs  r�attach_upstart_logsr\�rZrc�n�URSS5R5(d[S/5US'gg)zoAttach information from the kernel ring buffer (dmesg).

This will not overwrite already existing information.
�CurrentDmesg��dmesgN)�getr3�root_command_output�rs r�attach_dmesgrd�s4��
�:�:�n�b�)�/�/�1�1�!4�g�Y�!?��~��2rc�8�Sn[RRU5(a�[R"U5H�nUS;aM[RR	USU35n[R
"U5n[
R"UR5(aURS-S:XaM[U5nU(dM�XPSURSS53'M� S	U;aS
U;aUS	SUS
3US'g
g
g
![a M�f=f)zDAttach Desktop Management Interface (DMI) information to the report.z/sys/class/dmi/id>�uevent�	subsystem�/�rzdmi.rr	zdmi.sys.vendorzdmi.product.namer
�MachineTypeN)rr�isdir�listdirr+r-r/r0r=r5r)r�dmi_dirr:�pr8�values      r�
attach_dmirp�s��!�G�	�w�w�}�}�W������G�$�A��+�+����� � �G�9�A�a�S�!1�2�A������B��<�<��
�
�+�+��
�
�Q��!�0C��
�!�!����u�7<��a�i�i��S�1�2�3�4�%�"�6�!�&8�F�&B��&�'�(��&�1C�*D�)E�F�	�}��'C�!��
�
��
�s�=D�
D�Dc���[U5 [USS5 [USS5 [USS5 [RR	S5(a [SS	/5US
'[SS/5US'[S
/5US'[S
S/5US'[S
S/5US'[SS/5US'[/SQ5US'[
S/5US'USn[R"SSU5n[R"SSU5n[R"SSU5n[R"SSU5n[R"SSU5n[R"SSU5nXS'[U5 [S 5(a[S /5US!'[S"5(aN[S"S#/5R5nU(aX S$'[S"S%/5R5nU(aX S&'g'g'g')(aBAttach a standard set of hardware-related data to the report, including:

- kernel dmesg (boot and current)
- /proc/interrupts
- /proc/cpuinfo
- /proc/cmdline
- /proc/modules
- lspci -vvnn
- lscpi -vt
- lsusb
- lsusb -v
- lsusb -t
- devices from udev
- DMI information from /sys
- prtconf (sparc)
- pccardctl status/ident
z/proc/interrupts�ProcInterrupts�
/proc/cpuinfo�ProcCpuinfo�
/proc/cmdline�ProcKernelCmdLinez/sys/bus/pci�lspci�-vvnn�Lspciz-vtzLspci-vt�lsusb�Lsusb�-vzLsusb-vz-tzLsusb-t�sort�
/proc/modules�ProcModules)�udevadm�infoz--export-db�UdevDbz%/usr/share/apport/dump_acpi_tables.py�acpidumpzID_FS_LABEL=(.*)zID_FS_LABEL=<hidden>zID_FS_LABEL_ENC=(.*)zID_FS_LABEL_ENC=<hidden>z
by-label/(.*)zby-label/<hidden>�prtconf�Prtconf�	pccardctl�status�PccardctlStatus�ident�PccardctlIdentN)rdrrrr�command_outputrb�rerrp�command_availabler3)r�labels�outs   r�attach_hardwarer��s���$�����*�,<�=�����7����)<�=�	�w�w�~�~�n�%�%�(�'�7�);�<��w��+�W�e�,<�=��z��$�g�Y�/�F�7�O�&����7�F�9��&����7�F�9��*�F�O�+D�E�F�=��%�&H�I�F�8��,�.U�-V�W�F�:���H�
�F�
�V�V�&�(>��
G�F�
�V�V�*�,F��
O�F�
�V�V�O�%8�&�
A�F�
�V�V�&�(>��
G�F�
�V�V�*�,F��
O�F�
�V�V�O�%8�&�
A�F��8���v����#�#�*�I�;�7��y����%�%��k�8�4�5�;�;�=���(+�$�%��k�7�3�4�:�:�<���'*�#�$��&rc��[U[RRS5S5 [U[RRS5S5 [US5 [USS5 [	USS	5 [/S
Q5US'[SS
/5US'[SS
/5US'[
[5US'/n[RRS5(a_[SSS9nUHFnSU;dMUR5R5nUR[US55 MH SSS5 UGHpnSUS3n[SS[U5S/5X'SUS3n[SS[U5/5X'[R"SUS35GHn[RR!U5(a<[RR#U5nSUS [%U53n[	XUS!9 Md[RR'U5(dM�[RR#U5n[R("U5HKn	[RR+Xy5n
SUS [%U5S"[%U	53n[	X
U5 MM GM GMs g!,(df   GN�=f)#z�(loosely based on http://www.alsa-project.org/alsa-info.sh)
for systems where alsa-info is not installed
(i e, *buntu 12.04 and earlier)
z~/.asoundrc�UserAsoundrcz~/.asoundrc.asoundconf�UserAsoundrcAsoundconfz/etc/asound.confz/proc/asound/version�AlsaVersionrsrt)�ls�-lz	/dev/snd/�AlsaDevices�aplayr��AplayDevices�arecord�ArecordDevices�
PciMultimediaz/proc/asound/cards�utf-8��encodingz]:rN�Cardz.Amixer.info�amixerz-cr�z.Amixer.valuesz/proc/asound/cardz/codec*z.Codecs.�rr	)r rr�
expanduserrr��pci_devices�PCI_MULTIMEDIArr&�lstrip�split�append�intr6�glob�isfile�basenamerrkrl�join)r�cardsr7�line�fields�cardr�	codecpath�codec�namers           r�attach_alsa_oldr�!s^��
�&�"�'�'�"4�"4�]�"C�^�T������"�"�#;�<�>V���&�"4�5��&�"8�-�H�����7�*�+D�E�F�=��+�W�d�O�<�F�>��-�y�$�.?�@�F���)�.�9�F�?���E�	�w�w�~�~�*�+�+�
�&��
9�R����4�<�!�[�[�]�0�0�2�F��L�L��V�A�Y��0��:����T�F�,�'��$�h��c�$�i��%H�I����T�F�.�)��$�h��c�$�i�%@�A������%6�t�f�G�#D�E�I��w�w�~�~�i�(�(����(�(��3���T�F�(�;�u�+=�*>�?���F�3�7������y�)�)����(�(��3���J�J�y�1�D��7�7�<�<�	�8�D��t�f�%�'��.�/�q��T�1B�0C�E�� ��c�2�
2�F�
�
:�
9�s�-
J:�;?J:�:
K	c��[RRS5(a[/SQ5US'O@[RRS5(a[/SQ5US'O[	U5 [SS/[
R
"S5-[
R
"S	5-[
R
"S
5-5US'[RRS5(a[S
S/5US'[RRS5(a[S/5US'[
U5 [U5 g)z0Attach ALSA subsystem information to the report.�/usr/sbin/alsa-info)r��--stdout�--no-upload�AlsaInfo�!/usr/share/alsa-base/alsa-info.sh)r�r�r��fuserr|z	/dev/dsp*z
/dev/snd/*z	/dev/seq*�AudioDevicesInUsez/usr/bin/pacmd�pacmd�list�	PulseListz/usr/bin/pa-info�PaInfoN)rrrr�r�r�rprdrcs r�attach_alsar�Rs��	�w�w�~�~�+�,�,�+�>�
��z��
�����;�	<�	<�+�L�
��z��	���"0�	�$��
�)�)�K�
 �	!�
�)�)�L�
!�	"��)�)�K�
 �	!�#�F���
�w�w�~�~�&�'�'�,�g�v�->�?��{��	�w�w�~�~�(�)�)�)�+=�*>�?��x���v����rc��S[R;ag[RSnUR[R5H}nU(dM[RRX 5n[RR
U5(dMQ[R"U[R5(dM} g g)z/Is given command on the executable search path?�PATHFT)	r�environr��pathseprr�r��access�X_OK)�commandr�element�filenames    rr�r�ps}��
�R�Z�Z���
�:�:�f��D��:�:�b�j�j�)�����7�7�<�<��1��
�7�7�>�>�(�#�#��	�	�(�B�G�G�(D�(D��*�rc	��[RR5nU(dSUS'[R"USU[R
UUS9nURS:XaURR5nOSS[U5R5-S	-[UR5R5-S
-UR-nU(aURSSS
9nU$![anS[U53sSnA$SnAff=f)a'Try to execute given command (list) and return its stdout.

In case of failure, a textual error gets returned. This function forces
LC_MESSAGES to C, to avoid translated output in bug reports.

If decode_utf8 is True (default), the output will be converted to a string,
otherwise left as bytes.
�C�LC_MESSAGESF)�check�input�stdout�stderr�envr%NrsError: command s failed with exit code s: rrr#)
rr��copy�
subprocess�run�PIPEr5r6�
returncoder�r3�encoder)	r�r�r��keep_locale�decode_utf8r��spr<�ress	         rr�r�~s��
�*�*�/�/�
�C�� ��M��
&�
�^�^�����?�?���

��
�}�}����i�i�o�o���
��'�l�!�!�#�
$�(�
)��"�-�-� �'�'�)�
*��	
�
�i�i�
�	���j�j���j�3���J��#�&���U���%�%��&�s�'C*�*
D�4
D�D�Dc��[bg[R"5S:Xag[RR5(dg[RRS5(dg[R"S5up[R"SS[U5S/S[R[RS9q[R"U5 [R "5nUR#U[R$5 UR'5nUH=upEU[R(-(dM[R"U5  SSS5 g Mu![a gf=f!,(df   g=f)Nrz/usr/bin/pkttyagent�
pkttyagentz--notify-fdz
--fallbackF)�	close_fds�stdinr�)�_AGENTr�geteuid�sysr��isattyrr�pipe2r5r��Popenr6r�r.�select�epoll�register�EPOLLIN�poll�EPOLLHUP)�r�wr��eventsr�
event_types      r�_spawn_pkttyagentr��s�����	�z�z�|�q����9�9������
�7�7�>�>�/�0�0������!����
�
�
�	�}�c�!�f�l�;���o�o����	�F��H�H�Q�K�	����5���N�N�1�f�n�n�-��Z�Z�\�F�!'�
������/�/��H�H�Q�K��
��"(��������
��s+�-E'�0AE7�E7�#E7�'
E4�3E4�7
Fc�h�[cg[R5 [R5 Sqg)z=Kill pkttyagent (from PolicyKit) if it was started by Apport.N)r��	terminate�wait�rr�kill_pkttyagentr��s&���~��
����
�K�K�M�
�Frc��[R"5S:Xa/$[RRS5(a
[	5 S/$/$)Nrz/usr/bin/pkexec�pkexec)r�getuidrrr�r�rr�_root_command_prefixr��s<��	�y�y�{�a���	�	�w�w�~�~�'�(�(����z��
�Irc�n�[U[5(dS5e[[5U-UUSUS9nU$)a)Try to execute given command (list) as root and return its stdout.

This passes the command through pkexec, unless the caller is already root.

In case of failure, a textual error gets returned.

If decode_utf8 is True (default), the output will be converted to a string,
otherwise left as bytes.
zcommand must be a listT)r�r�)rr�r�r�)r�r�r�r��outputs     rrbrb�sE���g�t�$�$�>�&>�>�$�
����(�
�����F��Mr�command_map�returnc
�R�U(d0$0n[RR[RR[RRSS55S5n[R"5n[RRUS5n[USSS9nUR5HQupg[US5(dS	5eURUS
[RRX65S35 MS SSS5 [R"[5X$/-S
S9 UHqn[[RRX65S5nUR5R!5n	SSS5 W	(dM]U	R%S5X'Ms U[(R*"U5 $!,(df   N�=f!,(df   NX=f!["a M�f=f![&a X�U'M�f=f![(R*"U5 f=f)aExecute multiple commands as root and return their respective outputs.

command_map is a keyname -> 'shell command' dictionary with the commands to
run. They are all run through /bin/sh, so you need to take care of shell
escaping yourself. To include stderr output of a command, end it with
"2>&1".

Just like root_command_output, this passes the command through pkexec,
unless the caller is already root.

This is preferable to using root_command_output() multiple times, as that
will ask for the password every time.
�APPORT_DATA_DIRz/usr/share/apport�root_info_wrapperz:script:r�r�r�r3z(command must be a string (shell command)z	 | cat > �
NF)r�r"r)rrr��abspathr�ra�tempfile�mkdtempr&rB�hasattr�writer�r�r�r2r3r5rr4�shutil�rmtree)
r�r��wrapper_path�workdir�script_path�script�keynamer�r:�bufs
          r�execute_multiple_root_commandsr�s��� ��	�%'�F��7�7�<�<�
������
�
���'8�:M�N�O���L���� �G�"��g�g�l�l�7�J�7��
�+�s�W�
5��$/�$5�$5�$7� ����W���>�=�>��
����y�	�"�'�'�,�,�w�2P�1Q�QS�T�U�
%8�6�	��� �"�l�%@�@��	
�
#�G�
��"�'�'�,�,�w�8�$�?�1��&�&�(�.�.�*�C�@��s�*�&)�j�j��&9�F�O�#���
�
�g��?6�
5��"@�?���
��
��*�*�&)�7�O�*��	�
�
�g��s��=+H�(A&G�.H�=)G(�&G�G(�
H�G9�*H�
G�H�
G%	�!G(�$H�%G(�(
G6�2H�5G6�6H�9H�H�
H�H�H&rc�P�[U5R5H	up#X0U'M g)aExecute multiple commands as root and put their outputs into report.

command_map is a keyname -> 'shell command' dictionary with the commands to
run. They are all run through /bin/sh, so you need to take care of shell
escaping yourself. To include stderr output of a command, end it with
"2>&1".

Just like root_command_output, this passes the command through pkexec,
unless the caller is already root.

This is preferable to using root_command_output() multiple times, as that
will ask for the password every time.
N)rrB)rr��k�vs    r�attach_root_command_outputsr=s&�� /�{�;�A�A�C����q�	�Drc���SnUR5cRURH/nURSSS9nURU5(dM+X#-
nM1 UR5cMRURH/nURSSS9nURU5(dM+X#-
nM1 URR	5 UR5 URS:XaU$g)Nr_rrr#r)r�r�r�searchr.r�r�)�pattern�process�linesr�s    r�__filter_re_processrQs����E�
�,�,�.�
 ��N�N�D��;�;�w�y�;�9�D��~�~�d�#�#��
��#��,�,�.�
 ������{�{�7�9�{�5���>�>�$����M�E���N�N�����L�L�N����Q����
r)�journald_only_systemc��U(aSSSU/nOq[RRS5(a/SQnU(aURS5 O0[R"S[R
5(a/SQnOg	[R"U[RS
9n[X5sSSS5 $!,(df   g=f)a�Extract recent system messages which match a regex.

pattern should be a "re" object. By default, messages are read from
the systemd journal, or /var/log/syslog; but when giving "path", messages
are read from there instead.
The journald_only_system parameter controls the scope of messages that are
extracted when reading from the systemd journal. If set to True (the
default), only messages from the system services are extracted. If set to
False, all messages that the current user can see are extracted.
�tail�-n�10000�/run/systemd/system)�
journalctlz--quiet�-bz-az--system�/var/log/syslog)rrr r$r_�r�N)
rrrr�r��R_OKr�r�r�r)rrrr�rs     r�
recent_syslogr'es�����4��$�/��	�����-�	.�	.�7����N�N�:�&��	���$�b�g�g�	.�	.�<���	�	�	�'�*�/�/�	:�g�"�7�4�
;�	:�	:�s�#B8�8
Cc���[RRS5n[RRU5(a*[R"U[R
5(dgU(d[R"S5nSn[US5nUH/nURSSS9nURU5(dM+X$-
nM1 SSS5 U$!,(df   U$=f)	aTExtract messages from ~/.xsession-errors.

By default this parses out glib-style warnings, errors, criticals etc. and
X window errors.  You can specify a "re" object as pattern to customize the
filtering.

Please note that you should avoid attaching the whole file to reports, as
it can, and often does, contain sensitive and private data.
z~/.xsession-errorsr_z�^(\(.*:\d+\): \w+-(WARNING|CRITICAL|ERROR))|(Error: .*No Symbols named)|([^ ]+\[\d+\]: ([A-Z]+):)|([^ ]-[A-Z]+ \*\*:)|(received an X Window System error)|(^The error was \')|(^  \(Details: serial \d+ error_code)r"rrr#N)rrr�rr�r&r��compiler&rr)rrrr:r�s     r�xsession_errorsr*~s����7�7���2�3�D�
�7�7�>�>�$���r�y�y��r�w�w�'?�'?����*�*�
6�
��
�E�	
�d�D�	�Q��D��;�;�w�y�;�9�D��~�~�d�#�#��
���
�
�L�
�	�
�L�s�*C�C�
C)�rQ�ri�����	�
��c��U(d
[SS/5$Sn[SS/5nURS5H�nSnSnURS5HanURSS	5upxUR5nUR5nUS
:Xa[	USSS
5n	U	S-S-	nMWUS:XdM_UnMc U(dM�U(dM�X@;dM�U(aUS-
nU[SSU/5R5-
nM� U$![a M�f=f)z9Return a text dump of PCI devices attached to the system.rwrxr_z-vvmmnnz

Nr�:r+�Class�������i�r0�Slotz-vvnns)r�r��
ValueErrorr3r�)
�pci_classes�resultr��	paragraph�	pci_class�slotr�rro�ns
          rr�r��s����w��0�1�1�
�F�
�W�i�0�
1�F��\�\�&�)�	��	����O�O�D�)�D�
�!�Z�Z��Q�/�
���K�K�M�E��)�)�+�C��g�~���b���b�)����Z�A�-�	������*��9���)�":���&� ���n�g�x��%>�?�E�E�G�G�F�)*�,�M���
��
�s�C<�<
D
�	D
c��[SS/5$)z9Return a text dump of USB devices attached to the system.rzr|)r�r�rr�usb_devicesrD�s���7�D�/�*�*rc���[R"U5nU(a:UVs/sH+n[RRX15(dM)UPM- nnU$UnU$s snf)zGRetrieve a list of files owned by package, optionally matching
globpat.)r@�	get_filesr��fnmatch)rI�globpat�filesr:r>s     r�files_in_packagerJ�sU��
����(�E��"�G�U��d�l�l�&:�&:�1�&F�!�U��G��M����M��Hs�(A�Ac��g)z	Obsolete.Nr�rXs  r�attach_gconfrL�s�rc	�R�URSS5n0n[RR5nSUS'[R
"SSU/U[RS9nURH=nURSS	5upxn	U	R5n	X�RU05U'M? SSS5 [R
"SSU/[RS
9nURHknURSS	5upxn	U	R5n	X�RU05RUS5:wdMPUS:XaUS;aS
n	X'SUSU	S3-
nMm SSS5 X S'g![a GMf=f!,(df   N�=f![a M�f=f!,(df   NG=f)z0Attach user-modified gsettings keys of a schema.�GsettingsChangesr_z/nonexisting�XDG_CONFIG_HOME�	gsettingszlist-recursively)r�r�NrQr%sorg.gnome.shell>�
favorite-apps�command-historyzredacted by apportr
r)rarr�r�r�r�r�r�r��rstripr<�
setdefault)
r�schema�	cur_value�defaultsr�rPr��schema_namerros
          r�attach_gsettings_schemarY�s����
�
�-�r�2�I��H�
�*�*�/�/�
�C�+�C���	�	�	�	�(�&�1�s�:�?�?�
�	��$�$�D�
�,0�J�J�t�Q�,?�)��5������9>����R�0��5�
%�
�
�	�	�	�(�&�1�*�/�/�
�	��$�$�D�
�,0�J�J�t�Q�,?�)��5���������[�"�5�9�9�#�r�B�B��"4�4��A�:�1�E��}�A�c�U�!�E�7�"�=�=�	�%�
�$"+����-�
��
��
�
��$�
��
��
�
�sf�E6�0%E$�E6�F�,%F�#F�8F�$
E3�.E6�2E3�3E6�6
F�
F�F�F�F�
F&c��[US5H0n[RRU5SSn[	X5 M2 g)z@Attach user-modified gsettings keys of all schemas in a package.z)/usr/share/glib-2.0/schemas/*.gschema.xmlNi�)rJrrr�rY)rrI�schema_filerUs    r�attach_gsettings_packager\s<��'��<������!�!�+�.�t��4����/�	r�time_windowc���[RRS5(dgUR5nU(aX!-
nX!-nSU3SU3/nOSS/n[	SS/U-5US	'g)
z�Attach journal warnings and errors.

If the report contains a date, get the journal logs around that
date (plus/minus the time_window in seconds). Otherwise attach the
latest 1000 journal logs since the last boot.
r!Nz	--since=@z	--until=@r#z--lines=1000r"z--priority=warning�
JournalErrors)rrr�
get_timestampr�)rr]�crash_timestamp�before_crash�after_crash�argss      r�attach_journal_errorsres{���7�7�>�>�/�0�0���*�*�,�O��&�4��%�3���L�>�*�i��}�,E�F���n�%��,�	�+�,�t�3��F�?�rc���[SS/5US'[SS/5US'[[5US'[USSS	9 S
H.nU[R
;dM[R
UX'M0 g)z5Attach generic network-related information to report.�ip�route�IpRoute�addr�IpAddr�
PciNetworkz/etc/network/interfaces�IfupdownConfigr�)�
http_proxy�	ftp_proxy�no_proxyN)r�r��PCI_NETWORKr rr�)r�vars  r�attach_networkrs*sj��&��g��7�F�9��%�t�V�n�5�F�8��&�{�3�F�<���&�";�AQ�R�6���"�*�*���*�*�S�/�F�K�7rc�|�[R"S5Vs/sHoRS5SPM sn$s snf)z.Return list of wireless devices on the system.z/sys/class/net/*/wirelessrhri)r�r�)rns r�_get_wireless_devicesru6s0��%)�Y�Y�/J�%K�L�%K��G�G�C�L��O�%K�L�L��Ls�9c��[[R"S55US'[SS/5US'[R
R
S5(ao[5HSn[R"SS[R"S	S
[SSUS
/555USUR5S3'MU [/SQ5nOSnX S'[USSS9 g)z5Attach wireless (WiFi) network information to report.zH(NetworkManager|modem-manager|dhclient|kernel|wpa_supplicant)(\[\d+\])?:�
WifiSyslog�rfkillr��RfKillz/sbin/iwz([0-9a-f]{2}:){5}[0-9a-f]{2}z<hidden-mac>z
SSID: (.*)zSSID: <hidden>�iw�dev�link�IwDev�Link)rz�regra�N/A�CRDAz/var/log/wpa_supplicant.log�WpaSupplicantLogr�N)r'r�r)r�rrrrur�
capitalizer )r�wireless_device�	iw_outputs   r�attach_wifir�;s���(�
�
�
�
�	
��F�<��&�x��&8�9�F�8��	�w�w�~�~�j�!�!�4�6�O�AC���.����� �$�"�D�%��&�#I�J��B�F�U�?�5�5�7�8��=�>� 7�#�#7�8�	��	��6�N��&�"?�EW�Xrc��[USS5 [USS5 [S/5US'[SS/5US	'[R"S
5nU(a+[/SQU-5n[R"SS
U5US'[S6US'g)zcAttach printing information to the report.

Based on http://wiki.ubuntu.com/PrintingBugInfoScript.
z/etc/papersize�	Papersizez/var/log/cups/error_log�CupsErrorLog�locale�Locale�lpstatr|�Lpstatz/etc/cups/ppd/*.ppd)�fgrepz-Hz	*NickNamez*/etc/cups/ppd/(.*).ppd:\*NickName: *"(.*)"z\g<1>: \g<2>�PpdFiles) �foo2zjszfoomatic-dbzfoomatic-db-engine�foomatic-db-gutenprintzfoomatic-db-hpijszfoomatic-filterszfoomatic-gui�hpijs�hplip�m2300w�min12xxw�c2050�hpoj�pxljr�pnm2ppa�splixzhp-ppdz
hpijs-ppdszlinuxprinting.org-ppdszopenprinting-ppdszopenprinting-ppds-extra�ghostscript�cupszcups-driver-gutenprintr��
ijsgutenprintzcupsys-driver-gutenprintzgimp-gutenprintzgutenprint-doczgutenprint-localeszsystem-config-printer-common�kdeprint�PrintingPackagesN)r r�r�r�r�package_versions)r�ppds�	nicknamess   r�attach_printingr�Ws���
�&�"2�K�@��&�";�^�L�%�x�j�1�F�8��%�x��&6�7�F�8���9�9�*�+�D��"�#?�$�#F�G�	��V�V�9�?�I�
��z��"2�!"�F��r�profilesc
�0�[U[5(aU/nSn[R"U[R5nSn[R"U[R5n0nSU;aSUS'SU;a-[
RRS5(a	SUS3US'[U5nSU;aDUSn[U[5(deS	R[R"X855US'SU;aUSUS'[US
S5 [USS
5 [R"US	RURSS5URSS5455H�n	U(dURS/5  gU	SS:XaU	SSn
O$[R!U	5R#SSS9n
UH8n[R("SUS3U
5(dM%URS/5  M� M� g![$[&4a M�f=f)z0Attach MAC information and events to the report.z'(?:audit\(|apparmor|selinux|security).*z'apparmor="DENIED".+?profile=([^ ]+?)[ ]�KernLogr`�AuditLogz/var/run/auditd.pidzegrep "z" /var/log/audit/audit.logrz/proc/version_signature�ProcVersionSignatureru�ProcCmdliner_�apparmorr�"r+r9rrr#�^�$N)rr6r�r)�
IGNORECASErrrrr��findallr rra�add_tagsr
�fromhexr�
IndexErrorr<�match)rr��	mac_regex�mac_re�aa_regex�aa_re�privileged_commands�privileged_outputsr�r��profile�search_profiles            r�attach_mac_eventsr��s���
�(�C� � ��:��:�I�
�Z�Z�	�2�=�=�
1�F�8�H��J�J�x����/�E������'.��G�$����B�G�G�N�N�3H�$I�$I��i�[� :�;�	�J�'�8�8K�L���$�$�#�G�,���&�#�&�&�&�&� �I�I�b�j�j��&@�A��y���'�'�/�
�;��z���&�";�=S�T�����7����
�t�y�y�&�*�*�Y��3�V�Z�Z�
�B�5O�P�Q�����O�O�Z�L�)��	��Q�x�3����"�+���-�-��.�5�5�g�i�5�P��'�N��x�x�!�N�+�1�-�w�7�7������-��'����J�'�	��	�s�H�#H�H�Hc��[U6US'g)zbAttach version information for related packages.

In the future, this might also run their hooks.
�RelatedPackageVersionsN)r�)r�packagess  r�attach_related_packagesr��s��
(8��'B�F�#�$rc
���U(dg/nUH|nU(dM[R"U5nU(dURUS45 [U5H1n[R"U5nUcSnURXE45 M3 M~ [
SU55nSRUVVs/sHupxUSUS3SU3PM snn5$![
a SnNof=fs snnf)zlReturn a text listing of package names and versions.

Arguments may be package names or globs, e. g. "foo*"
r_r�c3�># �UHn[US5v� M g7f)rN)�len)�.0�versions  r�	<genexpr>�#package_versions.<locals>.<genexpr>�s���@�x�G��G�A�J���x�s�r�<�sr
)r@�package_name_globr��sorted�get_versionr<�maxr�)	r��versions�package_pattern�matching_packagesrIr��
package_widthrnrs	         rr�r��s���
���H�#����%�7�7��H�� ��O�O�_�e�4�5��/�0�G�
 �#�/�/��8�������O�O�W�.�/�1�$�$�@�x�@�@�M��9�9��J��v���1�]�O�1�,�-�Q�q�c�2��J�K�K���
 ���
 ��Ks�C�/C!
�C�Cc��[R"SU/S[R[RS9nURS:wagUR
R
S5R5HDnURSS	5n[U5S
:aM&USS:XdM1US	R5s $ g![a gf=f)z-Return the license for a given kernel module.z
/sbin/modinfoF)r�r�r�r�invalidNrr6r+rQ�license)r�r�r�r�r5r�r�
splitlinesr�r�r3)�module�modinfor�r�s    r�_get_module_licenser��s���
��.�.�
�f�%���?�?��?�?�	
������"��#����%�%�g�.�9�9�;�����C��#���v�;��?���!�9�	�!��!�9�?�?�$�$�<�������s�AB;�;
C�Cc�b�[USS9nUVs/sHo"R5SPM nnSSS5 /nWHHn[U5nU(dMSU;aMSU;aM'SU;aM/SU;aM7UR	U5 MJ U$s snf!,(df   Ne=f![a /s$f=f)	zCCheck loaded modules and return a list of those which are not free.r�r�rN�GPL�BSD�MPL�MIT)r&r�r5r�r�)�module_listr:r��mods�nonfree�mr�s       r�nonfree_kernel_modulesr�s����
�+��
0�A�01�2���J�J�L��O��D�2�1�
�G�
����"���1�e�q�j�E�Q�J�%�1�*���
��N�N�1���
�N��3�1�
0�����	��s=�
B�B�B	�B�B�	B�
B�B�B�B.�-B.c	��Sn[R"U5H�n[RRX5nUS:Xd$[RR	U5(dMN[US5nUR
5R5nSSS5 US:XaWRSS5nUS:Xa[R"W5nUS-
nXS	WRS
SS9S
3-
nM� U$!,(df   Ne=f)Nr_rfr"�modes�
� �edidz-base64z: rrr#r)rrlrr�r�r&r2r3r�base64�	b64encoder)�conr�r:r�
con_info_file�vals      r�__drm_con_infor�s���
�D�
�Z�Z��_���w�w�|�|�C�#����=������t� 4� 4��
�$��
���$�$�&�,�,�.�C��
��<��+�+�e�T�*�C���;��"�"�3�'�C�
��N�A��#�R��
�
�7�9�
�=�>�b�A�A����K��
�s�3C1�1
C?	c��Sn[RRU5(dg[R"U5H�n[RR	X5n[RR[RR	US55(dMf[
U5US[U53'M� g)zOAdd information about DRM hardware.

Collect information from /sys/class/drm/.
z/sys/class/drmN�enabledzDRM.)rrrkrlr�rr�r)r�drm_dirr:r�s    r�attach_drm_infor�#s���
�G�
�7�7�=�=��!�!��
�Z�Z��
 ���g�g�l�l�7�&��
�7�7�>�>�"�'�'�,�,�s�I�6�7�7�.<�S�.A�F�T�+�a�.�)�*�+�	!rc��[RRS5nU(dw[SSS9nUHSnUR	5nSU;dMURS5(dM3SU;dM;UR
SS5SS	S
n O S	S	S	5 g	S	S	S	5 UR5nUcg	[R"SU35RnXT:*$!,(df   NK=f![a g	f=f![a g	f=f)z�Check if the problem happened in the currently running XDG session.

This can be used to determine if e. g. ~/.xsession-errors is relevant and
should be attached.

Return None if this cannot be determined.
�XDG_SESSION_IDz/proc/self/cgroupr�r�z
name=systemd:z.scopez	/session-r+Ni����z/run/systemd/sessions/)rr�rar&r3�endswithr�r`�AttributeErrorr-rGr5)r�
session_idr:r��report_time�session_start_times      r�in_session_of_problemr�2s������� 0�1�J��
�%��
8�A����z�z�|��#�t�+��
�
�h�/�/�#�t�+�!%���K��!;�A�!>�s��!C�J����9�
8��9���*�*�,�������W�W�'=�j�\�%J�K�T�T���,�,�59�
8�����������sA�C�C�'C�/C�C,�4#C<�
C)�,
C9�8C9�<
D	�D	c�`�SnU(d[U5n[RRU5(a`[	USSS9nUR5Vs/sHnUR
S5(dUOSPM nnSRU5X'SSS5 ggs snf!,(df   g=f)	z<Attach /etc/default/grub after filtering out password lines.z/etc/default/grubr�r�r��passwordz### PASSWORD LINE REMOVED ###r_N)rrrrr&�	readlinesrCr�)rrrr:r��filtereds      r�attach_default_grubr�Zs����D���$���	�w�w�~�~�d���
�$��g�
.�!��K�K�M�
�*�D� �?�?�:�6�6��8�9�*�

���'�'�(�+�F�K�/�
.����/�
.�s�B�$B�;B�B�
B-c�,�Sn/n[RRU5(a;[USSUS305 SU;a#[R
"US5nUSnUSnX S'U(aSR
U5US	'URSS
5 g
)z;Attach the results of the casper md5check of install media.�unknown�
CasperMD5jsonzcat '�'r>�checksum_missmatch�CasperMD5CheckResultr
�CasperMD5CheckMismatchesN)rrrr�json�loadsr��pop)r�locationr>�
mismatchesr�s     r�attach_casper_md5checkrms���
�F��J�	�w�w�~�~�h���#�F�_��h�Z�q�>Q�,R�S��f�$��J�J�v�o�6�7�E��8�_�F��3�4�J�%+�!�"��-0�X�X�j�-A��)�*�
�J�J���%r)NTF)F)NN)N)r2)r~)\�__doc__r�rEr�rrr�r�r	r-r�r�rrU�collections.abcrr�apport.fileutils�apport�apport.packaging_implrr@�problem_reportrr)rr�rr r=rrOrYr\rdrpr�r�r�r��STDOUTr�r�r�r�rbr6�dictr
rrrr'r*�PCI_MASS_STORAGErq�PCI_DISPLAYr��
PCI_MEMORY�
PCI_BRIDGE�PCI_SIMPLE_COMMUNICATIONS�PCI_BASE_SYSTEM_PERIPHERALS�PCI_INPUT_DEVICES�PCI_DOCKING_STATIONS�PCI_PROCESSORS�PCI_SERIAL_BUSr�rDrJrLrYr\r�rersr�rur�r�r�r�r�r�r�r�r�r�r�r�	fileutils�shared_libraries�links_with_shared_libraryr�rr�<module>r!sm��5�$����	�	�
�
���
���-��3�(��
�
�#5�6��	
��B�A�0$&�N?�,!J�J��@�
�67+�t.3�b�<� ������,�^"�J	���
� 1� 1�t��.;���c��"�;�	�#�s�U�{�
��;�|���(/��S��(9��	��(�(5�d�5�2�D��������
�
�
�
� ��"�����������@+���
$+�N0��-��c��4��,	*�M�t�C�y�M�
Y�82�lCG�4��4�%-�c�]�S�%8�4�%?�4�	�4�nC�L�<�.�"�$B�%-�P,�&
&�"�#�#�4�4��"�,�,�F�F�r

Filemanager

Name Type Size Permission Actions
REThread.cpython-313.pyc File 2.85 KB 0644
__init__.cpython-313.pyc File 954 B 0644
crashdb.cpython-313.pyc File 34.04 KB 0644
fileutils.cpython-313.pyc File 31.92 KB 0644
hookutils.cpython-313.pyc File 47.15 KB 0644
logging.cpython-313.pyc File 2.97 KB 0644
packaging.cpython-313.pyc File 14.2 KB 0644
report.cpython-313.pyc File 82.55 KB 0644
sandboxutils.cpython-313.pyc File 12.43 KB 0644
ui.cpython-313.pyc File 87.14 KB 0644
user_group.cpython-313.pyc File 1.81 KB 0644
Filemanager